From fd78340ea10f0f5d1d2eb892c02f82cf29c9f0ac Mon Sep 17 00:00:00 2001
From: Gerardo Ganis <Gerardo.Ganis@cern.ch>
Date: Wed, 28 Nov 2018 18:51:16 +0100
Subject: [PATCH] build/package: remove references to rootd/proofd

---
 .../package/common/root-system-proofd.control |  17 --
 .../package/common/root-system-rootd.control  |  16 --
 build/package/common/root-system-rootd.dscr   |   6 -
 build/package/debian/README.Debian            |   8 +-
 build/package/debian/control                  |  35 +---
 .../package/debian/root-system-proofd.default |  20 ---
 .../package/debian/root-system-proofd.init.in | 139 ---------------
 build/package/debian/root-system-proofd.prerm |  32 ----
 .../package/debian/root-system-rootd.default  |  87 ----------
 .../package/debian/root-system-rootd.init.in  | 160 ------------------
 .../package/debian/root-system-rootd.postinst |  97 -----------
 build/package/debian/root-system-rootd.prerm  |  56 ------
 build/package/rpm/root-system-proofd.post     |  37 ----
 build/package/rpm/root-system-proofd.preun    |  20 ---
 build/package/rpm/root-system-rootd.post      |  52 ------
 build/package/rpm/root-system-rootd.postun    |  23 ---
 build/package/rpm/root-system-rootd.pre       |  56 ------
 build/package/rpm/root-system-rootd.preun     |  23 ---
 build/package/rpm/root-system-rootd.spec.in   | 152 -----------------
 19 files changed, 4 insertions(+), 1032 deletions(-)
 delete mode 100644 build/package/common/root-system-proofd.control
 delete mode 100644 build/package/common/root-system-rootd.control
 delete mode 100644 build/package/common/root-system-rootd.dscr
 delete mode 100644 build/package/debian/root-system-proofd.default
 delete mode 100644 build/package/debian/root-system-proofd.init.in
 delete mode 100644 build/package/debian/root-system-proofd.prerm
 delete mode 100644 build/package/debian/root-system-rootd.default
 delete mode 100644 build/package/debian/root-system-rootd.init.in
 delete mode 100644 build/package/debian/root-system-rootd.postinst
 delete mode 100644 build/package/debian/root-system-rootd.prerm
 delete mode 100644 build/package/rpm/root-system-proofd.post
 delete mode 100644 build/package/rpm/root-system-proofd.preun
 delete mode 100644 build/package/rpm/root-system-rootd.post
 delete mode 100644 build/package/rpm/root-system-rootd.postun
 delete mode 100644 build/package/rpm/root-system-rootd.pre
 delete mode 100644 build/package/rpm/root-system-rootd.preun
 delete mode 100644 build/package/rpm/root-system-rootd.spec.in

diff --git a/build/package/common/root-system-proofd.control b/build/package/common/root-system-proofd.control
deleted file mode 100644
index 222e31a61ab..00000000000
--- a/build/package/common/root-system-proofd.control
+++ /dev/null
@@ -1,17 +0,0 @@
-Package: root-system-proofd
-Architecture: any
-Depends: root-system-common, lsb-base (>= 3.0-6), openbsd-inetd | inet-superserver, ${shlibs:Depends}, ${misc:Depends}
-Recommends: root-system-bin, libroot-dev, root-file-server | root-system-rootd
-Description: Parallel ROOt Facility - distributed, parallel computing
- The ROOT system provides a set of OO frameworks with all the
- functionality needed to handle and analyze large amounts of data
- efficiently. 
- .
- This package contains the PROOF server.  proofd is the core daemon of
- the PROOF (Parallel ROOt Facility) system for distributed parallel
- computing. Installing this package on a machine, makes it possible
- for the machine to participate in a parallel computing farm (cluster
- or via the Internet), either as a master or a slave, using a
- transparent interface.
-
-
diff --git a/build/package/common/root-system-rootd.control b/build/package/common/root-system-rootd.control
deleted file mode 100644
index b489b96a83b..00000000000
--- a/build/package/common/root-system-rootd.control
+++ /dev/null
@@ -1,16 +0,0 @@
-Package: root-system-rootd
-Architecture: any
-Depends: root-system-common, lsb-base (>= 3.0-6), adduser, openbsd-inetd | inet-superserver, ${shlibs:Depends}, ${misc:Depends}
-Recommends: root-system-bin, libroot-dev
-Provides: root-file-server
-Description: ROOT remote file server 
- The ROOT system provides a set of OO frameworks with all the
- functionality needed to handle and analyze large amounts of data
- efficiently. 
- .
- This package contains ROOT file server.  rootd is a server for ROOT
- files, serving files over the Internet. Using this daemon, you can
- access files on the machine from anywhere on the Internet, using a
- transparent interface.
-
-
diff --git a/build/package/common/root-system-rootd.dscr b/build/package/common/root-system-rootd.dscr
deleted file mode 100644
index d19d074d40f..00000000000
--- a/build/package/common/root-system-rootd.dscr
+++ /dev/null
@@ -1,6 +0,0 @@
-short: Remote file server for ROOT files
-long:
-This package installs the rootd daemon. This daemon allows
-access to ROOT files resident on remote hosts from any
-interactive ROOT session. The daemon also provides FTP-like
-and administrative (stat, opendir, ...) functionality.
diff --git a/build/package/debian/README.Debian b/build/package/debian/README.Debian
index 43c0064b918..bbcb2ff83f9 100644
--- a/build/package/debian/README.Debian
+++ b/build/package/debian/README.Debian
@@ -30,10 +30,8 @@ The core packages are:
 * root-system-bin       The interactive interface and utilities
 * root-system-doc       Examples and tutorials
 
-A few `server' packages are available 
+A `server' package is available 
 
-* root-system-rootd     Remote fileserver 
-* root-system-proofd    PROOF environment
 * root-system-xrootd	Extendend ROOT Remote File server
 
 A few `extension' packages 
@@ -348,7 +346,7 @@ the license given by the upstream author Klaus Werner:
 
 Secure Remote Password (SRP) Authentication:
 --------------------------------------------
-To build the strong authentication module used by rootd and proofd,
+To build the strong authentication module used by TSocketServer,
 you first have to install the SRP (Secure Remote Password)
 system. See:
 
@@ -360,7 +358,7 @@ sub-directory.   There are no known packages of this code.
 
 Globus Authentication:
 ----------------------
-To build the Globus authentication module used by rootd and proofd,
+To build the Globus authentication module used by TSocketServer,
 you first have to make sure that the Globus Tool Kit is installed
 on the machine. See:
 
diff --git a/build/package/debian/control b/build/package/debian/control
index 307c08f40b5..e28f5bb67aa 100644
--- a/build/package/debian/control
+++ b/build/package/debian/control
@@ -9,7 +9,7 @@ Standards-Version: 3.8.3
 Package: root-system
 Architecture: all
 Depends: root-system-bin, libroot-core-dev, ${misc:Depends}
-Recommends: libroot-graf3d-gl-dev (>= ${binary:Version}), libroot-io-xmlparser-dev (>= ${binary:Version}), libroot-math-mathmore-dev (>= ${binary:Version}), libroot-math-unuran-dev (>= ${binary:Version}), libroot-misc-table-dev (>= ${binary:Version}), libroot-net-ldap-dev (>= ${binary:Version}), libroot-net-bonjour-dev (>= ${binary:Version}), root-plugin-graf2d-asimage (>= ${binary:Version}), root-plugin-gui-qt (>= ${binary:Version}), root-plugin-graf2d-qt (>= ${binary:Version}), root-plugin-math-fftw3 (>= ${binary:Version}), root-plugin-math-minuit2 (>= ${binary:Version}), root-plugin-net-krb5 (>= ${binary:Version}), root-plugin-sql-odbc (>= ${binary:Version}), root-system-xrootd (>= ${binary:Version}), root-plugin-net-netx (>= ${binary:Version}), root-plugin-net-xrootd (>= ${binary:Version}), libroot-geom-dev (>= ${binary:Version}), libroot-graf2d-gpad-dev (>= ${binary:Version}), libroot-graf2d-graf-dev (>= ${binary:Version}), libroot-graf2d-postscript-dev (>= ${binary:Version}), libroot-graf3d-eve-dev (>= ${binary:Version}), libroot-graf3d-g3d-dev (>= ${binary:Version}), libroot-gui-dev (>= ${binary:Version}), libroot-gui-ged-dev (>= ${binary:Version}), libroot-hist-dev (>= ${binary:Version}), libroot-hist-spectrum-dev (>= ${binary:Version}), libroot-io-dev (>= ${binary:Version}), libroot-math-foam-dev (>= ${binary:Version}), libroot-math-genvector-dev (>= ${binary:Version}), libroot-math-mathcore-dev (>= ${binary:Version}), libroot-math-matrix-dev (>= ${binary:Version}), libroot-math-minuit-dev (>= ${binary:Version}), libroot-math-mlp-dev (>= ${binary:Version}), libroot-math-physics-dev (>= ${binary:Version}), libroot-math-quadp-dev (>= ${binary:Version}), libroot-math-smatrix-dev (>= ${binary:Version}), libroot-math-splot-dev (>= ${binary:Version}), libroot-misc-minicern-dev (>= ${binary:Version}), libroot-misc-memstat-dev (>= ${binary:Version}), libroot-montecarlo-eg-dev (>= ${binary:Version}), libroot-montecarlo-vmc-dev (>= ${binary:Version}), libroot-net-dev (>= ${binary:Version}), libroot-net-auth-dev (>= ${binary:Version}), libroot-proof-dev (>= ${binary:Version}), libroot-proof-proofplayer-dev (>= ${binary:Version}), libroot-tmva-dev (>= ${binary:Version}), libroot-tree-dev (>= ${binary:Version}), libroot-tree-treeplayer-dev (>= ${binary:Version}), root-plugin-geom-geombuilder (>= ${binary:Version}), root-plugin-geom-geompainter (>= ${binary:Version}), root-plugin-graf2d-x11 (>= ${binary:Version}), root-plugin-graf3d-x3d (>= ${binary:Version}), root-plugin-gui-fitpanel (>= ${binary:Version}), root-plugin-gui-guibuilder (>= ${binary:Version}), root-plugin-gui-sessionviewer (>= ${binary:Version}), root-plugin-hist-hbook (>= ${binary:Version}), root-plugin-hist-histpainter (>= ${binary:Version}), root-plugin-hist-spectrumpainter (>= ${binary:Version}), root-plugin-io-sql (>= ${binary:Version}), root-plugin-io-xml (>= ${binary:Version}), root-plugin-math-fumili (>= ${binary:Version}), root-plugin-proof-xproof (>= ${binary:Version}), root-plugin-tree-treeviewer (>= ${binary:Version}), root-system-proofd (>= ${binary:Version}), root-system-rootd (>= ${binary:Version}), root-system-doc  (>= ${binary:Version})
+Recommends: libroot-graf3d-gl-dev (>= ${binary:Version}), libroot-io-xmlparser-dev (>= ${binary:Version}), libroot-math-mathmore-dev (>= ${binary:Version}), libroot-math-unuran-dev (>= ${binary:Version}), libroot-misc-table-dev (>= ${binary:Version}), libroot-net-ldap-dev (>= ${binary:Version}), libroot-net-bonjour-dev (>= ${binary:Version}), root-plugin-graf2d-asimage (>= ${binary:Version}), root-plugin-gui-qt (>= ${binary:Version}), root-plugin-graf2d-qt (>= ${binary:Version}), root-plugin-math-fftw3 (>= ${binary:Version}), root-plugin-math-minuit2 (>= ${binary:Version}), root-plugin-net-krb5 (>= ${binary:Version}), root-plugin-sql-odbc (>= ${binary:Version}), root-system-xrootd (>= ${binary:Version}), root-plugin-net-netx (>= ${binary:Version}), root-plugin-net-xrootd (>= ${binary:Version}), libroot-geom-dev (>= ${binary:Version}), libroot-graf2d-gpad-dev (>= ${binary:Version}), libroot-graf2d-graf-dev (>= ${binary:Version}), libroot-graf2d-postscript-dev (>= ${binary:Version}), libroot-graf3d-eve-dev (>= ${binary:Version}), libroot-graf3d-g3d-dev (>= ${binary:Version}), libroot-gui-dev (>= ${binary:Version}), libroot-gui-ged-dev (>= ${binary:Version}), libroot-hist-dev (>= ${binary:Version}), libroot-hist-spectrum-dev (>= ${binary:Version}), libroot-io-dev (>= ${binary:Version}), libroot-math-foam-dev (>= ${binary:Version}), libroot-math-genvector-dev (>= ${binary:Version}), libroot-math-mathcore-dev (>= ${binary:Version}), libroot-math-matrix-dev (>= ${binary:Version}), libroot-math-minuit-dev (>= ${binary:Version}), libroot-math-mlp-dev (>= ${binary:Version}), libroot-math-physics-dev (>= ${binary:Version}), libroot-math-quadp-dev (>= ${binary:Version}), libroot-math-smatrix-dev (>= ${binary:Version}), libroot-math-splot-dev (>= ${binary:Version}), libroot-misc-minicern-dev (>= ${binary:Version}), libroot-misc-memstat-dev (>= ${binary:Version}), libroot-montecarlo-eg-dev (>= ${binary:Version}), libroot-montecarlo-vmc-dev (>= ${binary:Version}), libroot-net-dev (>= ${binary:Version}), libroot-net-auth-dev (>= ${binary:Version}), libroot-proof-dev (>= ${binary:Version}), libroot-proof-proofplayer-dev (>= ${binary:Version}), libroot-tmva-dev (>= ${binary:Version}), libroot-tree-dev (>= ${binary:Version}), libroot-tree-treeplayer-dev (>= ${binary:Version}), root-plugin-geom-geombuilder (>= ${binary:Version}), root-plugin-geom-geompainter (>= ${binary:Version}), root-plugin-graf2d-x11 (>= ${binary:Version}), root-plugin-graf3d-x3d (>= ${binary:Version}), root-plugin-gui-fitpanel (>= ${binary:Version}), root-plugin-gui-guibuilder (>= ${binary:Version}), root-plugin-gui-sessionviewer (>= ${binary:Version}), root-plugin-hist-hbook (>= ${binary:Version}), root-plugin-hist-histpainter (>= ${binary:Version}), root-plugin-hist-spectrumpainter (>= ${binary:Version}), root-plugin-io-sql (>= ${binary:Version}), root-plugin-io-xml (>= ${binary:Version}), root-plugin-math-fumili (>= ${binary:Version}), root-plugin-proof-xproof (>= ${binary:Version}), root-plugin-tree-treeviewer (>= ${binary:Version}), root-system-doc  (>= ${binary:Version})
 Suggests: libroot-bindings-python-dev (>= ${binary:Version}), libroot-bindings-ruby-dev (>= ${binary:Version}), libroot-proof-clarens-dev (>= ${binary:Version}), libroot-roofit-dev (>= ${binary:Version}), root-plugin-geom-gdml (>= ${binary:Version}), root-plugin-net-globus (>= ${binary:Version}), root-plugin-proof-peac (>= ${binary:Version}), root-plugin-sql-mysql (>= ${binary:Version}), root-plugin-sql-pgsql (>= ${binary:Version})
 Description: metapackage to install all ROOT packages
  The ROOT system provides a set of OO frameworks with all the
@@ -1742,39 +1742,6 @@ Description: GUI to browse an a ROOT tree
  This package contains a plug-in for browsing a ROOT tree.
  in ROOT.
 
-Package: root-system-proofd
-Architecture: any
-Depends: root-system-common, lsb-base (>= 3.0-6), openbsd-inetd | inet-superserver, ${shlibs:Depends}, ${misc:Depends}
-Recommends: root-system-bin, libroot-dev, root-file-server | root-system-rootd
-Description: Parallel ROOt Facility - distributed, parallel computing
- The ROOT system provides a set of OO frameworks with all the
- functionality needed to handle and analyze large amounts of data
- efficiently. 
- .
- This package contains the PROOF server.  proofd is the core daemon of
- the PROOF (Parallel ROOt Facility) system for distributed parallel
- computing. Installing this package on a machine, makes it possible
- for the machine to participate in a parallel computing farm (cluster
- or via the Internet), either as a master or a slave, using a
- transparent interface.
-
-
-Package: root-system-rootd
-Architecture: any
-Depends: root-system-common, lsb-base (>= 3.0-6), adduser, openbsd-inetd | inet-superserver, ${shlibs:Depends}, ${misc:Depends}
-Recommends: root-system-bin, libroot-dev
-Provides: root-file-server
-Description: ROOT remote file server 
- The ROOT system provides a set of OO frameworks with all the
- functionality needed to handle and analyze large amounts of data
- efficiently. 
- .
- This package contains ROOT file server.  rootd is a server for ROOT
- files, serving files over the Internet. Using this daemon, you can
- access files on the machine from anywhere on the Internet, using a
- transparent interface.
-
-
 Package: root-system-doc
 Section: doc
 Architecture: all
diff --git a/build/package/debian/root-system-proofd.default b/build/package/debian/root-system-proofd.default
deleted file mode 100644
index b3263c6d80a..00000000000
--- a/build/package/debian/root-system-proofd.default
+++ /dev/null
@@ -1,20 +0,0 @@
-# Defaults for proofd initscript
-# sourced by /etc/init.d/proofd
-# installed at /etc/default/proofd by the maintainer scripts
-#
-# Please refer to the proofd(1) man(1) page for more information on 
-# command line parameters. 
-#
-# This is a POSIX shell fragment
-#
-# Whether to enable proofd via SYSV init scripts.  Please note, that
-# you can not enable both proofd via both inetd and SYSV init, and
-# inetd will reserve the port 1093 for it self. 
-ENABLE_PROOFD=
-
-# Additional options that are passed to the Daemon.
-DAEMON_OPTS=
-
-# Specify your base of your PROOF directory here.  If left blank, it
-# will use the system default (e.g., /usr/share/root/proof). 
-PROOF_DIR=
diff --git a/build/package/debian/root-system-proofd.init.in b/build/package/debian/root-system-proofd.init.in
deleted file mode 100644
index 1fca9e79707..00000000000
--- a/build/package/debian/root-system-proofd.init.in
+++ /dev/null
@@ -1,139 +0,0 @@
-#! /bin/sh
-#
-# skeleton	Written by Miquel van Smoorenburg <miquels@cistron.nl>.
-#		Modified for Debian 
-#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
-#
-# Version:	@(#)skeleton  1.9  26-Feb-2001  miquels@cistron.nl
-#
-### BEGIN INIT INFO
-# Provides:          root-system-proofd
-# Required-Start:    $local_fs
-# Required-Stop:     $local_fs 
-# Should-Start:	     $network, $remote_fs, root-file-server
-# Should-Stop:	     $network, $remote_fs, root-file-server
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: Parallel ROOt Facility Server
-# Description:       Parallel ROOt Facility Server to let the node
-#		     participate in a PROOF cluster, either as slave or
-#		     master. 
-### END INIT INFO
-
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=@prefix@/bin/proofd
-NAME=proofd
-DESC="Parallel ROOt Facility Server"
-
-test -x $DAEMON || exit 0
-
-# Include root defaults if available
-if [ -f @sysconfdir@/default/root-system-proofd ] ; then
-	. @sysconfdir@/default/root-system-proofd
-fi
-
-# Load the VERBOSE setting and other rcS variables
-[ -f /etc/default/rcS ] && . /etc/default/rcS
-
-# Define LSB log_* functions.
-. /lib/lsb/init-functions
-
-# Check if inetd is controlling proofd
-if test -f /var/run/inetd.pid ; then 
-    # Inetd is running
-    if grep -q ^$NAME /etc/inetd.conf > /dev/null 2>&1 ; then 
-	# PROOFD is controlled by inetd. 
-	ENABLE_PROOFD=no
-    fi
-fi
-# Check if xinetd is controlling proofd
-if test -f /var/run/xinetd.pid ; then 
-    # Inetd is running
-    if grep -q ^$NAME /etc/inetd.conf > /dev/null 2>&1 ; then 
-	# PROOFD is controlled by xinetd. 
-	ENABLE_PROOFD=no
-    fi
-    # old name 
-    for i in proofd root-proofd root-system-proofd ; do 
-	if test ! -f /etc/xinetd.d/$i ; then continue ; fi 
-	if grep "disable[[:space:]]*= *[Nn][Oo]" /etc/xinetd.d/$i \ 
-	    > /dev/null 2>&1 ; then
-	    # PROOFD is controlled by xinetd. 
-	    ENABLE_PROOFD=no
-	    break
-	fi
-    done
-fi
-
-# Check if we're enabled
-case `echo $ENABLE_PROOFD | tr '[:upper:]' '[:lower:]'` in 
-    yes) ;;
-    *) exit 0;;
-esac
-
-# function to start daemon
-startit ()
-{
-    start-stop-daemon --make-pidfile --start --quiet --pidfile \
-	/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS $PROOF_DIR
-    ret=$?
-    if test $ret -ne 0 ; then 
-	echo "Failed" 
-	exit 1
-    fi
-    pidof $DAEMON > /var/run/$NAME.pid 2> /dev/null
-    return $ret
-}
-
-# function to stop daemon
-stopit ()
-{
-    start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/$NAME.pid \
-	--exec $DAEMON
-    ret=$?
-    if test $ret -ne 0 ; then 
-	echo "Failed" 
-	exit 1
-    fi
-    return $ret
-}
-
-# Executable code
-case "$1" in
-  start)
-	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
-	startit 
-	ret=$?
-	[ "$VERBOSE" != no ] && log_end_msg $ret
-	;;
-  stop)
-	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
-	stopit
-	ret=$?
-	[ "$VERBOSE" != no ] && log_end_msg $ret
-	;;
-  restart|force-reload)
-	#
-	#	If the "reload" option is implemented, move the "force-reload"
-	#	option to the "reload" entry above. If not, "force-reload" is
-	#	just the same as "restart".
-	#
-	log_daemon_msg "Restarting $DESC" "$NAME"
-	stopit
-	sleep 1
-	startit
-	ret=$?
-	log_end_msg $ret
-	;;
-  *)
-	N=@sysconfdir@/init.d/root-system-$NAME
-	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
-	echo "Usage: $N {start|stop|restart|force-reload}" >&2
-	exit 1
-	;;
-esac
-
-exit 0
-#
-# EOF
-#
diff --git a/build/package/debian/root-system-proofd.prerm b/build/package/debian/root-system-proofd.prerm
deleted file mode 100644
index cf67f208775..00000000000
--- a/build/package/debian/root-system-proofd.prerm
+++ /dev/null
@@ -1,32 +0,0 @@
-#! /bin/sh
-# prerm script for root-proofd
-#
-# see: dh_installdeb(1)
-
-set -e
-
-case "$1" in
-    remove)
-	if grep ^proofd /etc/inetd.conf > /dev/null 2>&1 ; then
-	  update-inetd --remove proofd
-	fi
-	;;
-    upgrade|deconfigure)
-	# Nothing to be done here 
-        ;;
-    failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff --git a/build/package/debian/root-system-rootd.default b/build/package/debian/root-system-rootd.default
deleted file mode 100644
index 294dd0f4655..00000000000
--- a/build/package/debian/root-system-rootd.default
+++ /dev/null
@@ -1,87 +0,0 @@
-# Defaults for rootd initscript
-# sourced by /etc/init.d/root-system-rootd
-# installed at /etc/default/root-system-rootd by the maintainer scripts
-#
-# Please refer to the rootd(1) man(1) page for more information on 
-# command line parameters. 
-#
-# This is a POSIX shell fragment
-#
-# If this is set to `yes', then the server is started.  
-# Anything else disables the server
-#
-# Note, that you can not run rootd via both inetd and SYSV init; at
-# least not  if they are both using the same port (per default both
-# use 1094).  So either disable the inetd or the SYSV init rootd, or
-# specify separate ports. 
-ENABLE_ROOTD=yes
-
-# User to run as (default is `rootd')
-ROOTD_USER=rootd
-
-# Port (range to listen to) (-p)
-#        specifies the port number to listen on. Use port-port2 to
-#        find the first available port in the indicated range. Use 0-N
-#        for range relative to default service port. (default is 1094)
-ROOTD_PORT=
-
-# SSH port (-s)
-#        specifies the port number for the sshd daemon used for
-#        authentication (default is 22).
-SSH_PORT=
-
-# TCP window size (-b)
-#        specifies the tcp window size in bytes (e.g. see
-#        http://www.psc.edu/networking/perf_tune.html). Default is
-#        65535.  Only change default for pipes with a high
-#        bandwidth*delay product.
-#ROOTD_WINDOW_SIZE=65535
-
-# Debug level (-d)
-#        level of debug info written to syslogd 0 = no debug
-#        (default), 1 = minimum, 2 = medium, 3 = maximum.
-#ROOTD_DEBUG=0
-
-# Access rules configuration file (-D)
-#        read access rules from file <rootdaemonrc>.  By default
-#        <root_etc_dir>/system.rootdaemonrc is used for access rules;
-#        for privately started daemons $HOME/.rootdaemonrc (if
-#        present) is read first.
-#ROOTD_ACCESS_RULES=
-
-# Run in foreground (-f)
-#        run in the foreground (output on the window); useful for
-#        debugging purposes. Only a value of "yes" enables. 
-#ROOTD_FOREGROUND=
-
-# Disable authentification (-noauth)
-#        do not require client authentication.  This shouldn't be enabled
-#        unless you know what you're doing. Only a value of "yes" enables. 
-#ROOTD_NO_AUTH=
-
-# Read only access (-r)
-#        files can only be opened in read-only mode. Only a value of
-#       "yes" enables. 
-#ROOTD_READ_ONLY=
-
-#
-# Temporary director (-T <tmpdir>)
-#        specifies the directory path to be used to place temporary
-#        files; default is /usr/tmp. Useful when running with limited
-#        privileges.
-#ROOTD_TMP=
-
-# Require password (-w)
-#        do not check /etc/hosts.equiv, $HOME/.rhosts for
-#        password-based authentication; by default these files are
-#        checked first by calling ruserok(...); if this option is
-#        specified a password is always required. Only a value of
-#        "yes" enables. 
-#ROOTD_REQUIRE_PASSWD=
-
-# Use this variable to pass other options to the daemon.
-DAEMON_OPTS=
-
-#
-# EOF
-#
diff --git a/build/package/debian/root-system-rootd.init.in b/build/package/debian/root-system-rootd.init.in
deleted file mode 100644
index 7f9677ca93e..00000000000
--- a/build/package/debian/root-system-rootd.init.in
+++ /dev/null
@@ -1,160 +0,0 @@
-#! /bin/bash
-#
-# skeleton	Written by Miquel van Smoorenburg <miquels@cistron.nl>.
-#		Modified for Debian 
-#		by Ian Murdock <imurdock@gnu.ai.mit.edu>.
-#
-# Version:	@(#)skeleton  1.9  26-Feb-2001  miquels@cistron.nl
-#
-### BEGIN INIT INFO
-# Provides:          root-system-rootd
-# Required-Start:    $local_fs
-# Required-Stop:     $local_fs 
-# Should-Start:	     $network, $remote_fs
-# Should-Stop:	     $network, $remote_fs
-# Default-Start:     2 3 4 5
-# Default-Stop:      0 1 6
-# Short-Description: ROOT file server
-# Description:       Server of ROOT files via special ROOT protocol
-### END INIT INFO
-#
-PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
-DAEMON=@prefix@/bin/rootd
-NAME=rootd
-DESC="ROOT file server"
-USER=rootd
-test -x $DAEMON || exit 0
-
-# Include root defaults if available
-if [ -f @sysconfdir@/default/root-system-rootd ] ; then
-	. @sysconfdir@/default/root-system-rootd
-fi
-
-# Load the VERBOSE setting and other rcS variables
-[ -f /etc/default/rcS ] && . /etc/default/rcS
-
-# Define LSB log_* functions.
-. /lib/lsb/init-functions
-
-# Check options from system settings
-# User to execute rootd as 
-test ! "x$ROOTD_USER" = "x" && USER=$ROOTD_USER
-# Port to listen to
-test ! "x$ROOTD_PORT" = "x" && DAEMON_OPTS="$DAEMON_OPTS -p $ROOTD_PORT"
-# SSH port 
-test ! "x$SSH_PORT" = "x"   && DAEMON_OPTS="$DAEMON_OPTS -s $SSH_PORT"
-# TCP window size 
-test ! "x$ROOTD_WINDOW_SIZE" = "x" && DAEMON_OPTS="$DAEMON_OPTS -b $ROOTD_WINDOW_SIZE"
-# Debug level 
-test ! "x$ROOTD_DEBUG" = "x" && DAEMON_OPTS="$DAEMON_OPTS -d $ROOTD_DEBUG"
-# Access rules file
-test ! "x$ROOTD_ACCESS_RULES" = "x" && DAEMON_OPTS="$DAEMON_OPTS -D $ROOTD_ACCESS_RULES"
-# Run in foreground (shouldn't be done in init script)
-test "x$ROOTD_FOREGROUND" = "xyes" && DAEMON_OPTS="$DAEMON_OPTS -f"
-# No client authentification (security issue)
-test "x$ROOTD_NO_AUTH" = "xyes" && DAEMON_OPTS="$DAEMON_OPTS -noauth"
-# files can only be opened read-only
-test "x$ROOTD_READ_ONLY" = "xyes" && DAEMON_OPTS="$DAEMON_OPTS -r"
-# Temporary directory 
-test ! "x$ROOTD_TMP" = "x" && DAEMON_OPTS="$DAEMON_OPTS -T $ROOTD_TMP"
-# Require passwords. 
-test "x$ROOTD_REQUIRE_PASSWD" = "xyes" && DAEMON_OPTS="$DAEMON_OPTS -w"
-
-
-# Check if rootd is under inetds control
-if test -f /var/run/inetd.pid ; then 
-    # Inetd is running
-    if grep -q ^$NAME /etc/inetd.conf > /dev/null 2>&1 ; then 
-	# ROOTD is controlled by inetd. 
-	ENABLE_ROOTD=no
-    fi
-fi
-# Check if rootd is under xinetds control
-if test -f /var/run/xinetd.pid ; then 
-    # Inetd is running
-    if grep -q ^$NAME /etc/inetd.conf > /dev/null 2>&1 ; then 
-	# ROOTD is controlled by xinetd. 
-	ENABLE_ROOTD=no
-    fi
-    # old name 
-    for i in rootd root-rootd root-system-rootd ; do 
-	if test ! -f /etc/xinetd.d/$i ; then continue ; fi 
-	if test grep "disable[[:space:]]*= *[Nn][Oo]" /etc/xinetd.d/$i \
-	    > /dev/null 2>&1  ; then
-	    # ROOTD is controlled by xinetd. 
-	    ENABLE_ROOTD=no
-	    break
-	fi
-    done
-fi
-
-# Check if we're enabled at all 
-case `echo $ENABLE_ROOTD | tr '[:upper:]' '[:lower:]'` in 
-    yes) ;;
-    *) exit 0;;
-esac
-
-	
-# Function to start the daemon
-startit() 
-{
-    o=`start-stop-daemon --chuid $USER --start --quiet --pidfile \
-	/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS`
-    ret=$?
-    test $ret -ne 0 && return 1
-    eval $o
-    # echo " (pid: $ROOTD_PID) "
-    echo $ROOTD_PID > /var/run/$NAME.pid
-    return $ret
-}
-
-# Function to stop the daemon
-stopit() 
-{
-    start-stop-daemon --user $USER --stop --oknodo --quiet --pidfile \
-	/var/run/$NAME.pid --exec $DAEMON
-    ret=$?
-    test $ret -ne 0 && return 1
-    rm -f /var/run/$NAME.pid
-    return $ret
-}
-
-# Main code 
-case "$1" in
-  start)
-	[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
-	startit 
-	ret=$?
-	[ "$VERBOSE" != no ] && log_end_msg $ret
-	;;
-  stop)
-	[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
-	stopit
-	ret=$?
-	[ "$VERBOSE" != no ] && log_end_msg $ret
-	;;
-  restart|force-reload)
-	#
-	#	If the "reload" option is implemented, move the "force-reload"
-	#	option to the "reload" entry above. If not, "force-reload" is
-	#	just the same as "restart".
-	#
-	log_daemon_msg "Restarting $DESC" "$NAME"
-	stopit
-	sleep 1
-	startit
-	ret=$?
-	log_end_msg $ret
-	;;
-  *)
-	N=@sysconfdir@/init.d/root-system-$NAME
-	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
-	echo "Usage: $N {start|stop|restart|force-reload}" >&2
-	exit 1
-	;;
-esac
-
-exit 0
-#
-# EOF
-#
diff --git a/build/package/debian/root-system-rootd.postinst b/build/package/debian/root-system-rootd.postinst
deleted file mode 100644
index f77d6e44c17..00000000000
--- a/build/package/debian/root-system-rootd.postinst
+++ /dev/null
@@ -1,97 +0,0 @@
-#! /bin/sh
-
-set -e
-
-case "$1" in
-    configure)
-	# Install user rootd for anonymous file access in /var/spool/rootd 
-	# directory. 
-	# The lines below are taken from the mysql-server package, and
-	# modified to reflects the needs of rootd. 
-
-	# Make sure we can add a user properly 
-	if [ ! -x "`which adduser`" ]; then 
-	    echo "I need adduser(8) from the adduser package !";
-	    exit 1;
-	fi
-	if [ ! -x "`which addgroup`" ]; then 
-	    echo "I need addgroup(8) from the adduser package !";
-	    exit 1;
-	fi
-	if [ ! -x "`which usermod`" ]; then
-	    echo "I need usermod(8) from the passwd package !";
-	    exit 1;
-	fi
-	
-	# Now we have to ensure the following state:
-	#   /etc/passwd: rootd:x:Anonymous rootd:/var/spool/rootd:/bin/false
-	#   /etc/group:  rootd:x:72:rootd
-	if ! getent group rootd > /dev/null; then 
-	    addgroup --system rootd 
-	fi
-	if ! getent passwd rootd > /dev/null; then
-	    #echo Adding system user: rootd.
-	    adduser 				\
-		--system 			\
-		--disabled-login			\
-		--ingroup rootd 		\
-		--gecos "Anonymous rootd" 	\
-		--shell /bin/false		\
-		--home /var/spool/rootd 	\
-		rootd >/dev/null
-	fi
-
-	# creating rootd home directory
-	if ! test -d /var/spool/rootd; then
-	    mkdir /var/spool/rootd
-	fi
-
-	# modifying the user
-	# usermod -c "Anonymous rootd"    rootd > /dev/null
-	# usermod -d "/var/spool/rootd"   rootd > /dev/null
-	# usermod -g "rootd"              rootd > /dev/null
-	# usermod -s "/bin/false"         rootd > /dev/null
-
-	# Since the home directory was created before putting the user
-	# into the rootd group and moreover we cannot guarantee that
-	# the permissions were correctly *before* calling this script,
-	# we fix them now. 
-	#echo 
-	#echo "SECURITY: Fixing permission of /var/spool/rootd !"
-	#echo "(I.e. replacing GIDs other than root and rootd with rootd.)"
-	#echo
-	chown rootd:rootd /var/spool/rootd
-	find /var/spool/rootd \
-	    -not \( -group root -or -group rootd \) \
-	    -exec chgrp rootd {} \;
-
-	# Create the tmp and pub directories in /var/spool/rootd and
-	# make them world read- and writeable. 
-	if [ ! -d /var/spool/rootd/tmp ] ; then 
-	    mkdir -p /var/spool/rootd/tmp
-	    chmod 1777 /var/spool/rootd/tmp
-	fi
-
-	if [ ! -d /var/spool/rootd/pub ] ; then 
-	    mkdir -p /var/spool/rootd/pub
-	    chmod 1777 /var/spool/rootd/pub
-	fi
-
-	# Nothing to be done here
-	# if [ "$1" = "upgrade" ]
-	# then
-	#     start-stop-daemon --stop --quiet --oknodo  \
-	#         --pidfile /var/run/root.pid  \
-	#         --exec @prefix@/sbin/root 2>/dev/null || true
-	# fi
-	;;
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 0
-	;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
diff --git a/build/package/debian/root-system-rootd.prerm b/build/package/debian/root-system-rootd.prerm
deleted file mode 100644
index ea306040b13..00000000000
--- a/build/package/debian/root-system-rootd.prerm
+++ /dev/null
@@ -1,56 +0,0 @@
-#! /bin/sh
-# prerm script for root-rootd
-#
-# see: dh_installdeb(1)
-
-# Do not set - If we cannot remove the rootd user, it is OK
-set -e
-
-case "$1" in
-    remove)
-	if grep ^rootd /etc/inetd.conf > /dev/null 2>&1 ; then
-	  update-inetd --remove rootd
-	fi
-	# Remove the rootd user and group 
-	# Taken from mysql-server package and modified for ROOT 
-        # rm -rf /var/spool/rootd
-	if getent passwd rootd > /dev/null; then 
-	    deluser --remove-home rootd
-	    reason=$?
-            if [ $reason -ne 0 ] ; then 
-	        # Could not remove user. Ignore. 
-		echo "Couldn't remove user rootd, check it. Reason"
-		case $reason in 
-		    1)  echo "can't update password file"     ;;
-		    2)  echo "bad command syntax"             ;;
-		    6)  echo "specified user doesn't exist"   ;;
-		    8)  echo "user currently logged in"       ;;
-		    10) echo "can't update group file"        ;; 
-		    12) echo "can't remove home directory"    ;;
-		    *)  echo "Unrecognized exit code $reason" ;;
-		esac
-	    fi
-	fi	
-	;;
-    upgrade|deconfigure)
-	# Nothing to be done here 
-        ;;
-    failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 0
-    ;;
-esac
-
-# Now we set fail-on-sub-error so that the debhelper stuff is done correctly. 
-# set -e 
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff --git a/build/package/rpm/root-system-proofd.post b/build/package/rpm/root-system-proofd.post
deleted file mode 100644
index 9606b929bae..00000000000
--- a/build/package/rpm/root-system-proofd.post
+++ /dev/null
@@ -1,37 +0,0 @@
-#---------------------------------------------------------------------
-# Post installation - only body
-#
-# Add INETD line to configuration file, if not already present 
-#
-# if test -f /etc/inetd.conf ; then 
-#   if ! grep -qs ^proofd /etc/inetd.conf ; then 
-#     echo 'proofd stream tcp nowait root %{_prefix}/bin/proofd proofd %{_prefix}/share/root' \
-#       >> /etc/inetd.conf
-#   fi
-# fi
-#
-# Add a file to /etc/xinet.d if it exists
-#
-# if test -d /etc/xinetd.d ; then 
-#     rm -f /etc/xinetd.d/proofd 
-#     cat > /etc/xinetd.d/proofd <<EOF
-# service proofd 
-# {
-# 	disable		= no
-# 	flags		= REUSE
-# 	socket_type	= stream
-# 	wait		= no
-# 	user		= root
-# 	server		= %_prefix/bin/proofd
-# 	server_args	= -i
-# }
-# EOF
-# fi
-#
-# Install lines in /etc/services 
-#
-if ! grep -qs ^proofd\$ /etc/services ; then
-    echo "proofd          1093/tcp # ROOT"   >> /etc/services
-fi
-
-# end of script
diff --git a/build/package/rpm/root-system-proofd.preun b/build/package/rpm/root-system-proofd.preun
deleted file mode 100644
index 9f226b60a52..00000000000
--- a/build/package/rpm/root-system-proofd.preun
+++ /dev/null
@@ -1,20 +0,0 @@
-#---------------------------------------------------------------------
-# Pre removal - only body
-#
-# Remove entry from /etc/inetd.conf
-#
-# if test -f /etc/inetd.conf ; then 
-#   if ! grep -qs ^proofd /etc/inetd.conf ; then 
-#     sed '/^proofd.*/d' < /etc/inetd.conf > /etc/inetd.conf.rpmnew
-#     mv /etc/inetd.conf.rpmnew /etc/inetd.conf
-#   fi
-# fi
-# rm -f /etc/xinetd.d/proofd
-
-#
-# Do not remove antries from /etc/services, since the numbers _are_ 
-# assigned IANA, so there's no need 
-#
-%_sysconfdir/init.d/proofd stop
-
-# end of script
diff --git a/build/package/rpm/root-system-rootd.post b/build/package/rpm/root-system-rootd.post
deleted file mode 100644
index e326a46892b..00000000000
--- a/build/package/rpm/root-system-rootd.post
+++ /dev/null
@@ -1,52 +0,0 @@
-#---------------------------------------------------------------------
-# Post installation - only body
-#
-# Add INETD line to configuration file, if not already present 
-#
-# if test -f /etc/inetd.conf ; then 
-#   if ! grep -qs ^rootd /etc/inetd.conf ; then 
-#     echo 'rootd stream tcp nowait root %{_prefix}/bin/rootd rootd -i' \
-#       >> /etc/inetd.conf
-#   fi
-# fi
-#
-# Add a file to /etc/xinet.d if it exists
-#
-# if test -d /etc/xinetd.d ; then 
-#     rm -f /etc/xinetd.d/rootd 
-#     cat > /etc/xinetd.d/rootd <<EOF 
-# service rootd 
-# {
-# 	disable		= no
-# 	flags		= REUSE
-# 	socket_type	= stream
-# 	wait		= no
-# 	user		= root
-# 	server		= %_prefix/bin/rootd
-# 	server_args	= -i
-# }
-# EOF
-# fi
-#
-# Install lines in /etc/services 
-#
-if ! grep -qs ^rootd\$ /etc/services ; then
-    echo "rootd           1094/tcp # ROOT"  >> /etc/services
-fi
-
-#
-# Make sure that the rootd location is correct in /etc/rc.d/init.d/rootd
-#
-sed -e "s|%_prefix|$RPM_INSTALL_PREFIX|g" \
-	< %_sysconfdir/rc.d/init.d/rootd \
-	> %_sysconfdir/rc.d/init.d/rootd.tmp
-mv %_sysconfdir/rc.d/init.d/rootd.tmp %_sysconfdir/rc.d/init.d/rootd
-chmod 0755 %_sysconfdir/rc.d/init.d/rootd
-
-#
-# Start the service
-#
-%_sysconfdir/init.d/rootd start 
-
-#
-# end of script
diff --git a/build/package/rpm/root-system-rootd.postun b/build/package/rpm/root-system-rootd.postun
deleted file mode 100644
index 9c5c82930b9..00000000000
--- a/build/package/rpm/root-system-rootd.postun
+++ /dev/null
@@ -1,23 +0,0 @@
-#---------------------------------------------------------------------
-# Post removal - only body
-# rm -rf /var/spool/rootd
-#
-# Remove the user rootd and the group if possible 
-#
-userdel -r rootd
-reason=$?
-if [ $reason -ne 0 ] ; then 
-    # Could not remove user. Ignore. 
-    echo "Couldn't remove user rootd, check it. Reason"
-    case $reason in 
-    1)  echo "can't update password file"    ;;
-    2)  echo "bad command syntax"            ;;
-    6)  echo "specified user doesn't exist"  ;;
-    8)  echo "user currently logged in"      ;;
-    10) echo "can't update group file"       ;; 
-    12) echo "can't remove home directory"   ;;
-    *)  echo "Unknown"                       ;;
-    esac
-fi
-# end of script        
-
diff --git a/build/package/rpm/root-system-rootd.pre b/build/package/rpm/root-system-rootd.pre
deleted file mode 100644
index a7afda3c74d..00000000000
--- a/build/package/rpm/root-system-rootd.pre
+++ /dev/null
@@ -1,56 +0,0 @@
-#---------------------------------------------------------------------
-# Pre installation - only body
-#
-# Now we have to ensure the following state:
-#   /etc/passwd: rootd:x:Anonymous rootd:/var/spool/rootd:/bin/false
-#   /etc/group:  rootd:x:72:rootd
-#
-if ! grep -q ^rootd: /etc/group; then 
-  groupadd rootd 
-fi
-if ! grep -q ^rootd: /etc/passwd; then 
-  useradd -c "Anonymous rootd" -d "/var/spool/rootd" -s /bin/false \
-   -g rootd rootd 
-fi
-
-#
-# Make home directory 
-#
-if [ ! -d /var/spool/rootd ] ; then 
-  mkdir -p /var/spool/rootd
-fi
-
-#
-# If user already exist, modify it. 
-#
-usermod -c "Anonymous rootd"  rootd
-usermod -d /var/spool/rootd   rootd
-usermod -g rootd              rootd
-usermod -s /bin/false         rootd
-
-
-# Since the home directory was created before putting the user
-# into the rootd group and moreover we cannot guarantee that
-# the permissions were correctly *before* calling this script,
-# we fix them now. 
-#echo 
-#echo "SECURITY: Fixing permission of /var/spool/rootd !"
-#echo "(I.e. replacing GIDs other than root and rootd with rootd.)"
-#echo
-chown rootd.rootd /var/spool/rootd
-find /var/spool/rootd \
-    -not \( -group root -or -group rootd \) \
-    -exec chgrp rootd {} \;
-
-# Create the tmp and pub directories in /var/spool/rootd and
-# make them world read- and writeable. 
-if [ ! -d /var/spool/rootd/tmp ] ; then 
-  mkdir -p /var/spool/rootd/tmp
-  chmod 777 /var/spool/rootd/tmp
-fi
-if [ ! -d /var/spool/rootd/pub ] ; then 
-    mkdir -p /var/spool/rootd/pub
-    chmod 777 /var/spool/rootd/pub
-fi
-
-# end of script
diff --git a/build/package/rpm/root-system-rootd.preun b/build/package/rpm/root-system-rootd.preun
deleted file mode 100644
index 4e3cb7e4bb8..00000000000
--- a/build/package/rpm/root-system-rootd.preun
+++ /dev/null
@@ -1,23 +0,0 @@
-#---------------------------------------------------------------------
-# Pre removal - only body
-#
-# Remove entry from /etc/inetd.conf
-#
-# if test -f /etc/inetd.conf ; then 
-#   if ! grep -qs ^rootd /etc/inetd.conf ; then 
-#     sed '/^rootd.*/d' < /etc/inetd.conf > /etc/inetd.conf.rpmnew
-#     mv /etc/inetd.conf.rpmnew /etc/inetd.conf
-#   fi
-# fi
-# rm -f /etc/xinetd.d/rootd
-#
-# Do not remove antries from /etc/services, since the numbers _are_ 
-# assigned IANA, so there's no need 
-#
-
-#
-# Stop the service
-#
-%_sysconfdir/init.d/rootd stop
-
-# end of script
diff --git a/build/package/rpm/root-system-rootd.spec.in b/build/package/rpm/root-system-rootd.spec.in
deleted file mode 100644
index 04d36880e62..00000000000
--- a/build/package/rpm/root-system-rootd.spec.in
+++ /dev/null
@@ -1,152 +0,0 @@
-#####################################################################
-#
-# Preamble 
-#
-# Macro definitions
-%define ver    @version@
-%define rel    @release@
-%define _prefix        @prefix@
-%define _sysconfdir    @etcdir@
-%define _defaultdocdir %_prefix/share/doc
-%define _rootdir       @rootdir@
-
-######################################################################
-#
-# Header 
-#
-Name:         rootd@arcomp@
-Version:      %{ver}
-Release:      %{rel}
-Copyright:    ROOT Software Terms and Conditions (see package)
-Packager:     Gerri Ganis <Gerardo.Ganis@cern.ch>
-Distribution: ROOT
-Vendor:       ROOT Team
-URL:          http://root.cern.ch
-Source:       ftp://root.cern.ch/root/root_v%{ver}.source.tar.gz
-Group:        ROOT
-BuildRoot:    /tmp/rootdrpm
-Prefix:       %{_prefix}
-Summary:      @short@
-Conflicts:    root-system-rootd 
-
-#---------------------------------------------------------------------
-# Less concise description
-%description
-@long@
-
-#---------------------------------------------------------------------
-# Install
-%install
-rm -rf $RPM_BUILD_ROOT%{_prefix}
-mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin
-mkdir -p $RPM_BUILD_ROOT%{_prefix}/share/man/man1
-mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
-mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
-
-# The rootd executable
-install -s -m 755 %{_rootdir}/bin/rootd $RPM_BUILD_ROOT%{_prefix}/bin/rootd
-# The rootd man page
-install -m 644 %{_rootdir}/man/man1/rootd.1 $RPM_BUILD_ROOT%{_prefix}/share/man/man1/rootd.1
-gzip $RPM_BUILD_ROOT%{_prefix}/share/man/man1/rootd.1
-# The system.rootdaemonrc man page
-install -m 644 %{_rootdir}/man/man1/system.rootdaemonrc.1 $RPM_BUILD_ROOT%{_prefix}/share/man/man1/system.rootdaemonrc.1
-gzip $RPM_BUILD_ROOT%{_prefix}/share/man/man1/system.rootdaemonrc.1
-# The access control configuration file with local CERN rules
-install -m 644 %{_rootdir}/etc/system.rootdaemonrc $RPM_BUILD_ROOT%{_sysconfdir}/system.rootdaemonrc
-# Add CERN local rules
-echo "#"  >> $RPM_BUILD_ROOT%{_sysconfdir}/system.rootdaemonrc
-echo "# CERN local rules for RFIO compatibility"  >> $RPM_BUILD_ROOT%{_sysconfdir}/system.rootdaemonrc
-echo "*.cern.ch:rootd usrpwd ssh uidgid"  >> $RPM_BUILD_ROOT%{_sysconfdir}/system.rootdaemonrc
-# The start script; will make it relocatable in the post-install
-install -m 755 %{_rootdir}/etc/daemons/rootd.rc.d $RPM_BUILD_ROOT/etc/rc.d/init.d/rootd
-#---------------------------------------------------------------------
-# Files that go into this package 
-%files
-%attr(0755, root, root) %{_prefix}/bin/rootd 
-%attr(0644, root, root) %{_prefix}/share/man/man1/rootd.1.gz 
-%attr(0644, root, root) %{_prefix}/share/man/man1/system.rootdaemonrc.1.gz 
-%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/system.rootdaemonrc
-%attr(0755, root, root) /etc/rc.d/init.d/rootd
-
-#---------------------------------------------------------------------
-# Pre installation script - only body
-#%pre
-
-# end of script
-#---------------------------------------------------------------------
-# Post installation script - only body
-%post
-#
-# If using inetd.conf, add relevant lines to the configuration file,
-# if not already present 
-if [ -f /etc/inetd.conf ] ; then 
-   if ! grep -qs ^rootd /etc/inetd.conf ; then 
-     echo 'rootd stream tcp nowait root %{_prefix}/bin/rootd rootd -i' \
-       >> /etc/inetd.conf
-   fi
-fi
-#
-# If using xinetd, add a relevant entry in the config dir
-if [ -d /etc/xinetd.d ] ; then 
-   # remove existing rootd entry
-   if [ -f /etc/xinetd.d/rootd ] ; then 
-      rm -f /etc/xinetd.d/rootd
-   fi
-   # Create the file
-   cat > /etc/xinetd.d/rootd << EOF
-# default: on
-# description: The rootd daemon (ROOT file server)
-#
-service rootd
-{
-        disable         = no
-        flags           = REUSE
-        socket_type     = stream
-        wait            = no
-        user            = root
-        server          = %{_prefix}/bin/rootd
-        server_args     = -i
-}
-EOF
-fi
-#
-# Make sure that port 1094 is assigned to rootd in /etc/services 
-if ! grep -qs "^rootd" /etc/services ; then
-    echo "rootd           1094/tcp # ROOT file access daemon"  >> /etc/services
-fi
-#
-# Make sure that the rootd location is correct in /etc/rc.d/init.d/rootd
-sed -e "s|/usr/local|$RPM_INSTALL_PREFIX|" < /etc/rc.d/init.d/rootd > /etc/rc.d/init.d/rootd.tmp
-mv /etc/rc.d/init.d/rootd.tmp /etc/rc.d/init.d/rootd
-chmod 0755 /etc/rc.d/init.d/rootd
-#
-# end of script
-#---------------------------------------------------------------------
-# Pre removal 
-%preun
-#
-# Stop the service
-#
-/etc/rc.d/init.d/rootd stop
-#
-# Remove entries from /etc/inetd.conf
-if [ -f /etc/inetd.conf ] ; then 
-   if ! grep -qs ^rootd /etc/inetd.conf ; then 
-      sed '/^rootd.*/d' < /etc/inetd.conf > /etc/inetd.conf.rpmnew
-      mv /etc/inetd.conf.rpmnew /etc/inetd.conf
-   fi
-fi
-#
-# Remove entry from /etc/xinetd.d
-if [ -d /etc/xinetd.d ] ; then 
-   rm -f /etc/xinetd.d/rootd
-fi
-#
-# Do not remove antries from /etc/services, since the numbers _are_ 
-# assigned IANA, so there's no need 
-#
-# end of script
-#---------------------------------------------------------------------
-# Post removal - only body
-# end of script        
-
-- 
GitLab