debian/0000755000000000000000000000000012263221573007171 5ustar debian/dpm-copy-server-mysql.prerm0000644000000000000000000000047111263077530014442 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpmcopyd" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpmcopyd stop || exit $? else /etc/init.d/dpmcopyd stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove dpmcopyd /usr/lib/dpm-mysql/dpmcopyd fi #DEBHELPER# debian/dpm-name-server-mysql.postinst0000644000000000000000000000545012135766327015160 0ustar #!/bin/sh set -e updatedpns () { [ -r /etc/default/dpnsdaemon ] && . /etc/default/dpnsdaemon [ -z "$NSCONFIGFILE" ] && NSCONFIGFILE=/etc/DPNSCONFIG [ -r $NSCONFIGFILE ] || return 0 nscfg=$(cat $NSCONFIGFILE) cfg1=$(echo $nscfg | cut -f1 -d@) cfg2=$(echo $nscfg | cut -f2 -d@ -s) user=$(echo $cfg1 | cut -f1 -d/) passwd=$(echo $cfg1 | cut -f2 -d/ -s) host=$(echo $cfg2 | cut -f1 -d/) db=$(echo $cfg2 | cut -f2 -d/ -s) [ -z "$user" ] && return 0 [ -z "$passwd" ] && return 0 [ -z "$host" ] && return 0 [ -z "$db" ] && db=cns_db mycfg=$(mktemp) cat > $mycfg <<-EOF [client] user=$user password=$passwd EOF mysql="mysql --defaults-file=$mycfg --skip-column-names $db" vmajor=$($mysql -e "select major from schema_version" 2>/dev/null) vminor=$($mysql -e "select minor from schema_version" 2>/dev/null) vpatch=$($mysql -e "select patch from schema_version" 2>/dev/null) if [ -z "$vmajor" -o -z "$vminor" -o -z "$vpatch" ] ; then rm $mycfg return 0 fi if [ $vmajor -eq 3 -a $vminor -eq 0 -a $vpatch -eq 0 ] ; then $mysql <<-EOF ALTER TABLE Cns_groupinfo ADD banned INTEGER; ALTER TABLE Cns_userinfo ADD user_ca VARCHAR(255) BINARY; ALTER TABLE Cns_userinfo ADD banned INTEGER; CREATE INDEX linkname_idx ON Cns_symlinks(linkname(255)); UPDATE schema_version SET major = 3, minor = 1, patch = 0; EOF fi rm $mycfg return 0 } getent group dpmmgr > /dev/null || \ addgroup --quiet --system dpmmgr getent passwd dpmmgr > /dev/null || \ adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \ --ingroup dpmmgr --disabled-password --disabled-login \ --gecos "DPM manager" dpmmgr chown dpmmgr:dpmmgr /var/log/dpns updatedpns update-alternatives --install /usr/sbin/dpnsdaemon dpnsdaemon \ /usr/lib/dpm-mysql/dpnsdaemon 20 \ --slave /usr/share/man/man8/dpnsdaemon.8.gz dpnsdaemon.8.gz \ /usr/lib/dpm-mysql/dpnsdaemon.8.gz \ --slave /usr/share/lcgdm/DPNSCONFIG.templ DPNSCONFIG.templ \ /usr/lib/dpm-mysql/DPNSCONFIG.templ \ --slave /etc/init.d/dpnsdaemon dpnsdaemon.init \ /etc/dpm-mysql/dpnsdaemon.init \ --slave /etc/default/dpnsdaemon dpnsdaemon.conf \ /etc/dpm-mysql/dpnsdaemon.conf \ --slave /etc/logrotate.d/dpnsdaemon dpnsdaemon.logrotate \ /etc/dpm-mysql/dpnsdaemon.logrotate \ --slave /usr/sbin/dpns-shutdown dpns-shutdown \ /usr/lib/dpm-mysql/dpns-shutdown \ --slave /usr/share/man/man8/dpns-shutdown.8.gz dpns-shutdown.8.gz \ /usr/lib/dpm-mysql/dpns-shutdown.8.gz if [ -x "/etc/init.d/dpnsdaemon" ]; then update-rc.d dpnsdaemon defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpnsdaemon start || exit $? else /etc/init.d/dpnsdaemon start || exit $? fi fi #DEBHELPER# debian/dpm.install0000644000000000000000000000041611261751774011352 0ustar debian/tmp/usr/bin/dpm-[a-k]* debian/tmp/usr/bin/dpm-[m-z]* debian/tmp/usr/bin/dpns-* debian/tmp/usr/bin/rf* debian/tmp/usr/share/man/man1/dpm-[a-k]*.1 debian/tmp/usr/share/man/man1/dpm-[m-z]*.1 debian/tmp/usr/share/man/man1/dpns-*.1 debian/tmp/usr/share/man/man1/rf*.1 debian/dpm-server-mysql.prerm0000644000000000000000000000044011263077530013466 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpm" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm stop || exit $? else /etc/init.d/dpm stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove dpm /usr/lib/dpm-mysql/dpm fi #DEBHELPER# debian/lfc.install0000644000000000000000000000007511633007607011327 0ustar debian/tmp/usr/bin/lfc-* debian/tmp/usr/share/man/man1/lfc-* debian/dpm-name-server-mysql.install0000644000000000000000000000074512134535575014743 0ustar debian/tmp/usr/lib/dpm-mysql/dpnsdaemon debian/tmp/usr/lib/dpm-mysql/dpns-shutdown debian/tmp/usr/lib/dpm-mysql/dpnsdaemon.8* debian/tmp/usr/lib/dpm-mysql/dpns-shutdown.8* debian/tmp/usr/lib/dpm-mysql/DPNSCONFIG.templ debian/tmp/etc/dpm-mysql/dpnsdaemon.init debian/tmp/etc/dpm-mysql/dpnsdaemon.conf debian/tmp/etc/dpm-mysql/dpnsdaemon.logrotate debian/tmp/usr/share/lcgdm/create_dpns_tables_mysql.sql debian/tmp/var/log/dpns debian/tmp/var/lib/dpm debian/tmp/etc/grid-security/dpmmgr debian/libdpm-dev.install0000644000000000000000000000056411257456203012613 0ustar debian/tmp/usr/include/dpm debian/tmp/usr/lib/libdpm.a debian/tmp/usr/lib/libdpm.so debian/tmp/usr/share/man/man3/dpm_[a-o]*.3 debian/tmp/usr/share/man/man3/dpm_ping.3 debian/tmp/usr/share/man/man3/dpm_put.3 debian/tmp/usr/share/man/man3/dpm_putdone.3 debian/tmp/usr/share/man/man3/dpm_[q-z]*.3 debian/tmp/usr/share/man/man3/dpns_*.3 debian/tmp/usr/share/man/man3/rfio*.3 debian/dpm-srm-server-mysql.prerm0000644000000000000000000000150411632575701014272 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpm-srmv1" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv1 stop || exit $? else /etc/init.d/dpm-srmv1 stop || exit $? fi fi if [ -x "/etc/init.d/dpm-srmv2" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv2 stop || exit $? else /etc/init.d/dpm-srmv2 stop || exit $? fi fi if [ -x "/etc/init.d/dpm-srmv2.2" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv2.2 stop || exit $? else /etc/init.d/dpm-srmv2.2 stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove dpm-srmv1 /usr/lib/dpm-mysql/dpm-srmv1 update-alternatives --remove dpm-srmv2 /usr/lib/dpm-mysql/dpm-srmv2 update-alternatives --remove dpm-srmv2.2 /usr/lib/dpm-mysql/dpm-srmv2.2 fi #DEBHELPER# debian/dpm-server-mysql.postrm0000644000000000000000000000024211261732120013654 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display dpm > /dev/null || \ update-rc.d dpm remove >/dev/null || exit $? fi #DEBHELPER# debian/liblcgdm1.install0000644000000000000000000000017611630436210012414 0ustar debian/tmp/usr/lib/liblcgdm.so.* debian/tmp/usr/lib/lcgdm/libCsec_plugin_GSI.so debian/tmp/usr/lib/lcgdm/libCsec_plugin_ID.so debian/dpm-name-server-postgres.lintian-overrides0000644000000000000000000000034111632653430017415 0ustar # The init.d script is handled by update-alternatives dpm-name-server-postgres: init.d-script-not-marked-as-conffile etc/init.d/dpnsdaemon dpm-name-server-postgres: init.d-script-not-included-in-package etc/init.d/dpnsdaemon debian/dpm-rfio-server.install0000644000000000000000000000031311260661441013575 0ustar debian/tmp/usr/sbin/dpm-rfiod debian/tmp/etc/init.d/dpm-rfiod debian/tmp/etc/default/dpm-rfiod debian/tmp/etc/logrotate.d/dpm-rfiod debian/tmp/var/log/dpm-rfiod debian/tmp/usr/share/man/man8/dpm-rfiod.8 debian/dpm-server-postgres.postrm0000644000000000000000000000024211262032177014363 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display dpm > /dev/null || \ update-rc.d dpm remove >/dev/null || exit $? fi #DEBHELPER# debian/lfc-dli.prerm0000644000000000000000000000032111260725242011544 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/lfc-dli" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d lfc-dli stop || exit $? else /etc/init.d/lfc-dli stop || exit $? fi fi #DEBHELPER# debian/compat0000644000000000000000000000000211207314373010365 0ustar 5 debian/dpm-name-server-postgres.prerm0000644000000000000000000000050611263075636015115 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpnsdaemon" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpnsdaemon stop || exit $? else /etc/init.d/dpnsdaemon stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove dpnsdaemon /usr/lib/dpm-postgres/dpnsdaemon fi #DEBHELPER# debian/dpm-rfio-server.postinst0000644000000000000000000000040511261750362014016 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpm-rfiod" ]; then update-rc.d dpm-rfiod defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-rfiod start || exit $? else /etc/init.d/dpm-rfiod start || exit $? fi fi #DEBHELPER# debian/python-lfc.install0000644000000000000000000000072711261407277012656 0ustar debian/tmp/usr/lib/python*/*-packages/_lfc.so debian/tmp/usr/lib/python*/*-packages/lfc.py* debian/tmp/usr/lib/python*/*-packages/_lfcthr.so debian/tmp/usr/lib/python*/*-packages/lfcthr.py* debian/tmp/usr/lib/python*/*-packages/_lfc2.so debian/tmp/usr/lib/python*/*-packages/lfc2.py* debian/tmp/usr/lib/python*/*-packages/_lfc2thr.so debian/tmp/usr/lib/python*/*-packages/lfc2thr.py* debian/tmp/usr/share/man/man3/lfc_python.3 debian/tmp/usr/share/man/man3/lfc2_python.3 debian/dpm-server-postgres.prerm0000644000000000000000000000044311263075636014177 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpm" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm stop || exit $? else /etc/init.d/dpm stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove dpm /usr/lib/dpm-postgres/dpm fi #DEBHELPER# debian/dpm-name-server-mysql.README.Debian0000644000000000000000000000275312135766441015413 0ustar How to set up an DPM nameserver with a mysql backend ==================================================== The DPM nameserver (DPNS) is run by the dpmmgr user. This user requires a copy of the host certificate files: cp -p /etc/grid-security/hostcert.pem /etc/grid-security/dpmmgr/dpmcert.pem cp -p /etc/grid-security/hostkey.pem /etc/grid-security/dpmmgr/dpmkey.pem chown dpmmgr:dpmmgr /etc/grid-security/dpmmgr/dpm* Create the DPNS database on the mysql server: mysql -u root < /usr/share/lcgdm/create_dpns_tables_mysql.sql Select a username and password for this mysql database table. Replace and in the commands below with your choice, also replace with the hostname of the DPNS server: mysql -u root mysql> use mysql mysql> grant all on cns_db.* to @localhost identified by ''; mysql> grant all on cns_db.* to @ identified by ''; mysql> quit Let the DPNS server know about the account information and make sure only the dpmmgr user can read this information: touch /etc/DPNSCONFIG chmod 600 /etc/DPNSCONFIG chown dpmmgr:dpmmgr /etc/DPNSCONFIG echo /@/ > /etc/DPNSCONFIG If the / part is omitted the database "cns_db" will be used. If you have a firewall, open the DPNS server port (5010). Once the configuration is completed, change RUN_DPNSDAEMON=no to RUN_DPNSDAEMON=yes in /etc/default/dpnsdaemon, then start the DPNS server: invoke-rc.d dpnsdaemon start debian/lfc-server-mysql.prerm0000644000000000000000000000047611260744515013464 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/lfcdaemon" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d lfcdaemon stop || exit $? else /etc/init.d/lfcdaemon stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove lfcdaemon /usr/lib/lfc-mysql/lfcdaemon fi #DEBHELPER# debian/dpm-rfio-server.postrm0000644000000000000000000000016311261750435013461 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-rc.d dpm-rfiod remove >/dev/null || exit $? fi #DEBHELPER# debian/changelog0000644000000000000000000003313612263220003011034 0ustar lcgdm (1.8.7-3) unstable; urgency=medium * Add MariaDB as alternative dependency (Closes: #732882, #732893) -- Mattias Ellert Wed, 08 Jan 2014 10:34:44 +0100 lcgdm (1.8.7-2) unstable; urgency=low * Adapt to multi-arch Globus installation -- Mattias Ellert Sun, 01 Dec 2013 06:34:01 +0100 lcgdm (1.8.7-1) unstable; urgency=low * Update to version 1.8.7 -- Mattias Ellert Mon, 12 Aug 2013 10:51:10 +0200 lcgdm (1.8.6-4) unstable; urgency=low * Fix segfaults - issues found by Mayhem Team, Carnegie Mellon University -- Mattias Ellert Fri, 28 Jun 2013 22:31:26 +0200 lcgdm (1.8.6-3) unstable; urgency=low * Fix alternatives and readmes for changes in file install locations (Closes: #705991) -- Mattias Ellert Wed, 24 Apr 2013 16:41:07 +0200 lcgdm (1.8.6-2) unstable; urgency=low * Portability fix for kfreebsd kernel -- Mattias Ellert Sun, 21 Apr 2013 06:51:23 +0200 lcgdm (1.8.6-1) unstable; urgency=low * Update to version 1.8.6 (Closes: #702895) -- Mattias Ellert Sat, 16 Mar 2013 07:31:43 +0100 lcgdm (1.8.2-1) unstable; urgency=low * Update to version 1.8.2 (Closes: #630497) -- Mattias Ellert Wed, 07 Dec 2011 19:56:02 +0100 lcgdm (1.8.1.2-3) unstable; urgency=low * Add some missing directories to packages (fixes piupart warnings) * Fix insignificant glitch in the patches that caused warnings during build -- Mattias Ellert Thu, 20 Oct 2011 01:08:44 +0200 lcgdm (1.8.1.2-2) unstable; urgency=low * Merge the lcgdm packages to a single source package for easier package maintenance and improved inter-package dependency handling (Closes: #643476, #643477, #643485, #643486) * Implement new package names agreed with upstream * Add debug package * Use dpkg's build flags -- Mattias Ellert Fri, 09 Sep 2011 13:35:24 +0200 dpm-postgres (1.8.1.2-1) unstable; urgency=low * Update to version 1.8.1.2 * Drop patches lcgdm-withsoname.patch and lcgdm-gsoap.patch (upstream) -- Mattias Ellert Sat, 03 Sep 2011 19:21:09 +0200 dpm (1.8.1.2-1) unstable; urgency=low * Update to version 1.8.1.2 * Drop patches lcgdm-withsoname.patch and lcgdm-gsoap.patch (upstream) -- Mattias Ellert Sat, 03 Sep 2011 18:25:30 +0200 lfc-postgres (1.8.1.2-1) unstable; urgency=low * Update to version 1.8.1.2 * Drop patches lcgdm-withsoname.patch and lcgdm-gsoap.patch (upstream) -- Mattias Ellert Sat, 03 Sep 2011 17:35:09 +0200 lfc (1.8.1.2-1) unstable; urgency=low * Update to version 1.8.1.2 * Drop patches lcgdm-withsoname.patch and lcgdm-gsoap.patch (upstream) -- Mattias Ellert Sat, 03 Sep 2011 16:09:11 +0200 dpm-postgres (1.8.0.1-1) unstable; urgency=low * Update to version 1.8.0.1 * Dropped patch lcgdm-bashisms patch (fixed upstream) * Add database schema migration to maintainer scripts * Fix broken condrestart action in startup scripts * Fix race condition in Makefile -- Mattias Ellert Mon, 16 May 2011 06:47:45 +0200 dpm (1.8.0.1-1) unstable; urgency=low * Update to version 1.8.0.1 * Dropped patch lcgdm-bashisms patch (fixed upstream) * Add database schema migration to maintainer scripts * Fix broken condrestart action in startup scripts * Fix race condition in Makefile -- Mattias Ellert Sun, 15 May 2011 21:23:35 +0200 lfc-postgres (1.8.0.1-1) unstable; urgency=low * Update to version 1.8.0.1 * Dropped patch lcgdm-bashisms patch (fixed upstream) * Add database schema migration to maintainer scripts * Fix broken condrestart action in startup scripts * Fix race condition in Makefile -- Mattias Ellert Mon, 16 May 2011 06:39:04 +0200 lfc (1.8.0.1-1) unstable; urgency=low * Update to version 1.8.0.1 * Dropped patch lcgdm-bashisms patch (fixed upstream) * Add database schema migration to maintainer scripts * Fix broken condrestart action in startup scripts * Fix race condition in Makefile (Closes: #626070) -- Mattias Ellert Wed, 11 May 2011 08:49:57 +0200 dpm-postgres (1.7.4.7-1) unstable; urgency=low * Update to version 1.7.4.7 * Dropped patches lcgdm-typo.patch and lcgdm-man.patch (fixed upstream) * Fix bashisms (Closes: #581087, #581088, #581089, #581090, #581093, #581097) -- Mattias Ellert Sun, 06 Jun 2010 14:30:32 +0200 dpm (1.7.4.7-1) unstable; urgency=low * Update to version 1.7.4.7 * Dropped patches lcgdm-typo.patch and lcgdm-man.patch (fixed upstream) * Fix bashisms (Closes: #581081, #581082, #581083, #581084, #581085, #581086, #581096) -- Mattias Ellert Sun, 06 Jun 2010 14:30:32 +0200 lfc-postgres (1.7.4.7-1) unstable; urgency=low * Update to version 1.7.4.7 * Dropped patches lcgdm-typo.patch and lcgdm-man.patch (fixed upstream) * Fix bashisms (Closes: #581120) -- Mattias Ellert Sun, 06 Jun 2010 14:30:32 +0200 lfc (1.7.4.7-1) unstable; urgency=low * Update to version 1.7.4.7 * Dropped patches lcgdm-typo.patch and lcgdm-man.patch (fixed upstream) * Fix bashisms (Closes: #581118, #581119) -- Mattias Ellert Sun, 06 Jun 2010 14:30:32 +0200 dpm-postgres (1.7.4.4-1) unstable; urgency=low * Update to version 1.7.4.4 * Dropped patches lcgdm-installpermissions.patch, lcgdm-rules.patch, lcgdm-initscripts.patch and lcgdm-posinc.patch (fixed upstream) -- Mattias Ellert Sun, 18 Apr 2010 13:38:13 +0200 dpm (1.7.4.4-1) unstable; urgency=low * Update to version 1.7.4.4 * Dropped patches lcgdm-installpermissions.patch, lcgdm-rules.patch, lcgdm-initscripts.patch and lcgdm-posinc.patch (fixed upstream) -- Mattias Ellert Sun, 18 Apr 2010 13:38:13 +0200 lfc-postgres (1.7.4.4-1) unstable; urgency=low * Update to version 1.7.4.4 * Dropped patches lcgdm-installpermissions.patch, lcgdm-rules.patch, lcgdm-initscripts.patch and lcgdm-posinc.patch (fixed upstream) -- Mattias Ellert Sun, 18 Apr 2010 13:38:13 +0200 lfc (1.7.4.4-1) unstable; urgency=low * Update to version 1.7.4.4 * Dropped patches lcgdm-installpermissions.patch, lcgdm-rules.patch, lcgdm-initscripts.patch and lcgdm-posinc.patch (fixed upstream) -- Mattias Ellert Sun, 18 Apr 2010 13:38:13 +0200 dpm-postgres (1.7.4.1-3) unstable; urgency=low * Correct install script typos (fixes piuparts errors) -- Mattias Ellert Wed, 06 Jan 2010 18:40:02 +0100 dpm (1.7.4.1-3) unstable; urgency=low * Correct install script typos (fixes piuparts errors) -- Mattias Ellert Wed, 06 Jan 2010 18:40:02 +0100 dpm-postgres (1.7.4.1-2) unstable; urgency=low * More porting fixes for GNU/Hurd -- Mattias Ellert Wed, 06 Jan 2010 00:18:31 +0100 dpm (1.7.4.1-2) unstable; urgency=low * More porting fixes for GNU/Hurd -- Mattias Ellert Wed, 06 Jan 2010 00:18:31 +0100 lfc-postgres (1.7.4.1-2) unstable; urgency=low * More porting fixes for GNU/Hurd -- Mattias Ellert Wed, 06 Jan 2010 00:18:31 +0100 lfc (1.7.4.1-2) unstable; urgency=low * More porting fixes for GNU/Hurd -- Mattias Ellert Wed, 06 Jan 2010 00:18:31 +0100 dpm-postgres (1.7.4.1-1) unstable; urgency=low * Update to version 1.7.4.1 * More porting fixes for GNU/Hurd and kfreebsd * Dropped patch lcgdm-missing-swig-includes.patch (fixed upstream) -- Mattias Ellert Tue, 05 Jan 2010 08:53:20 +0100 dpm (1.7.4.1-1) unstable; urgency=low * Update to version 1.7.4.1 * More porting fixes for GNU/Hurd and kfreebsd * Dropped patch lcgdm-missing-swig-includes.patch (fixed upstream) -- Mattias Ellert Tue, 05 Jan 2010 08:53:20 +0100 lfc-postgres (1.7.4.1-1) unstable; urgency=low * Update to version 1.7.4.1 * More porting fixes for GNU/Hurd and kfreebsd * Dropped patch lcgdm-missing-swig-includes.patch (fixed upstream) -- Mattias Ellert Tue, 05 Jan 2010 08:53:20 +0100 lfc (1.7.4.1-1) unstable; urgency=low * Update to version 1.7.4.1 * More porting fixes for GNU/Hurd and kfreebsd * Dropped patch lcgdm-missing-swig-includes.patch (fixed upstream) -- Mattias Ellert Tue, 05 Jan 2010 08:53:20 +0100 dpm-postgres (1.7.3.1-5) unstable; urgency=low * Fix porting issues for GNU/Hurd and kfreebsd * Extend package descriptions -- Mattias Ellert Sun, 27 Dec 2009 14:59:19 +0100 dpm (1.7.3.1-5) unstable; urgency=low * Fix porting issues for GNU/Hurd and kfreebsd * Extend package descriptions (Closes: #561722) -- Mattias Ellert Sun, 27 Dec 2009 14:59:19 +0100 lfc-postgres (1.7.3.1-5) unstable; urgency=low * Fix porting issues for GNU/Hurd and kfreebsd * Extend package description -- Mattias Ellert Sun, 27 Dec 2009 14:59:19 +0100 lfc (1.7.3.1-5) unstable; urgency=low * Fix porting issues for GNU/Hurd and kfreebsd * Extend package descriptions (Closes: #561723) -- Mattias Ellert Sun, 27 Dec 2009 14:59:19 +0100 dpm-postgres (1.7.3.1-4) unstable; urgency=low * Add missing include statements in swig interface files * Use Debian's imake instead of bundled version -- Mattias Ellert Mon, 07 Dec 2009 14:38:11 +0100 dpm (1.7.3.1-4) unstable; urgency=low * Add missing include statements in swig interface files * Use Debian's imake instead of bundled version * Extend the dpm-client package description (Closes: #557884) -- Mattias Ellert Mon, 07 Dec 2009 14:38:11 +0100 lfc-postgres (1.7.3.1-4) unstable; urgency=low * Add missing include statements in swig interface files * Use Debian's imake instead of bundled version -- Mattias Ellert Mon, 07 Dec 2009 14:38:11 +0100 lfc (1.7.3.1-4) unstable; urgency=low * Add missing include statements in swig interface files (Closes: #557890) * Use Debian's imake instead of bundled version -- Mattias Ellert Mon, 07 Dec 2009 14:38:11 +0100 dpm-postgres (1.7.3.1-3) unstable; urgency=low * Don't use /bin/false as shell - doesn't work with su * Fix bad directory used for dlopening plugins -- Mattias Ellert Tue, 24 Nov 2009 17:27:52 +0100 dpm (1.7.3.1-3) unstable; urgency=low * Don't use /bin/false as shell - doesn't work with su * Fix bad directory used for dlopening plugins -- Mattias Ellert Tue, 24 Nov 2009 17:27:52 +0100 lfc-postgres (1.7.3.1-3) unstable; urgency=low * Don't use /bin/false as shell - doesn't work with su * Fix bad directory used for dlopening plugins -- Mattias Ellert Tue, 24 Nov 2009 17:27:52 +0100 lfc (1.7.3.1-3) unstable; urgency=low * Don't use /bin/false as shell - doesn't work with su * Fix bad directory used for dlopening plugins -- Mattias Ellert Tue, 24 Nov 2009 17:27:52 +0100 dpm-postgres (1.7.3.1-2) unstable; urgency=low * Update copyright file (Closes: #552335) -- Mattias Ellert Wed, 18 Nov 2009 15:07:04 +0100 dpm (1.7.3.1-2) unstable; urgency=low * Update copyright file (Closes: #552331) -- Mattias Ellert Wed, 18 Nov 2009 15:06:04 +0100 lfc-postgres (1.7.3.1-2) unstable; urgency=low * Update copyright file (Closes: #552330) -- Mattias Ellert Wed, 18 Nov 2009 15:04:48 +0100 lfc (1.7.3.1-2) unstable; urgency=low * Update copyright file (Closes: #515225) -- Mattias Ellert Wed, 18 Nov 2009 15:02:58 +0100 dpm-postgres (1.7.3.1-1) UNRELEASED; urgency=low * Initial release -- Mattias Ellert Sat, 26 Sep 2009 05:18:22 +0200 dpm (1.7.3.1-1) UNRELEASED; urgency=low * Initial release -- Mattias Ellert Sat, 26 Sep 2009 05:18:22 +0200 lfc-postgres (1.7.3.1-1) UNRELEASED; urgency=low * Initial release -- Mattias Ellert Sat, 26 Sep 2009 05:18:22 +0200 lfc (1.7.3.1-1) UNRELEASED; urgency=low * Update to version 1.7.3.1 * Changed copyright file to reflect upsteam license change to Apache 2.0 -- Mattias Ellert Sat, 26 Sep 2009 05:18:22 +0200 lfc (1.7.2.5-1) UNRELEASED; urgency=low * Updated policy to 3.8.3 * Update to version 1.7.2.5 -- Mattias Ellert Mon, 17 Aug 2009 16:57:38 +0200 lfc (1.7.0.6-3) UNRELEASED; urgency=low * Completed reaction to comments by ftpmasters - renaming perl and python packages according to debian conventions -- Steffen Moeller Sun, 29 Mar 2009 23:44:08 +0200 lfc (1.7.0.6-2) UNRELEASED; urgency=low * Updated policy to 3.8.1 * Initial reaction to comments -- Steffen Moeller Sun, 29 Mar 2009 23:44:08 +0200 lfc (1.7.0.6-1) UNRELEASED; urgency=low * Initial release -- Mattias Ellert Tue, 20 Jan 2009 10:43:25 +0100 debian/dpm-copy-server-mysql.lintian-overrides0000644000000000000000000000032711632653336016757 0ustar # The init.d script is handled by update-alternatives dpm-copy-server-mysql: init.d-script-not-marked-as-conffile etc/init.d/dpmcopyd dpm-copy-server-mysql: init.d-script-not-included-in-package etc/init.d/dpmcopyd debian/python-dpm.install0000644000000000000000000000054211261752101012652 0ustar debian/tmp/usr/bin/dpm-listspaces debian/tmp/usr/lib/python*/*-packages/_dpm.so debian/tmp/usr/lib/python*/*-packages/dpm.py* debian/tmp/usr/lib/python*/*-packages/_dpm2.so debian/tmp/usr/lib/python*/*-packages/dpm2.py* debian/tmp/usr/share/man/man1/dpm-listspaces.1 debian/tmp/usr/share/man/man3/dpm_python.3 debian/tmp/usr/share/man/man3/dpm2_python.3 debian/dpm-srm-server-mysql.install0000644000000000000000000000141011647652511014610 0ustar debian/tmp/usr/lib/dpm-mysql/dpm-srmv1 debian/tmp/usr/lib/dpm-mysql/dpm-srmv2 debian/tmp/usr/lib/dpm-mysql/dpm-srmv2.2 debian/tmp/usr/lib/dpm-mysql/dpm-srmv1.8* debian/tmp/usr/lib/dpm-mysql/dpm-srmv2.8* debian/tmp/usr/lib/dpm-mysql/dpm-srmv2.2.8* debian/tmp/etc/dpm-mysql/dpm-srmv1.init debian/tmp/etc/dpm-mysql/dpm-srmv2.init debian/tmp/etc/dpm-mysql/dpm-srmv2.2.init debian/tmp/etc/dpm-mysql/dpm-srmv1.conf debian/tmp/etc/dpm-mysql/dpm-srmv2.conf debian/tmp/etc/dpm-mysql/dpm-srmv2.2.conf debian/tmp/etc/dpm-mysql/dpm-srmv1.logrotate debian/tmp/etc/dpm-mysql/dpm-srmv2.logrotate debian/tmp/etc/dpm-mysql/dpm-srmv2.2.logrotate debian/tmp/var/log/dpm-srmv1 debian/tmp/var/log/dpm-srmv2 debian/tmp/var/log/dpm-srmv2.2 debian/tmp/var/lib/dpm debian/tmp/etc/grid-security/dpmmgr debian/lfc-server-postgres.lintian-overrides0000644000000000000000000000032511632653625016473 0ustar # The init.d script is handled by update-alternatives lfc-server-postgres: init.d-script-not-marked-as-conffile etc/init.d/lfcdaemon lfc-server-postgres: init.d-script-not-included-in-package etc/init.d/lfcdaemon debian/dpm-srm-server-mysql.postinst0000644000000000000000000000514511632774733015043 0ustar #!/bin/sh set -e getent group dpmmgr > /dev/null || \ addgroup --quiet --system dpmmgr getent passwd dpmmgr > /dev/null || \ adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \ --ingroup dpmmgr --disabled-password --disabled-login \ --gecos "DPM manager" dpmmgr chown dpmmgr:dpmmgr /var/log/dpm-srmv1 update-alternatives --install /usr/sbin/dpm-srmv1 dpm-srmv1 \ /usr/lib/dpm-mysql/dpm-srmv1 20 \ --slave /usr/share/man/man8/dpm-srmv1.8.gz dpm-srmv1.8.gz \ /usr/lib/dpm-mysql/dpm-srmv1.8.gz \ --slave /etc/init.d/dpm-srmv1 dpm-srmv1.init \ /etc/dpm-mysql/dpm-srmv1.init \ --slave /etc/default/dpm-srmv1 dpm-srmv1.conf \ /etc/dpm-mysql/dpm-srmv1.conf \ --slave /etc/logrotate.d/dpm-srmv1 dpm-srmv1.logrotate \ /etc/dpm-mysql/dpm-srmv1.logrotate if [ -x "/etc/init.d/dpm-srmv1" ]; then update-rc.d dpm-srmv1 defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv1 start || exit $? else /etc/init.d/dpm-srmv1 start || exit $? fi fi chown dpmmgr:dpmmgr /var/log/dpm-srmv2 update-alternatives --install /usr/sbin/dpm-srmv2 dpm-srmv2 \ /usr/lib/dpm-mysql/dpm-srmv2 20 \ --slave /usr/share/man/man8/dpm-srmv2.8.gz dpm-srmv2.8.gz \ /usr/lib/dpm-mysql/dpm-srmv2.8.gz \ --slave /etc/init.d/dpm-srmv2 dpm-srmv2.init \ /etc/dpm-mysql/dpm-srmv2.init \ --slave /etc/default/dpm-srmv2 dpm-srmv2.conf \ /etc/dpm-mysql/dpm-srmv2.conf \ --slave /etc/logrotate.d/dpm-srmv2 dpm-srmv2.logrotate \ /etc/dpm-mysql/dpm-srmv2.logrotate if [ -x "/etc/init.d/dpm-srmv2" ]; then update-rc.d dpm-srmv2 defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv2 start || exit $? else /etc/init.d/dpm-srmv2 start || exit $? fi fi chown dpmmgr:dpmmgr /var/log/dpm-srmv2.2 update-alternatives --install /usr/sbin/dpm-srmv2.2 dpm-srmv2.2 \ /usr/lib/dpm-mysql/dpm-srmv2.2 20 \ --slave /usr/share/man/man8/dpm-srmv2.2.8.gz dpm-srmv2.2.8.gz \ /usr/lib/dpm-mysql/dpm-srmv2.2.8.gz \ --slave /etc/init.d/dpm-srmv2.2 dpm-srmv2.2.init \ /etc/dpm-mysql/dpm-srmv2.2.init \ --slave /etc/default/dpm-srmv2.2 dpm-srmv2.2.conf \ /etc/dpm-mysql/dpm-srmv2.2.conf \ --slave /etc/logrotate.d/dpm-srmv2.2 dpm-srmv2.2.logrotate \ /etc/dpm-mysql/dpm-srmv2.2.logrotate if [ -x "/etc/init.d/dpm-srmv2.2" ]; then update-rc.d dpm-srmv2.2 defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv2.2 start || exit $? else /etc/init.d/dpm-srmv2.2 start || exit $? fi fi #DEBHELPER# debian/dpm-copy-server-postgres.install0000644000000000000000000000045611647652431015474 0ustar debian/tmp/usr/lib/dpm-postgres/dpmcopyd debian/tmp/usr/lib/dpm-postgres/dpmcopyd.8* debian/tmp/etc/dpm-postgres/dpmcopyd.init debian/tmp/etc/dpm-postgres/dpmcopyd.conf debian/tmp/etc/dpm-postgres/dpmcopyd.logrotate debian/tmp/var/log/dpmcopy debian/tmp/var/lib/dpm debian/tmp/etc/grid-security/dpmmgr debian/dpm-name-server-mysql.prerm0000644000000000000000000000050311263077530014404 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpnsdaemon" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpnsdaemon stop || exit $? else /etc/init.d/dpnsdaemon stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove dpnsdaemon /usr/lib/dpm-mysql/dpnsdaemon fi #DEBHELPER# debian/dpm-srm-server-mysql.postrm0000644000000000000000000000062311632575510014470 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display dpm-srmv1 > /dev/null || \ update-rc.d dpm-srmv1 remove > /dev/null || exit $? update-alternatives --display dpm-srmv2 > /dev/null || \ update-rc.d dpm-srmv2 remove > /dev/null || exit $? update-alternatives --display dpm-srmv2.2 > /dev/null || \ update-rc.d dpm-srmv2.2 remove > /dev/null || exit $? fi #DEBHELPER# debian/lfc-server-postgres.prerm0000644000000000000000000000050111261436101014140 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/lfcdaemon" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d lfcdaemon stop || exit $? else /etc/init.d/lfcdaemon stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove lfcdaemon /usr/lib/lfc-postgres/lfcdaemon fi #DEBHELPER# debian/dpm-server-mysql.README.Debian0000644000000000000000000000267612135766533014503 0ustar How to set up an DPM server with a mysql backend ================================================ The DPM server is run by the dpmmgr user. This user requires a copy of the host certificate files: cp -p /etc/grid-security/hostcert.pem /etc/grid-security/dpmmgr/dpmcert.pem cp -p /etc/grid-security/hostkey.pem /etc/grid-security/dpmmgr/dpmkey.pem chown dpmmgr:dpmmgr /etc/grid-security/dpmmgr/dpm* Create the DPM database on the mysql server: mysql -u root < /usr/share/lcgdm/create_dpm_tables_mysql.sql Select a username and password for this mysql database table. Replace and in the commands below with your choice, also replace with the hostname of the DPM server: mysql -u root mysql> use mysql mysql> grant all on dpm_db.* to @localhost identified by ''; mysql> grant all on dpm_db.* to @ identified by ''; mysql> quit Let the DPM server know about the account information and make sure only the dpmmgr user can read this information: touch /etc/DPMCONFIG chmod 600 /etc/DPMCONFIG chown dpmmgr:dpmmgr /etc/DPMCONFIG echo /@/ > /etc/DPMCONFIG If the / part is omitted the database "dpm_db" will be used. If you have a firewall, open the DPM server port (5015). Once the configuration is completed, change RUN_DPMDAEMON=no to RUN_DPMDAEMON=yes in /etc/default/dpm, then start the DPM server: invoke-rc.d dpm start debian/dpm-srm-server-postgres.postinst0000644000000000000000000000524211633005456015530 0ustar #!/bin/sh set -e getent group dpmmgr > /dev/null || \ addgroup --quiet --system dpmmgr getent passwd dpmmgr > /dev/null || \ adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \ --ingroup dpmmgr --disabled-password --disabled-login \ --gecos "DPM manager" dpmmgr chown dpmmgr:dpmmgr /var/log/dpm-srmv1 update-alternatives --install /usr/sbin/dpm-srmv1 dpm-srmv1 \ /usr/lib/dpm-postgres/dpm-srmv1 10 \ --slave /usr/share/man/man8/dpm-srmv1.8.gz dpm-srmv1.8.gz \ /usr/lib/dpm-postgres/dpm-srmv1.8.gz \ --slave /etc/init.d/dpm-srmv1 dpm-srmv1.init \ /etc/dpm-postgres/dpm-srmv1.init \ --slave /etc/default/dpm-srmv1 dpm-srmv1.conf \ /etc/dpm-postgres/dpm-srmv1.conf \ --slave /etc/logrotate.d/dpm-srmv1 dpm-srmv1.logrotate \ /etc/dpm-postgres/dpm-srmv1.logrotate if [ -x "/etc/init.d/dpm-srmv1" ]; then update-rc.d dpm-srmv1 defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv1 start || exit $? else /etc/init.d/dpm-srmv1 start || exit $? fi fi set -e chown dpmmgr:dpmmgr /var/log/dpm-srmv2 update-alternatives --install /usr/sbin/dpm-srmv2 dpm-srmv2 \ /usr/lib/dpm-postgres/dpm-srmv2 10 \ --slave /usr/share/man/man8/dpm-srmv2.8.gz dpm-srmv2.8.gz \ /usr/lib/dpm-postgres/dpm-srmv2.8.gz \ --slave /etc/init.d/dpm-srmv2 dpm-srmv2.init \ /etc/dpm-postgres/dpm-srmv2.init \ --slave /etc/default/dpm-srmv2 dpm-srmv2.conf \ /etc/dpm-postgres/dpm-srmv2.conf \ --slave /etc/logrotate.d/dpm-srmv2 dpm-srmv2.logrotate \ /etc/dpm-postgres/dpm-srmv2.logrotate if [ -x "/etc/init.d/dpm-srmv2" ]; then update-rc.d dpm-srmv2 defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv2 start || exit $? else /etc/init.d/dpm-srmv2 start || exit $? fi fi set -e chown dpmmgr:dpmmgr /var/log/dpm-srmv2.2 update-alternatives --install /usr/sbin/dpm-srmv2.2 dpm-srmv2.2 \ /usr/lib/dpm-postgres/dpm-srmv2.2 10 \ --slave /usr/share/man/man8/dpm-srmv2.2.8.gz dpm-srmv2.2.8.gz \ /usr/lib/dpm-postgres/dpm-srmv2.2.8.gz \ --slave /etc/init.d/dpm-srmv2.2 dpm-srmv2.2.init \ /etc/dpm-postgres/dpm-srmv2.2.init \ --slave /etc/default/dpm-srmv2.2 dpm-srmv2.2.conf \ /etc/dpm-postgres/dpm-srmv2.2.conf \ --slave /etc/logrotate.d/dpm-srmv2.2 dpm-srmv2.2.logrotate \ /etc/dpm-postgres/dpm-srmv2.2.logrotate if [ -x "/etc/init.d/dpm-srmv2.2" ]; then update-rc.d dpm-srmv2.2 defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv2.2 start || exit $? else /etc/init.d/dpm-srmv2.2 start || exit $? fi fi #DEBHELPER# debian/dpm-name-server-mysql.lintian-overrides0000644000000000000000000000033311632660161016714 0ustar # The init.d script is handled by update-alternatives dpm-name-server-mysql: init.d-script-not-marked-as-conffile etc/init.d/dpnsdaemon dpm-name-server-mysql: init.d-script-not-included-in-package etc/init.d/dpnsdaemon debian/libdpm1.install0000644000000000000000000000003711257410016012103 0ustar debian/tmp/usr/lib/libdpm.so.* debian/libdpm-perl.install0000644000000000000000000000010011257410441012753 0ustar debian/tmp/usr/lib/perl5/dpm.so debian/tmp/usr/lib/perl5/dpm.pm debian/libdpm1.docs0000644000000000000000000000001311257456116011372 0ustar dpm/README debian/lfc-dli.install0000644000000000000000000000040712124777704012104 0ustar debian/tmp/usr/sbin/lfc-dli debian/tmp/usr/share/man/man8/lfc-dli.8 debian/tmp/etc/init.d/lfc-dli debian/tmp/etc/default/lfc-dli debian/tmp/etc/logrotate.d/lfc-dli debian/tmp/usr/share/lcgdm/lcg-info-provider-lfc debian/tmp/var/log/lfc-dli debian/tmp/var/lib/lfc debian/lfc-dli.postrm0000644000000000000000000000016111260727143011747 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-rc.d lfc-dli remove >/dev/null || exit $? fi #DEBHELPER# debian/dpm-name-server-postgres.install0000644000000000000000000000100012134535620015414 0ustar debian/tmp/usr/lib/dpm-postgres/dpnsdaemon debian/tmp/usr/lib/dpm-postgres/dpns-shutdown debian/tmp/usr/lib/dpm-postgres/dpnsdaemon.8* debian/tmp/usr/lib/dpm-postgres/dpns-shutdown.8* debian/tmp/usr/lib/dpm-postgres/DPNSCONFIG.templ debian/tmp/etc/dpm-postgres/dpnsdaemon.init debian/tmp/etc/dpm-postgres/dpnsdaemon.conf debian/tmp/etc/dpm-postgres/dpnsdaemon.logrotate debian/tmp/usr/share/lcgdm/create_dpns_tables_postgres.sql debian/tmp/var/log/dpns debian/tmp/var/lib/dpm debian/tmp/etc/grid-security/dpmmgr debian/lfc-server-mysql.install0000644000000000000000000000073212124753672014004 0ustar debian/tmp/usr/lib/lfc-mysql/lfcdaemon debian/tmp/usr/lib/lfc-mysql/lfc-shutdown debian/tmp/usr/lib/lfc-mysql/NSCONFIG.templ debian/tmp/usr/lib/lfc-mysql/lfcdaemon.8* debian/tmp/usr/lib/lfc-mysql/lfc-shutdown.8* debian/tmp/etc/lfc-mysql/lfcdaemon.init debian/tmp/etc/lfc-mysql/lfcdaemon.conf debian/tmp/etc/lfc-mysql/lfcdaemon.logrotate debian/tmp/usr/share/lcgdm/create_lfc_tables_mysql.sql debian/tmp/var/log/lfc debian/tmp/var/lib/lfc debian/tmp/etc/grid-security/lfcmgr debian/liblfc1.install0000644000000000000000000000003711207314373012073 0ustar debian/tmp/usr/lib/liblfc.so.* debian/dpm-server-postgres.README.Debian0000644000000000000000000000237712135766552015203 0ustar How to set up an DPM server with a postgres backend =================================================== The DPM server is run by the dpmmgr user. This user requires a copy of the host certificate files: cp -p /etc/grid-security/hostcert.pem /etc/grid-security/dpmmgr/dpmcert.pem cp -p /etc/grid-security/hostkey.pem /etc/grid-security/dpmmgr/dpmkey.pem chown dpmmgr:dpmmgr /etc/grid-security/dpmmgr/dpm* Create a postgres database user for the DPM server: createuser -P The command above will prompt you for a password for the new user. Create the DPM database: createdb -O Create the DPM database tables: psql -W -U -f /usr/share/lcgdm/create_dpm_tables_postgres.sql Let the DPM server know about the account information and make sure only the dpmmgr user can read this information: touch /etc/DPMCONFIG chmod 600 /etc/DPMCONFIG chown dpmmgr:dpmmgr /etc/DPMCONFIG echo /@/ > /etc/DPMCONFIG If the / part is omitted the database "dpm_db" will be used. If you have a firewall, open the DPM server port (5015). Once the configuration is completed, change RUN_DPMDAEMON=no to RUN_DPMDAEMON=yes in /etc/default/dpm, then start the DPM server: invoke-rc.d dpm start debian/dpm-server-postgres.lintian-overrides0000644000000000000000000000031111632653532016477 0ustar # The init.d script is handled by update-alternatives dpm-server-postgres: init.d-script-not-marked-as-conffile etc/init.d/dpm dpm-server-postgres: init.d-script-not-included-in-package etc/init.d/dpm debian/dpm-copy-server-mysql.postrm0000644000000000000000000000025411261733660014641 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display dpmcopyd > /dev/null || \ update-rc.d dpmcopyd remove >/dev/null || exit $? fi #DEBHELPER# debian/lfc-server-mysql.README.Debian0000644000000000000000000000270612135766712014460 0ustar How to set up an LFC server with a mysql backend ================================================ The LFC server is run by the lfcmgr user. This user requires a copy of the host certificate files: cp -p /etc/grid-security/hostcert.pem /etc/grid-security/lfcmgr/lfccert.pem cp -p /etc/grid-security/hostkey.pem /etc/grid-security/lfcmgr/lfckey.pem chown lfcmgr:lfcmgr /etc/grid-security/lfcmgr/lfc* Create the LFC database on the mysql server: mysql -u root < /usr/share/lcgdm/create_lfc_tables_mysql.sql Select a username and password for this mysql database table. Replace and in the commands below with your choice, also replace with the hostname of the LFC server: mysql -u root mysql> use mysql mysql> grant all on cns_db.* to @localhost identified by ''; mysql> grant all on cns_db.* to @ identified by ''; mysql> quit Let the LFC server know about the account information and make sure only the lfcmgr user can read this information: touch /etc/NSCONFIG chmod 600 /etc/NSCONFIG chown lfcmgr:lfcmgr /etc/NSCONFIG echo /@/ > /etc/NSCONFIG If the / part is omitted the database "cns_db" will be used. If you have a firewall, open the LFC server port (5010). Once the configuration is completed, change RUN_LFCDAEMON=no to RUN_LFCDAEMON=yes in /etc/default/lfcdaemon, then start the LFC server: invoke-rc.d lfcdaemon start debian/control0000644000000000000000000003374012263217443010604 0ustar Source: lcgdm Priority: optional Maintainer: Mattias Ellert Build-Depends: debhelper (>= 5), libglobus-gssapi-gsi-dev, libglobus-gss-assist-dev, libglobus-gsi-credential-dev, libglobus-gsi-callback-dev, libglobus-gass-copy-dev, libglobus-ftp-client-dev, libglobus-common-dev, voms-dev (>= 2), gsoap, libcgsi-gsoap-dev (>= 1.3.4.2), libmysqlclient-dev, libpq-dev, uuid-dev, swig, libperl-dev, perl, python-dev, python-support, xutils-dev, pkg-config XS-Python-Version: current Standards-Version: 3.9.5 Section: net Vcs-Browser: http://svn.nordugrid.org/trac/packaging/browser/debian/lcgdm Vcs-Svn: http://svn.nordugrid.org/repos/packaging/debian/lcgdm Homepage: http://glite.web.cern.ch/glite/ Package: liblcgdm1 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: LHC Computing Grid Data Management common libraries This package contains common libraries for the LCG Data Management components: the LFC (LCG File Catalog) and the DPM (Disk Pool Manager). Package: liblcgdm-dev Section: libdevel Architecture: any Depends: liblcgdm1 (= ${binary:Version}), ${misc:Depends} Description: LCG Data Management common development files This package contains common development libraries and header files for LCG Data Management. Package: liblfc1 Section: libs Architecture: any Depends: liblcgdm1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: LCG File Catalog (LFC) libraries The LCG File Catalog (LFC) keeps track of the locations of the physical replicas of the logical files in a distributed storage system. This package contains the runtime LFC client library. Package: liblfc-dev Section: libdevel Architecture: any Depends: liblfc1 (= ${binary:Version}), liblcgdm-dev (= ${binary:Version}), ${misc:Depends} Description: LFC development libraries and header files The LCG File Catalog (LFC) keeps track of the locations of the physical replicas of the logical files in a distributed storage system. This package contains the development libraries and header files for LFC. Package: lfc Section: net Architecture: any Provides: lfc-client Replaces: lfc-client (<< 1.8.1.2-2~) Conflicts: lfc-client (<< 1.8.1.2-2~) Depends: liblfc1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: LCG File Catalog (LFC) client The LCG File Catalog (LFC) keeps track of the locations of the physical replicas of the logical files in a distributed storage system. This package provides the command line interfaces for the LFC. Package: liblfc-perl Section: perl Architecture: any Depends: liblfc1 (= ${binary:Version}), ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends} Description: LCG File Catalog (LFC) perl bindings The LCG File Catalog (LFC) keeps track of the locations of the physical replicas of the logical files in a distributed storage system. This package provides Perl bindings for the LFC client library. Package: python-lfc Section: python Architecture: any Provides: ${python:Provides} Depends: liblfc1 (= ${binary:Version}), ${shlibs:Depends}, ${python:Depends}, ${misc:Depends} Description: LCG File Catalog (LFC) python bindings The LCG File Catalog (LFC) keeps track of the locations of the physical replicas of the logical files in a distributed storage system. This package provides Python bindings for the LFC client library. Package: lfc-server-mysql Section: net Architecture: any Provides: lfc-mysql Replaces: lfc-mysql (<< 1.8.1.2-2~) Conflicts: lfc-mysql (<< 1.8.1.2-2~) Depends: liblfc1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger, mariadb-client | mysql-client Description: LCG File Catalog (LFC) server with MySQL database backend The LCG File Catalog (LFC) keeps track of the locations of the physical replicas of the logical files in a distributed storage system. This package provides an LFC server that uses MySQL as its database backend. Package: lfc-server-postgres Section: net Architecture: any Provides: lfc-postgres Replaces: lfc-postgres (<< 1.8.1.2-2~) Conflicts: lfc-postgres (<< 1.8.1.2-2~) Depends: liblfc1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger, postgresql-client Description: LCG File Catalog (LFC) server with postgres database backend The LCG File Catalog (LFC) keeps track of the locations of the physical replicas of the logical files in a distributed storage system. This package provides an LFC server that uses postgres as its database backend. Package: lfc-dli Section: net Architecture: any Depends: liblfc1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends} Description: LCG File Catalog (LFC) data location interface (dli) server The LCG File Catalog (LFC) keeps track of the locations of the physical replicas of the logical files in a distributed storage system. This package provides the data location interface (dli) server for the LFC. Package: libdpm1 Section: libs Architecture: any Depends: liblcgdm1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Disk Pool Manager (DPM) libraries The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package contains the runtime DPM client library. Package: libdpm-dev Section: libdevel Architecture: any Depends: libdpm1 (= ${binary:Version}), liblcgdm-dev (= ${binary:Version}), ${misc:Depends} Description: DPM development libraries and header files The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package contains the development libraries and header files for DPM. Package: dpm Section: net Architecture: any Provides: dpm-client Replaces: dpm-client (<< 1.8.1.2-2~) Conflicts: dpm-client (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: Disk Pool Manager (DPM) client The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides the command line interfaces for the DPM. Package: libdpm-perl Section: perl Architecture: any Depends: libdpm1 (= ${binary:Version}), ${shlibs:Depends}, ${perl:Depends}, ${misc:Depends} Description: Disk Pool Manager (DPM) perl bindings The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides Perl bindings for the DPM client library. Package: python-dpm Section: python Architecture: any Provides: ${python:Provides} Depends: libdpm1 (= ${binary:Version}), ${shlibs:Depends}, ${python:Depends}, ${misc:Depends} Description: Disk Pool Manager (DPM) python bindings The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides Python bindings for the DPM client library. Package: dpm-server-mysql Section: net Architecture: any Provides: dpm-mysql Replaces: dpm-mysql (<< 1.8.1.2-2~) Conflicts: dpm-mysql (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger, mariadb-client | mysql-client Description: Disk Pool Manager (DPM) server with MySQL database backend The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides a DPM server that uses MySQL as its database backend. Package: dpm-server-postgres Section: net Architecture: any Provides: dpm-postgres Replaces: dpm-postgres (<< 1.8.1.2-2~) Conflicts: dpm-postgres (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger, postgresql-client Description: Disk Pool Manager (DPM) server with postgres database backend The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides a DPM server that uses postgres as its database backend. Package: dpm-name-server-mysql Section: net Architecture: any Provides: dpm-mysql-nameserver Replaces: dpm-mysql-nameserver (<< 1.8.1.2-2~) Conflicts: dpm-mysql-nameserver (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger, mariadb-client | mysql-client Description: DPM nameserver server with MySQL database backend The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides a DPM nameserver that uses MySQL as its database backend. Package: dpm-name-server-postgres Section: net Architecture: any Provides: dpm-postgres-nameserver Replaces: dpm-postgres-nameserver (<< 1.8.1.2-2~) Conflicts: dpm-postgres-nameserver (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger, postgresql-client Description: DPM nameserver server with postgres database backend The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides a DPM nameserver that uses postgres as its database backend. Package: dpm-copy-server-mysql Section: net Architecture: any Provides: dpm-mysql-copyd Replaces: dpm-mysql-copyd (<< 1.8.1.2-2~) Conflicts: dpm-mysql-copyd (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger Description: DPM copy server with MySQL database backend The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides a DPM copy server that uses MySQL as its database backend. Package: dpm-copy-server-postgres Section: net Architecture: any Provides: dpm-postgres-copyd Replaces: dpm-postgres-copyd (<< 1.8.1.2-2~) Conflicts: dpm-postgres-copyd (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger Description: DPM copy server with postgres database backend The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides a DPM copy server that uses postgres as its database backend. Package: dpm-srm-server-mysql Section: net Architecture: any Provides: dpm-mysql-srmv1, dpm-mysql-srmv2, dpm-mysql-srmv22 Replaces: dpm-mysql-srmv1 (<< 1.8.1.2-2~), dpm-mysql-srmv2 (<< 1.8.1.2-2~), dpm-mysql-srmv22 (<< 1.8.1.2-2~) Conflicts: dpm-mysql-srmv1 (<< 1.8.1.2-2~), dpm-mysql-srmv2 (<< 1.8.1.2-2~), dpm-mysql-srmv22 (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger Description: DPM SRM server with MySQL database backend The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides a DPM SRM server that uses MySQL as its database backend. Package: dpm-srm-server-postgres Section: net Architecture: any Provides: dpm-postgres-srmv1, dpm-postgres-srmv2, dpm-postgres-srmv22 Replaces: dpm-postgres-srmv1 (<< 1.8.1.2-2~), dpm-postgres-srmv2 (<< 1.8.1.2-2~), dpm-postgres-srmv22 (<< 1.8.1.2-2~) Conflicts: dpm-postgres-srmv1 (<< 1.8.1.2-2~), dpm-postgres-srmv2 (<< 1.8.1.2-2~), dpm-postgres-srmv22 (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), adduser, ${shlibs:Depends}, ${misc:Depends}, finger Description: DPM SRM server with postgres database backend The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provides a DPM SRM server that uses postgres as its database backend. Package: dpm-rfio-server Section: net Architecture: any Provides: dpm-rfiod Replaces: dpm-rfiod (<< 1.8.1.2-2~) Conflicts: dpm-rfiod (<< 1.8.1.2-2~) Depends: libdpm1 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} Description: DPM RFIO server The LCG Disk Pool Manager (DPM) creates a storage element from a set of disks. It provides several interfaces for storing and retrieving data such as RFIO and SRM version 1, version 2 and version 2.2. This package provide a Remote File IO (RFIO) server for DPM. Package: lcgdm-dbg Section: debug Architecture: any Priority: extra Depends: liblcgdm1 (= ${binary:Version}) | liblfc1 (= ${binary:Version}) | lfc (= ${binary:Version}) | liblfc-perl (= ${binary:Version}) | python-lfc (= ${binary:Version}) | lfc-server-mysql (= ${binary:Version}) | lfc-server-postgres (= ${binary:Version}) | lfc-dli (= ${binary:Version}) | libdpm1 (= ${binary:Version}) | dpm (= ${binary:Version}) | libdpm-perl (= ${binary:Version}) | python-dpm (= ${binary:Version}) | dpm-server-mysql (= ${binary:Version}) | dpm-server-postgres (= ${binary:Version}) | dpm-name-server-mysql (= ${binary:Version}) | dpm-name-server-postgres (= ${binary:Version}) | dpm-copy-server-mysql (= ${binary:Version}) | dpm-copy-server-postgres (= ${binary:Version}) | dpm-srm-server-mysql (= ${binary:Version}) | dpm-srm-server-postgres (= ${binary:Version}) | dpm-rfio-server (= ${binary:Version}), ${misc:Depends} Description: LHC Computing Grid debuggng symbols This package provides dubug symbols for the LHC Computing Grid packages. debian/dpm-copy-server-mysql.postinst0000644000000000000000000000204011632774622015200 0ustar #!/bin/sh set -e getent group dpmmgr > /dev/null || \ addgroup --quiet --system dpmmgr getent passwd dpmmgr > /dev/null || \ adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \ --ingroup dpmmgr --disabled-password --disabled-login \ --gecos "DPM manager" dpmmgr chown dpmmgr:dpmmgr /var/log/dpmcopy update-alternatives --install /usr/sbin/dpmcopyd dpmcopyd \ /usr/lib/dpm-mysql/dpmcopyd 20 \ --slave /usr/share/man/man8/dpmcopyd.8.gz dpmcopyd.8.gz \ /usr/lib/dpm-mysql/dpmcopyd.8.gz \ --slave /etc/init.d/dpmcopyd dpmcopyd.init \ /etc/dpm-mysql/dpmcopyd.init \ --slave /etc/default/dpmcopyd dpmcopyd.conf \ /etc/dpm-mysql/dpmcopyd.conf \ --slave /etc/logrotate.d/dpmcopyd dpmcopyd.logrotate \ /etc/dpm-mysql/dpmcopyd.logrotate if [ -x "/etc/init.d/dpmcopyd" ]; then update-rc.d dpmcopyd defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpmcopyd start || exit $? else /etc/init.d/dpmcopyd start || exit $? fi fi #DEBHELPER# debian/dpm-name-server-postgres.postinst0000644000000000000000000000527512135766412015661 0ustar #!/bin/sh set -e updatedpns () { [ -r /etc/default/dpnsdaemon ] && . /etc/default/dpnsdaemon [ -z "$NSCONFIGFILE" ] && NSCONFIGFILE=/etc/DPNSCONFIG [ -r $NSCONFIGFILE ] || return 0 nscfg=$(cat $NSCONFIGFILE) cfg1=$(echo $nscfg | cut -f1 -d@) cfg2=$(echo $nscfg | cut -f2 -d@ -s) user=$(echo $cfg1 | cut -f1 -d/) passwd=$(echo $cfg1 | cut -f2 -d/ -s) host=$(echo $cfg2 | cut -f1 -d/) db=$(echo $cfg2 | cut -f2 -d/ -s) [ -z "$user" ] && return 0 [ -z "$passwd" ] && return 0 [ -z "$host" ] && return 0 [ -z "$db" ] && db=cns_db export PGPASSWORD=$passwd psql="psql -t -q -U $user $db" vmajor=$($psql -c "select major from schema_version" 2>/dev/null) vminor=$($psql -c "select minor from schema_version" 2>/dev/null) vpatch=$($psql -c "select patch from schema_version" 2>/dev/null) if [ -z "$vmajor" -o -z "$vminor" -o -z "$vpatch" ] ; then return 0 fi if [ $vmajor -eq 3 -a $vminor -eq 0 -a $vpatch -eq 0 ] ; then $psql <<-EOF ALTER TABLE Cns_groupinfo ADD banned INTEGER; ALTER TABLE Cns_userinfo ADD user_ca VARCHAR(255); ALTER TABLE Cns_userinfo ADD banned INTEGER; CREATE INDEX linkname_idx ON Cns_symlinks(linkname); UPDATE schema_version SET major = 3, minor = 1, patch = 0; EOF fi return 0 } getent group dpmmgr > /dev/null || \ addgroup --quiet --system dpmmgr getent passwd dpmmgr > /dev/null || \ adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \ --ingroup dpmmgr --disabled-password --disabled-login \ --gecos "DPM manager" dpmmgr chown dpmmgr:dpmmgr /var/log/dpns updatedpns update-alternatives --install /usr/sbin/dpnsdaemon dpnsdaemon \ /usr/lib/dpm-postgres/dpnsdaemon 10 \ --slave /usr/share/man/man8/dpnsdaemon.8.gz dpnsdaemon.8.gz \ /usr/lib/dpm-postgres/dpnsdaemon.8.gz \ --slave /usr/share/lcgdm/DPNSCONFIG.templ DPNSCONFIG.templ \ /usr/lib/dpm-postgres/DPNSCONFIG.templ \ --slave /etc/init.d/dpnsdaemon dpnsdaemon.init \ /etc/dpm-postgres/dpnsdaemon.init \ --slave /etc/default/dpnsdaemon dpnsdaemon.conf \ /etc/dpm-postgres/dpnsdaemon.conf \ --slave /etc/logrotate.d/dpnsdaemon dpnsdaemon.logrotate \ /etc/dpm-postgres/dpnsdaemon.logrotate \ --slave /usr/sbin/dpns-shutdown dpns-shutdown \ /usr/lib/dpm-postgres/dpns-shutdown \ --slave /usr/share/man/man8/dpns-shutdown.8.gz dpns-shutdown.8.gz \ /usr/lib/dpm-postgres/dpns-shutdown.8.gz if [ -x "/etc/init.d/dpnsdaemon" ]; then update-rc.d dpnsdaemon defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpnsdaemon start || exit $? else /etc/init.d/dpnsdaemon start || exit $? fi fi #DEBHELPER# debian/dpm-srm-server-postgres.prerm0000644000000000000000000000151511632575766015010 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpm-srmv1" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv1 stop || exit $? else /etc/init.d/dpm-srmv1 stop || exit $? fi fi if [ -x "/etc/init.d/dpm-srmv2" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv2 stop || exit $? else /etc/init.d/dpm-srmv2 stop || exit $? fi fi if [ -x "/etc/init.d/dpm-srmv2.2" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-srmv2.2 stop || exit $? else /etc/init.d/dpm-srmv2.2 stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove dpm-srmv1 /usr/lib/dpm-postgres/dpm-srmv1 update-alternatives --remove dpm-srmv2 /usr/lib/dpm-postgres/dpm-srmv2 update-alternatives --remove dpm-srmv2.2 /usr/lib/dpm-postgres/dpm-srmv2.2 fi #DEBHELPER# debian/lfc-server-postgres.postinst0000644000000000000000000000527112135766655014734 0ustar #!/bin/sh set -e updatelfc () { [ -r /etc/default/lfcdaemon ] && . /etc/default/lfcdaemon [ -z "$NSCONFIGFILE" ] && NSCONFIGFILE=/etc/NSCONFIG [ -r $NSCONFIGFILE ] || return 0 nscfg=$(cat $NSCONFIGFILE) cfg1=$(echo $nscfg | cut -f1 -d@) cfg2=$(echo $nscfg | cut -f2 -d@ -s) user=$(echo $cfg1 | cut -f1 -d/) passwd=$(echo $cfg1 | cut -f2 -d/ -s) host=$(echo $cfg2 | cut -f1 -d/) db=$(echo $cfg2 | cut -f2 -d/ -s) [ -z "$user" ] && return 0 [ -z "$passwd" ] && return 0 [ -z "$host" ] && return 0 [ -z "$db" ] && db=cns_db export PGPASSWORD=$passwd psql="psql -t -q -U $user $db" vmajor=$($psql -c "select major from schema_version" 2>/dev/null) vminor=$($psql -c "select minor from schema_version" 2>/dev/null) vpatch=$($psql -c "select patch from schema_version" 2>/dev/null) if [ -z "$vmajor" -o -z "$vminor" -o -z "$vpatch" ] ; then return 0 fi if [ $vmajor -eq 3 -a $vminor -eq 0 -a $vpatch -eq 0 ] ; then $psql <<-EOF ALTER TABLE Cns_groupinfo ADD banned INTEGER; ALTER TABLE Cns_userinfo ADD user_ca VARCHAR(255); ALTER TABLE Cns_userinfo ADD banned INTEGER; CREATE INDEX linkname_idx ON Cns_symlinks(linkname); UPDATE schema_version SET major = 3, minor = 1, patch = 0; EOF fi return 0 } getent group lfcmgr > /dev/null || \ addgroup --quiet --system lfcmgr getent passwd lfcmgr > /dev/null || \ adduser --quiet --system --home /var/lib/lfc --shell /bin/sh \ --ingroup lfcmgr --disabled-password --disabled-login \ --gecos "LFC manager" lfcmgr chown lfcmgr:lfcmgr /var/lib/lfc chown lfcmgr:lfcmgr /var/log/lfc updatelfc update-alternatives --install /usr/sbin/lfcdaemon lfcdaemon \ /usr/lib/lfc-postgres/lfcdaemon 10 \ --slave /usr/share/man/man8/lfcdaemon.8.gz lfcdaemon.8.gz \ /usr/lib/lfc-postgres/lfcdaemon.8.gz \ --slave /usr/share/lcgdm/NSCONFIG.templ NSCONFIG.templ \ /usr/lib/lfc-postgres/NSCONFIG.templ \ --slave /etc/init.d/lfcdaemon lfcdaemon.init \ /etc/lfc-postgres/lfcdaemon.init \ --slave /etc/default/lfcdaemon lfcdaemon.conf \ /etc/lfc-postgres/lfcdaemon.conf \ --slave /etc/logrotate.d/lfcdaemon lfcdaemon.logrotate \ /etc/lfc-postgres/lfcdaemon.logrotate \ --slave /usr/sbin/lfc-shutdown lfc-shutdown \ /usr/lib/lfc-postgres/lfc-shutdown \ --slave /usr/share/man/man8/lfc-shutdown.8.gz lfc-shutdown.8.gz \ /usr/lib/lfc-postgres/lfc-shutdown.8.gz if [ -x "/etc/init.d/lfcdaemon" ]; then update-rc.d lfcdaemon defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d lfcdaemon start || exit $? else /etc/init.d/lfcdaemon start || exit $? fi fi #DEBHELPER# debian/dpm-server-mysql.postinst0000644000000000000000000000540612135766114014235 0ustar #!/bin/sh set -e updatedpm () { [ -r /etc/default/dpm ] && . /etc/default/dpm [ -z "$DPMCONFIGFILE" ] && DPMCONFIGFILE=/etc/DPMCONFIG [ -r $DPMCONFIGFILE ] || return 0 dpmcfg=$(cat $DPMCONFIGFILE) cfg1=$(echo $dpmcfg | cut -f1 -d@) cfg2=$(echo $dpmcfg | cut -f2 -d@ -s) user=$(echo $cfg1 | cut -f1 -d/) passwd=$(echo $cfg1 | cut -f2 -d/ -s) host=$(echo $cfg2 | cut -f1 -d/) db=$(echo $cfg2 | cut -f2 -d/ -s) [ -z "$user" ] && return 0 [ -z "$passwd" ] && return 0 [ -z "$host" ] && return 0 [ -z "$db" ] && db=dpm_db mycfg=$(mktemp) cat > $mycfg <<-EOF [client] user=$user password=$passwd EOF mysql="mysql --defaults-file=$mycfg --skip-column-names $db" vmajor=$($mysql -e "select major from schema_version_dpm" 2>/dev/null) vminor=$($mysql -e "select minor from schema_version_dpm" 2>/dev/null) vpatch=$($mysql -e "select patch from schema_version_dpm" 2>/dev/null) if [ -z "$vmajor" -o -z "$vminor" -o -z "$vpatch" ] ; then rm $mycfg return 0 fi if [ $vmajor -eq 3 -a $vminor -eq 2 -a $vpatch -eq 0 ] ; then $mysql <<-EOF ALTER TABLE dpm_fs ADD weight INTEGER; UPDATE dpm_fs SET weight = 1; UPDATE schema_version_dpm SET major = 3, minor = 3, patch = 0; EOF fi rm $mycfg return 0 } getent group dpmmgr > /dev/null || \ addgroup --quiet --system dpmmgr getent passwd dpmmgr > /dev/null || \ adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \ --ingroup dpmmgr --disabled-password --disabled-login \ --gecos "DPM manager" dpmmgr chown dpmmgr:dpmmgr /var/lib/dpm chown dpmmgr:dpmmgr /var/log/dpm updatedpm update-alternatives --install /usr/sbin/dpm dpm \ /usr/lib/dpm-mysql/dpm 20 \ --slave /usr/share/man/man8/dpm.8.gz dpm.8.gz \ /usr/lib/dpm-mysql/dpm.8.gz \ --slave /usr/share/lcgdm/DPMCONFIG.templ DPMCONFIG.templ \ /usr/lib/dpm-mysql/DPMCONFIG.templ \ --slave /etc/init.d/dpm dpm.init \ /etc/dpm-mysql/dpm.init \ --slave /etc/default/dpm dpm.conf \ /etc/dpm-mysql/dpm.conf \ --slave /etc/logrotate.d/dpm dpm.logrotate \ /etc/dpm-mysql/dpm.logrotate \ --slave /usr/sbin/dpm-shutdown dpm-shutdown \ /usr/lib/dpm-mysql/dpm-shutdown \ --slave /usr/share/man/man8/dpm-shutdown.8.gz dpm-shutdown.8.gz \ /usr/lib/dpm-mysql/dpm-shutdown.8.gz \ --slave /usr/sbin/dpm-buildfsv dpm-buildfsv \ /usr/lib/dpm-mysql/dpm-buildfsv \ --slave /usr/share/man/man8/dpm-buildfsv.8.gz dpm-buildfsv.8.gz \ /usr/lib/dpm-mysql/dpm-buildfsv.8.gz if [ -x "/etc/init.d/dpm" ]; then update-rc.d dpm defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm start || exit $? else /etc/init.d/dpm start || exit $? fi fi #DEBHELPER# debian/dpm-name-server-postgres.README.Debian0000644000000000000000000000245512135766466016122 0ustar How to set up an DPM nameserver with a postgres backend ======================================================= The DPM nameserver (DPNS) is run by the dpmmgr user. This user requires a copy of the host certificate files: cp -p /etc/grid-security/hostcert.pem /etc/grid-security/dpmmgr/dpmcert.pem cp -p /etc/grid-security/hostkey.pem /etc/grid-security/dpmmgr/dpmkey.pem chown dpmmgr:dpmmgr /etc/grid-security/dpmmgr/dpm* Create a postgres database user for the DPNS server: createuser -P The command above will prompt you for a password for the new user. Create the DPNS database: createdb -O Create the DPNS database tables: psql -W -U -f /usr/share/lcgdm/create_dpns_tables_postgres.sql Let the DPNS server know about the account information and make sure only the dpmmgr user can read this information: touch /etc/DPNSCONFIG chmod 600 /etc/DPNSCONFIG chown dpmmgr:dpmmgr /etc/DPNSCONFIG echo /@/ > /etc/DPNSCONFIG If the / part is omitted the database "cns_db" will be used. If you have a firewall, open the DPNS server port (5010). Once the configuration is completed, change RUN_DPNSDAEMON=no to RUN_DPNSDAEMON=yes in /etc/default/dpnsdaemon, then start the DPNS server: invoke-rc.d dpnsdaemon start debian/liblfc-dev.install0000644000000000000000000000032311257441763012575 0ustar debian/tmp/usr/include/lfc debian/tmp/usr/lib/liblfc.a debian/tmp/usr/lib/liblfc.so debian/tmp/usr/share/man/man3/lfc_[a-o]*.3 debian/tmp/usr/share/man/man3/lfc_ping.3 debian/tmp/usr/share/man/man3/lfc_[q-z]*.3 debian/dpm-server-postgres.postinst0000644000000000000000000000525512135766165014746 0ustar #!/bin/sh set -e updatedpm () { [ -r /etc/default/dpm ] && . /etc/default/dpm [ -z "$DPMCONFIGFILE" ] && DPMCONFIGFILE=/etc/DPMCONFIG [ -r $DPMCONFIGFILE ] || return 0 dpmcfg=$(cat $DPMCONFIGFILE) cfg1=$(echo $dpmcfg | cut -f1 -d@) cfg2=$(echo $dpmcfg | cut -f2 -d@ -s) user=$(echo $cfg1 | cut -f1 -d/) passwd=$(echo $cfg1 | cut -f2 -d/ -s) host=$(echo $cfg2 | cut -f1 -d/) db=$(echo $cfg2 | cut -f2 -d/ -s) [ -z "$user" ] && return 0 [ -z "$passwd" ] && return 0 [ -z "$host" ] && return 0 [ -z "$db" ] && db=dpm_db export PGPASSWORD=$passwd psql="psql -t -q -U $user $db" vmajor=$($psql -c "select major from schema_version_dpm" 2>/dev/null) vminor=$($psql -c "select minor from schema_version_dpm" 2>/dev/null) vpatch=$($psql -c "select patch from schema_version_dpm" 2>/dev/null) if [ -z "$vmajor" -o -z "$vminor" -o -z "$vpatch" ] ; then return 0 fi if [ $vmajor -eq 3 -a $vminor -eq 2 -a $vpatch -eq 0 ] ; then $psql <<-EOF ALTER TABLE dpm_fs ADD weight INTEGER; UPDATE dpm_fs SET weight = 1; UPDATE schema_version_dpm SET major = 3, minor = 3, patch = 0; EOF fi return 0 } getent group dpmmgr > /dev/null || \ addgroup --quiet --system dpmmgr getent passwd dpmmgr > /dev/null || \ adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \ --ingroup dpmmgr --disabled-password --disabled-login \ --gecos "DPM manager" dpmmgr chown dpmmgr:dpmmgr /var/lib/dpm chown dpmmgr:dpmmgr /var/log/dpm updatedpm update-alternatives --install /usr/sbin/dpm dpm \ /usr/lib/dpm-postgres/dpm 10 \ --slave /usr/share/man/man8/dpm.8.gz dpm.8.gz \ /usr/lib/dpm-postgres/dpm.8.gz \ --slave /usr/share/lcgdm/DPMCONFIG.templ DPMCONFIG.templ \ /usr/lib/dpm-postgres/DPMCONFIG.templ \ --slave /etc/init.d/dpm dpm.init \ /etc/dpm-postgres/dpm.init \ --slave /etc/default/dpm dpm.conf \ /etc/dpm-postgres/dpm.conf \ --slave /etc/logrotate.d/dpm dpm.logrotate \ /etc/dpm-postgres/dpm.logrotate \ --slave /usr/sbin/dpm-shutdown dpm-shutdown \ /usr/lib/dpm-postgres/dpm-shutdown \ --slave /usr/share/man/man8/dpm-shutdown.8.gz dpm-shutdown.8.gz \ /usr/lib/dpm-postgres/dpm-shutdown.8.gz \ --slave /usr/sbin/dpm-buildfsv dpm-buildfsv \ /usr/lib/dpm-postgres/dpm-buildfsv \ --slave /usr/share/man/man8/dpm-buildfsv.8.gz dpm-buildfsv.8.gz \ /usr/lib/dpm-postgres/dpm-buildfsv.8.gz if [ -x "/etc/init.d/dpm" ]; then update-rc.d dpm defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm start || exit $? else /etc/init.d/dpm start || exit $? fi fi #DEBHELPER# debian/source/0000755000000000000000000000000011402714211010457 5ustar debian/source/format0000644000000000000000000000001411402714211011665 0ustar 3.0 (quilt) debian/dpm-copy-server-postgres.lintian-overrides0000644000000000000000000000033511632660030017444 0ustar # The init.d script is handled by update-alternatives dpm-copy-server-postgres: init.d-script-not-marked-as-conffile etc/init.d/dpmcopyd dpm-copy-server-postgres: init.d-script-not-included-in-package etc/init.d/dpmcopyd debian/dpm-name-server-mysql.postrm0000644000000000000000000000026011261732632014602 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display dpnsdaemon > /dev/null || \ update-rc.d dpnsdaemon remove >/dev/null || exit $? fi #DEBHELPER# debian/liblfc1.docs0000644000000000000000000000001711257304261011353 0ustar doc/lfc/README debian/dpm-srm-server-mysql.lintian-overrides0000644000000000000000000000121111632575222016574 0ustar # The init.d script is handled by update-alternatives dpm-srm-server-mysql: init.d-script-not-marked-as-conffile etc/init.d/dpm-srmv1 dpm-srm-server-mysql: init.d-script-not-included-in-package etc/init.d/dpm-srmv1 # The init.d script is handled by update-alternatives dpm-srm-server-mysql: init.d-script-not-marked-as-conffile etc/init.d/dpm-srmv2 dpm-srm-server-mysql: init.d-script-not-included-in-package etc/init.d/dpm-srmv2 # The init.d script is handled by update-alternatives dpm-srm-server-mysql: init.d-script-not-marked-as-conffile etc/init.d/dpm-srmv2.2 dpm-srm-server-mysql: init.d-script-not-included-in-package etc/init.d/dpm-srmv2.2 debian/lfc-dli.postinst0000644000000000000000000000106511632752015012311 0ustar #!/bin/sh set -e getent group lfcmgr > /dev/null || \ addgroup --quiet --system lfcmgr getent passwd lfcmgr > /dev/null || \ adduser --quiet --system --home /var/lib/lfc --shell /bin/sh \ --ingroup lfcmgr --disabled-password --disabled-login \ --gecos "LFC manager" lfcmgr chown lfcmgr:lfcmgr /var/log/lfc-dli if [ -x "/etc/init.d/lfc-dli" ]; then update-rc.d lfc-dli defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d lfc-dli start || exit $? else /etc/init.d/lfc-dli start || exit $? fi fi #DEBHELPER# debian/dpm-srm-server-postgres.install0000644000000000000000000000146511647652542015327 0ustar debian/tmp/usr/lib/dpm-postgres/dpm-srmv1 debian/tmp/usr/lib/dpm-postgres/dpm-srmv2 debian/tmp/usr/lib/dpm-postgres/dpm-srmv2.2 debian/tmp/usr/lib/dpm-postgres/dpm-srmv1.8* debian/tmp/usr/lib/dpm-postgres/dpm-srmv2.8* debian/tmp/usr/lib/dpm-postgres/dpm-srmv2.2.8* debian/tmp/etc/dpm-postgres/dpm-srmv1.init debian/tmp/etc/dpm-postgres/dpm-srmv2.init debian/tmp/etc/dpm-postgres/dpm-srmv2.2.init debian/tmp/etc/dpm-postgres/dpm-srmv1.conf debian/tmp/etc/dpm-postgres/dpm-srmv2.conf debian/tmp/etc/dpm-postgres/dpm-srmv2.2.conf debian/tmp/etc/dpm-postgres/dpm-srmv1.logrotate debian/tmp/etc/dpm-postgres/dpm-srmv2.logrotate debian/tmp/etc/dpm-postgres/dpm-srmv2.2.logrotate debian/tmp/var/log/dpm-srmv1 debian/tmp/var/log/dpm-srmv2 debian/tmp/var/log/dpm-srmv2.2 debian/tmp/var/lib/dpm debian/tmp/etc/grid-security/dpmmgr debian/lfc-server-mysql.postrm0000644000000000000000000000025611261671246013660 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display lfcdaemon > /dev/null || \ update-rc.d lfcdaemon remove >/dev/null || exit $? fi #DEBHELPER# debian/liblcgdm-dev.install0000644000000000000000000000053211257426604013116 0ustar debian/tmp/usr/lib/liblcgdm.a debian/tmp/usr/lib/liblcgdm.so debian/tmp/usr/share/man/man3/C*.3 debian/tmp/usr/share/man/man3/getconfent.3 debian/tmp/usr/share/man/man3/netclose.3 debian/tmp/usr/share/man/man3/netread.3 debian/tmp/usr/share/man/man3/netwrite.3 debian/tmp/usr/share/man/man3/serrno.3 debian/tmp/usr/share/man/man4/Castor_limits.4 debian/dpm-server-mysql.install0000644000000000000000000000102412124753726014013 0ustar debian/tmp/usr/lib/dpm-mysql/dpm debian/tmp/usr/lib/dpm-mysql/dpm-shutdown debian/tmp/usr/lib/dpm-mysql/dpm-buildfsv debian/tmp/usr/lib/dpm-mysql/dpm.8* debian/tmp/usr/lib/dpm-mysql/dpm-shutdown.8* debian/tmp/usr/lib/dpm-mysql/dpm-buildfsv.8* debian/tmp/usr/lib/dpm-mysql/DPMCONFIG.templ debian/tmp/etc/dpm-mysql/dpm.init debian/tmp/etc/dpm-mysql/dpm.conf debian/tmp/etc/dpm-mysql/dpm.logrotate debian/tmp/usr/share/lcgdm/create_dpm_tables_mysql.sql debian/tmp/var/log/dpm debian/tmp/var/lib/dpm debian/tmp/etc/grid-security/dpmmgr debian/dpm-copy-server-postgres.postinst0000644000000000000000000000205711632774661015714 0ustar #!/bin/sh set -e getent group dpmmgr > /dev/null || \ addgroup --quiet --system dpmmgr getent passwd dpmmgr > /dev/null || \ adduser --quiet --system --home /var/lib/dpm --shell /bin/sh \ --ingroup dpmmgr --disabled-password --disabled-login \ --gecos "DPM manager" dpmmgr chown dpmmgr:dpmmgr /var/log/dpmcopy update-alternatives --install /usr/sbin/dpmcopyd dpmcopyd \ /usr/lib/dpm-postgres/dpmcopyd 10 \ --slave /usr/share/man/man8/dpmcopyd.8.gz dpmcopyd.8.gz \ /usr/lib/dpm-postgres/dpmcopyd.8.gz \ --slave /etc/init.d/dpmcopyd dpmcopyd.init \ /etc/dpm-postgres/dpmcopyd.init \ --slave /etc/default/dpmcopyd dpmcopyd.conf \ /etc/dpm-postgres/dpmcopyd.conf \ --slave /etc/logrotate.d/dpmcopyd dpmcopyd.logrotate \ /etc/dpm-postgres/dpmcopyd.logrotate if [ -x "/etc/init.d/dpmcopyd" ]; then update-rc.d dpmcopyd defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpmcopyd start || exit $? else /etc/init.d/dpmcopyd start || exit $? fi fi #DEBHELPER# debian/lfc-server-postgres.README.Debian0000644000000000000000000000240712135766731015160 0ustar How to set up an LFC server with a postgres backend =================================================== The LFC server is run by the lfcmgr user. This user requires a copy of the host certificate files: cp -p /etc/grid-security/hostcert.pem /etc/grid-security/lfcmgr/lfccert.pem cp -p /etc/grid-security/hostkey.pem /etc/grid-security/lfcmgr/lfckey.pem chown lfcmgr:lfcmgr /etc/grid-security/lfcmgr/lfc* Create a postgres database user for the LFC server: createuser -P The command above will prompt you for a password for the new user. Create the LFC database: createdb -O Create the LFC database tables: psql -W -U -f /usr/share/lcgdm/create_lfc_tables_postgres.sql Let the LFC server know about the account information and make sure only the lfcmgr user can read this information: touch /etc/NSCONFIG chmod 600 /etc/NSCONFIG chown lfcmgr:lfcmgr /etc/NSCONFIG echo /@/ > /etc/NSCONFIG If the / part is omitted the database "cns_db" will be used. If you have a firewall, open the LFC server port (5010). Once the configuration is completed, change RUN_LFCDAEMON=no to RUN_LFCDAEMON=yes in /etc/default/lfcdaemon, then start the LFC server: invoke-rc.d lfcdaemon start debian/dpm-copy-server-postgres.postrm0000644000000000000000000000025411262032177015336 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display dpmcopyd > /dev/null || \ update-rc.d dpmcopyd remove >/dev/null || exit $? fi #DEBHELPER# debian/liblfc-perl.install0000644000000000000000000000015111242421340012737 0ustar debian/tmp/usr/lib/perl5/lfc.so debian/tmp/usr/lib/perl5/lfc.pm debian/tmp/usr/share/man/man3/lfc_perl.3 debian/copyright0000644000000000000000000000560712134565543011141 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: lcgdm Upstream-Contact: Jean-Philippe Baud, CERN IT-GD/ITR Source: http://svnweb.cern.ch/guest/lcgdm/lcg-dm Files: * Copyright: Copyright 1990-2011 CERN and Members of the EGEE Collaboration License: Apache-2.0 Files: common/Cgetopt.man common/Cgetopt.c win32/getopt.c win32/inet_netof.c Copyright: Copyright 1983-1996 The Regents of the University of California License: BSD Files: debian/* Copyright: © 2009-2011, Mattias Ellert License: Apache-2.0 License: Apache-2.0 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian systems the full text of the Apache-2.0 license can be found in the /usr/share/common-licenses/Apache-2.0 file. License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the University of California, Berkeley and its contributors. 4. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/dpm-srm-server-postgres.lintian-overrides0000644000000000000000000000123311632575143017303 0ustar # The init.d script is handled by update-alternatives dpm-srm-server-postgres: init.d-script-not-marked-as-conffile etc/init.d/dpm-srmv1 dpm-srm-server-postgres: init.d-script-not-included-in-package etc/init.d/dpm-srmv1 # The init.d script is handled by update-alternatives dpm-srm-server-postgres: init.d-script-not-marked-as-conffile etc/init.d/dpm-srmv2 dpm-srm-server-postgres: init.d-script-not-included-in-package etc/init.d/dpm-srmv2 # The init.d script is handled by update-alternatives dpm-srm-server-postgres: init.d-script-not-marked-as-conffile etc/init.d/dpm-srmv2.2 dpm-srm-server-postgres: init.d-script-not-included-in-package etc/init.d/dpm-srmv2.2 debian/lfc-server-mysql.postinst0000644000000000000000000000544412135766617014233 0ustar #!/bin/sh set -e updatelfc () { [ -r /etc/default/lfcdaemon ] && . /etc/default/lfcdaemon [ -z "$NSCONFIGFILE" ] && NSCONFIGFILE=/etc/NSCONFIG [ -r $NSCONFIGFILE ] || return 0 nscfg=$(cat $NSCONFIGFILE) cfg1=$(echo $nscfg | cut -f1 -d@) cfg2=$(echo $nscfg | cut -f2 -d@ -s) user=$(echo $cfg1 | cut -f1 -d/) passwd=$(echo $cfg1 | cut -f2 -d/ -s) host=$(echo $cfg2 | cut -f1 -d/) db=$(echo $cfg2 | cut -f2 -d/ -s) [ -z "$user" ] && return 0 [ -z "$passwd" ] && return 0 [ -z "$host" ] && return 0 [ -z "$db" ] && db=cns_db mycfg=$(mktemp) cat > $mycfg <<-EOF [client] user=$user password=$passwd EOF mysql="mysql --defaults-file=$mycfg --skip-column-names $db" vmajor=$($mysql -e "select major from schema_version" 2>/dev/null) vminor=$($mysql -e "select minor from schema_version" 2>/dev/null) vpatch=$($mysql -e "select patch from schema_version" 2>/dev/null) if [ -z "$vmajor" -o -z "$vminor" -o -z "$vpatch" ] ; then rm $mycfg return 0 fi if [ $vmajor -eq 3 -a $vminor -eq 0 -a $vpatch -eq 0 ] ; then $mysql <<-EOF ALTER TABLE Cns_groupinfo ADD banned INTEGER; ALTER TABLE Cns_userinfo ADD user_ca VARCHAR(255) BINARY; ALTER TABLE Cns_userinfo ADD banned INTEGER; CREATE INDEX linkname_idx ON Cns_symlinks(linkname(255)); UPDATE schema_version SET major = 3, minor = 1, patch = 0; EOF fi rm $mycfg return 0 } getent group lfcmgr > /dev/null || \ addgroup --quiet --system lfcmgr getent passwd lfcmgr > /dev/null || \ adduser --quiet --system --home /var/lib/lfc --shell /bin/sh \ --ingroup lfcmgr --disabled-password --disabled-login \ --gecos "LFC manager" lfcmgr chown lfcmgr:lfcmgr /var/lib/lfc chown lfcmgr:lfcmgr /var/log/lfc updatelfc update-alternatives --install /usr/sbin/lfcdaemon lfcdaemon \ /usr/lib/lfc-mysql/lfcdaemon 20 \ --slave /usr/share/man/man8/lfcdaemon.8.gz lfcdaemon.8.gz \ /usr/lib/lfc-mysql/lfcdaemon.8.gz \ --slave /usr/share/lcgdm/NSCONFIG.templ NSCONFIG.templ \ /usr/lib/lfc-mysql/NSCONFIG.templ \ --slave /etc/init.d/lfcdaemon lfcdaemon.init \ /etc/lfc-mysql/lfcdaemon.init \ --slave /etc/default/lfcdaemon lfcdaemon.conf \ /etc/lfc-mysql/lfcdaemon.conf \ --slave /etc/logrotate.d/lfcdaemon lfcdaemon.logrotate \ /etc/lfc-mysql/lfcdaemon.logrotate \ --slave /usr/sbin/lfc-shutdown lfc-shutdown \ /usr/lib/lfc-mysql/lfc-shutdown \ --slave /usr/share/man/man8/lfc-shutdown.8.gz lfc-shutdown.8.gz \ /usr/lib/lfc-mysql/lfc-shutdown.8.gz if [ -x "/etc/init.d/lfcdaemon" ]; then update-rc.d lfcdaemon defaults >/dev/null if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d lfcdaemon start || exit $? else /etc/init.d/lfcdaemon start || exit $? fi fi #DEBHELPER# debian/dpm-server-postgres.install0000644000000000000000000000106512124753711014513 0ustar debian/tmp/usr/lib/dpm-postgres/dpm debian/tmp/usr/lib/dpm-postgres/dpm-shutdown debian/tmp/usr/lib/dpm-postgres/dpm-buildfsv debian/tmp/usr/lib/dpm-postgres/dpm.8* debian/tmp/usr/lib/dpm-postgres/dpm-shutdown.8* debian/tmp/usr/lib/dpm-postgres/dpm-buildfsv.8* debian/tmp/usr/lib/dpm-postgres/DPMCONFIG.templ debian/tmp/etc/dpm-postgres/dpm.init debian/tmp/etc/dpm-postgres/dpm.conf debian/tmp/etc/dpm-postgres/dpm.logrotate debian/tmp/usr/share/lcgdm/create_dpm_tables_postgres.sql debian/tmp/var/log/dpm debian/tmp/var/lib/dpm debian/tmp/etc/grid-security/dpmmgr debian/lfc-server-postgres.postrm0000644000000000000000000000025611261671301014351 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display lfcdaemon > /dev/null || \ update-rc.d lfcdaemon remove >/dev/null || exit $? fi #DEBHELPER# debian/rules0000755000000000000000000005621312246554602010263 0ustar #!/usr/bin/make -f # -*- makefile -*- DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) -include /usr/share/dpkg/buildflags.mk INSTALLDIR = $(CURDIR)/debian/tmp _prefix = /usr _bindir = $(_prefix)/bin _sbindir = $(_prefix)/sbin _libdir = $(_prefix)/lib _includedir = $(_prefix)/include _sysconfdir = /etc _localstatedir = /var _initrddir = $(_sysconfdir)/init.d _datadir = $(_prefix)/share _mandir = $(_datadir)/man _docdir = $(_datadir)/doc VERSION=1.8.7 configure: configure-stamp : configure-stamp: dh_testdir chmod 644 security/globus_gsi_gss_constants.h \ security/globus_i_gsi_credential.h \ security/gssapi_openssl.h chmod 644 doc/lfc/INSTALL-* # LFC with mysql backend mkdir lfc-mysql cp -pr Imakefile Makefile.ini config configure VERSION scripts \ h lib shlib common ns rfio dpm \ srmv1 srmv2 srmv2.2 security dli dicomcopy dpmcopy \ test lfc-mysql # The code violates the strict aliasing rules all over the place... # Need to use -fnostrict-aliasing so that the -O2 optimization in # CFLAGS doesn't try to use them. sed 's/^CC +=/& $(CPPFLAGS) $(CFLAGS) -fno-strict-aliasing/' \ -i lfc-mysql/config/linux.cf sed 's/^CXXFLAGS =/& $(CPPFLAGS) $(CXXFLAGS)/' \ -i lfc-mysql/common/Imakefile cd lfc-mysql && \ gsoapversion=`soapcpp2 -v 2>&1 | grep C++ | sed 's/.* //'` && \ ./configure lfc --with-mysql \ --libdir=lib \ --with-gsoap-version=$$gsoapversion \ --with-id-map-file=$(_sysconfdir)/lcgdm-mapfile \ --with-ns-config-file=$(_sysconfdir)/NSCONFIG \ --with-etc-dir='$$(prefix)/../etc' \ --with-sysconf-dir=EtcDir/default \ --with-initrc-dir=EtcDir/init.d \ --with-emi \ --without-argus sed 's!$$(prefix)/var!$$(prefix)/../var!' -i lfc-mysql/config/site.def cd lfc-mysql && \ make -f Makefile.ini Makefiles # LFC with postgres backend mkdir lfc-postgres cp -pr Imakefile Makefile.ini config configure VERSION scripts \ h lib shlib common ns rfio dpm \ srmv1 srmv2 srmv2.2 security dli dicomcopy dpmcopy \ test lfc-postgres # The code violates the strict aliasing rules all over the place... # Need to use -fnostrict-aliasing so that the -O2 optimization in # CFLAGS doesn't try to use them. sed 's/^CC +=/& $(CPPFLAGS) $(CFLAGS) -fno-strict-aliasing/' \ -i lfc-postgres/config/linux.cf sed 's/^CXXFLAGS =/& $(CPPFLAGS) $(CXXFLAGS)/' \ -i lfc-postgres/common/Imakefile cd lfc-postgres && \ gsoapversion=`soapcpp2 -v 2>&1 | grep C++ | sed 's/.* //'` && \ ./configure lfc --with-postgres \ --libdir=lib \ --with-gsoap-version=$$gsoapversion \ --with-id-map-file=$(_sysconfdir)/lcgdm-mapfile \ --with-ns-config-file=$(_sysconfdir)/NSCONFIG \ --with-etc-dir='$$(prefix)/../etc' \ --with-sysconf-dir=EtcDir/default \ --with-initrc-dir=EtcDir/init.d \ --with-emi \ --without-argus sed 's!$$(prefix)/var!$$(prefix)/../var!' -i lfc-postgres/config/site.def sed -e 's/\(BuildDLI *\)YES/\1NO/' \ -e 's/\(BuildInterfaces *\)YES/\1NO/' \ -e 's/\(BuildNameServerClient *\)YES/\1NO/' \ -e 's/\(BuildNameServerLibrary *\)YES/\1NO/' \ -i lfc-postgres/config/site.def sed '/^\#define.*YES/d' -i lfc-postgres/config/Project.tmpl \ lfc-postgres/config/Library.tmpl sed '/^SECURITYDIR =/d' -i lfc-postgres/config/Project.tmpl sed 's/\(install:\).*/\1/' -i lfc-postgres/h/Imakefile cd lfc-postgres && \ make -f Makefile.ini Makefiles # DPM with mysql backend mkdir dpm-mysql cp -pr Imakefile Makefile.ini config configure VERSION scripts \ h lib shlib common ns rfio dpm \ srmv1 srmv2 srmv2.2 security dli dicomcopy dpmcopy \ test dpm-mysql # The code violates the strict aliasing rules all over the place... # Need to use -fnostrict-aliasing so that the -O2 optimization in # CFLAGS doesn't try to use them. sed 's/^CC +=/& $(CPPFLAGS) $(CFLAGS) -fno-strict-aliasing/' \ -i dpm-mysql/config/linux.cf sed 's/^CXXFLAGS =/& $(CPPFLAGS) $(CXXFLAGS)/' \ -i dpm-mysql/common/Imakefile cd dpm-mysql && \ gsoapversion=`soapcpp2 -v 2>&1 | grep C++ | sed 's/.* //'` && \ ./configure dpm --with-mysql \ --libdir=lib \ --with-gsoap-version=$$gsoapversion \ --with-dpm-config-file=$(_sysconfdir)/DPMCONFIG \ --with-id-map-file=$(_sysconfdir)/lcgdm-mapfile \ --with-ns-config-file=$(_sysconfdir)/DPNSCONFIG \ --with-etc-dir='$$(prefix)/../etc' \ --with-sysconf-dir=EtcDir/default \ --with-initrc-dir=EtcDir/init.d \ --with-emi \ --without-argus sed 's!$$(prefix)/var!$$(prefix)/../var!' -i dpm-mysql/config/site.def sed -e '/^SECURITYDIR =/d' \ -e '/^COMMONDIR =/d' -i dpm-mysql/config/Project.tmpl sed -e 's/:.*(lcgdm).*/:/' -i dpm-mysql/lib/Imakefile sed -e 's/:.*(lcgdm).*/:/' -i dpm-mysql/shlib/Imakefile cd dpm-mysql && \ make -f Makefile.ini Makefiles # DPM with postgres backend mkdir dpm-postgres cp -pr Imakefile Makefile.ini config configure VERSION scripts \ h lib shlib common ns rfio dpm \ srmv1 srmv2 srmv2.2 security dli dicomcopy dpmcopy \ test dpm-postgres # The code violates the strict aliasing rules all over the place... # Need to use -fnostrict-aliasing so that the -O2 optimization in # CFLAGS doesn't try to use them. sed 's/^CC +=/& $(CPPFLAGS) $(CFLAGS) -fno-strict-aliasing/' \ -i dpm-postgres/config/linux.cf sed 's/^CXXFLAGS =/& $(CPPFLAGS) $(CXXFLAGS)/' \ -i dpm-postgres/common/Imakefile cd dpm-postgres && \ gsoapversion=`soapcpp2 -v 2>&1 | grep C++ | sed 's/.* //'` && \ ./configure dpm --with-postgres \ --libdir=lib \ --with-gsoap-version=$$gsoapversion \ --with-dpm-config-file=$(_sysconfdir)/DPMCONFIG \ --with-id-map-file=$(_sysconfdir)/lcgdm-mapfile \ --with-ns-config-file=$(_sysconfdir)/DPNSCONFIG \ --with-etc-dir='$$(prefix)/../etc' \ --with-sysconf-dir=EtcDir/default \ --with-initrc-dir=EtcDir/init.d \ --with-emi \ --without-argus sed 's!$$(prefix)/var!$$(prefix)/../var!' -i dpm-postgres/config/site.def sed -e 's/\(BuildDPMClient *\)YES/\1NO/' \ -e 's/\(BuildInterfaces *\)YES/\1NO/' \ -e 's/\(BuildNameServerClient *\)YES/\1NO/' \ -e 's/\(BuildNameServerLibrary *\)YES/\1NO/' \ -e 's/\(BuildRfioClient *\)YES/\1NO/' \ -e 's/\(BuildRfioServer *\)YES/\1NO/' \ -i dpm-postgres/config/site.def sed '/^\#define.*YES/d' -i dpm-postgres/config/Project.tmpl \ -i dpm-postgres/config/Library.tmpl sed '/^SECURITYDIR =/d' -i dpm-postgres/config/Project.tmpl sed 's/\(install:\).*/\1/' -i dpm-postgres/h/Imakefile cd dpm-postgres && \ make -f Makefile.ini Makefiles touch $@ build: build-indep build-arch : build-indep: build-stamp : build-arch: build-stamp : build-stamp: configure-stamp dh_testdir cd lfc-mysql && \ $(MAKE) SOAPFLG="$(shell pkg-config --cflags gsoap)" \ DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ SYSCONFDIR=$(_sysconfdir) \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ SHLIBLDFLAGS="-shared $(LDFLAGS) -Wl,-z,defs" cd lfc-postgres/shlib && ln -s ../../lfc-mysql/shlib/liblcgdm.so* . cd lfc-postgres/shlib && ln -s ../../lfc-mysql/shlib/liblfc.so* . cd lfc-postgres && \ $(MAKE) SOAPFLG="$(shell pkg-config --cflags gsoap)" \ DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ SYSCONFDIR=$(_sysconfdir) \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ SHLIBLDFLAGS="-shared $(LDFLAGS) -Wl,-z,defs" \ POSINC=-I/usr/include/postgresql cd dpm-mysql/shlib && ln -s ../../lfc-mysql/shlib/liblcgdm.so* . cd dpm-mysql && \ $(MAKE) SOAPFLG="$(shell pkg-config --cflags gsoap)" \ DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ SYSCONFDIR=$(_sysconfdir) \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ SHLIBLDFLAGS="-shared $(LDFLAGS) -Wl,-z,defs" cd dpm-postgres/shlib && ln -s ../../lfc-mysql/shlib/liblcgdm.so* . cd dpm-postgres/shlib && ln -s ../../dpm-mysql/shlib/libdpm.so* . cd dpm-postgres && \ $(MAKE) SOAPFLG="$(shell pkg-config --cflags gsoap)" \ DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ SYSCONFDIR=$(_sysconfdir) \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ SHLIBLDFLAGS="-shared $(LDFLAGS) -Wl,-z,defs" \ POSINC=-I/usr/include/postgresql touch $@ clean: dh_testdir dh_testroot rm -rf lfc-mysql rm -rf lfc-postgres rm -rf dpm-mysql rm -rf dpm-postgres rm -f build-stamp configure-stamp dh_clean install: build-stamp dh_testdir dh_testroot mkdir -p debian/liblcgdm-dev$(_docdir) ln -s liblcgdm1 debian/liblcgdm-dev$(_docdir)/liblgcdm-dev mkdir -p debian/liblfc-dev$(_docdir) ln -s liblfc1 debian/liblfc-dev$(_docdir)/liblfc-dev mkdir -p debian/libdpm-dev$(_docdir) ln -s libdpm1 debian/libdpm-dev$(_docdir)/libdpm-dev dh_prep mkdir -p debian/tmp/etc/default # LFC with mysql backend cd lfc-mysql && \ $(MAKE) SOAPFLG="$(shell pkg-config --cflags gsoap)" \ DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ SYSCONFDIR=$(INSTALLDIR)$(_sysconfdir) \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ SHLIBLDFLAGS="-shared $(LDFLAGS) -Wl,-z,defs" \ prefix=$(INSTALLDIR)$(_prefix) install install.man # lfcdaemon startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -e 's!mysqld!mysql!' \ -i $(INSTALLDIR)$(_sysconfdir)/lfc-mysql/lfcdaemon.init # lfcdaemon configuration file sed -e 's/\(RUN_LFCDAEMON=\).*/\1"no"/' \ -e 's!/opt/lcg!!' -e 's!export SEMSGCONFIGFILE!#&!' \ -i $(INSTALLDIR)$(_sysconfdir)/lfc-mysql/lfcdaemon.conf # lfcdaemon man page sed -e 's!/opt/lcg!!g' \ -e 's/lfc-shutdown(1)/lfc-shutdown(8)/g' \ -i $(INSTALLDIR)$(_libdir)/lfc-mysql/lfcdaemon.8 gzip -9 $(INSTALLDIR)$(_libdir)/lfc-mysql/lfcdaemon.8 # lfc-shutdown man page gzip -9 $(INSTALLDIR)$(_libdir)/lfc-mysql/lfc-shutdown.8 # lfc-dli startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -e 's!/var/log/dli!/var/log/lfc-dli!g' \ -i $(INSTALLDIR)$(_sysconfdir)/init.d/lfc-dli # lfc-dli configuration file sed -e 's!/var/log/dli!/var/log/lfc-dli!g' \ -e 's/\(LFC_HOST=\).*/\1`hostname -f`/' \ -e 's/\(RUN_DLIDAEMON=\).*/\1"no"/' \ -i $(INSTALLDIR)$(_sysconfdir)/lfc-dli mv $(INSTALLDIR)$(_sysconfdir)/lfc-dli \ $(INSTALLDIR)$(_sysconfdir)/default/lfc-dli # lfc-dli log rotation configuration sed -e 's!/var/log/dli!/var/log/lfc-dli!g' \ -i $(INSTALLDIR)$(_sysconfdir)/logrotate.d/lfc-dli # lfc-dli man page sed -e 's/\(\.TH [^ ]* \)1/\18/' \ -e 's!/var/log/dli!/var/log/lfc-dli!g' \ -e 's/lfcdaemon(1)/lfc-server(8)/g' \ -i $(INSTALLDIR)$(_mandir)/man8/lfc-dli.8 # Add the LFC info provider script sed 's/\(^LFC_VERSION=\).*/\1$(VERSION)/' \ scripts/lcg-info-provider-lfc > \ $(INSTALLDIR)$(_datadir)/lcgdm/lcg-info-provider-lfc chmod 755 $(INSTALLDIR)$(_datadir)/lcgdm/lcg-info-provider-lfc # Create lfc user home and certificate directories mkdir -p $(INSTALLDIR)$(_localstatedir)/lib/lfc mkdir -p $(INSTALLDIR)$(_sysconfdir)/grid-security/lfcmgr # Remove due to name conflict rm $(INSTALLDIR)$(_mandir)/man3/log.3 # LFC with postgres backend cd lfc-postgres && \ $(MAKE) SOAPFLG="$(shell pkg-config --cflags gsoap)" \ DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ SYSCONFDIR=$(INSTALLDIR)$(_sysconfdir) \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ SHLIBLDFLAGS="-shared $(LDFLAGS) -Wl,-z,defs" \ prefix=$(INSTALLDIR)$(_prefix) install install.man # lfcdaemon startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -i $(INSTALLDIR)$(_sysconfdir)/lfc-postgres/lfcdaemon.init # lfcdaemon configuration file sed -e 's/\(RUN_LFCDAEMON=\).*/\1"no"/' \ -e 's!/opt/lcg!!' -e 's!export SEMSGCONFIGFILE!#&!' \ -i $(INSTALLDIR)$(_sysconfdir)/lfc-postgres/lfcdaemon.conf # lfcdaemon man page sed -e 's!/opt/lcg!!g' \ -e 's/lfc-shutdown(1)/lfc-shutdown(8)/g' \ -i $(INSTALLDIR)$(_libdir)/lfc-postgres/lfcdaemon.8 gzip -9 $(INSTALLDIR)$(_libdir)/lfc-postgres/lfcdaemon.8 # lfc-shutdown man page gzip -9 $(INSTALLDIR)$(_libdir)/lfc-postgres/lfc-shutdown.8 # Create lfc user home and certificate directories mkdir -p $(INSTALLDIR)$(_localstatedir)/lib/lfc mkdir -p $(INSTALLDIR)$(_sysconfdir)/grid-security/lfcmgr # This doesn't quite work... sed '/CREATE DATABASE/d' -i \ $(INSTALLDIR)$(_datadir)/lcgdm/create_lfc_tables_postgres.sql # DPM with mysql backend cd dpm-mysql && \ $(MAKE) SOAPFLG="$(shell pkg-config --cflags gsoap)" \ DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ SYSCONFDIR=$(INSTALLDIR)$(_sysconfdir) \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ SHLIBLDFLAGS="-shared $(LDFLAGS) -Wl,-z,defs" \ prefix=$(INSTALLDIR)$(_prefix) install install.man sed 's!/usr/bin/env python!/usr/bin/python!' \ -i $(INSTALLDIR)$(_bindir)/dpm-listspaces # dpm startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -e 's!mysqld!mysql!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpm.init # dpm configuration file sed -e 's/\(^DPNS_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^RUN_DPMDAEMON=\).*/\1"no"/' \ -e 's!/opt/lcg!!' -e 's!export SEMSGCONFIGFILE!#&!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpm.conf # dpm man page sed -e 's/dpm-shutdown(1)/dpm-shutdown(8)/g' \ -i $(INSTALLDIR)$(_libdir)/dpm-mysql/dpm.8 gzip -9 $(INSTALLDIR)$(_libdir)/dpm-mysql/dpm.8 mv $(INSTALLDIR)$(_libdir)/dpm-mysql/NSCONFIG.templ \ $(INSTALLDIR)$(_libdir)/dpm-mysql/DPNSCONFIG.templ # dpm-shutdown man page gzip -9 $(INSTALLDIR)$(_libdir)/dpm-mysql/dpm-shutdown.8 # dpm-buildfsv man page gzip -9 $(INSTALLDIR)$(_libdir)/dpm-mysql/dpm-buildfsv.8 # dpnsdaemon startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -e 's!mysqld!mysql!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpnsdaemon.init # dpnsdaemon configuration file sed -e 's/\(^RUN_DPNSDAEMON=\).*/\1"no"/' \ -e 's!/opt/lcg!!' -e 's!export SEMSGCONFIGFILE!#&!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpnsdaemon.conf # dpnsdaemon man page sed -e 's!/opt/lcg!!g' \ -e 's!/etc/NSCONFIG!/etc/DPNSCONFIG!g' \ -e 's/dpns-shutown(1)/dpns-shutdown(8)/g' \ -i $(INSTALLDIR)$(_libdir)/dpm-mysql/dpnsdaemon.8 gzip -9 $(INSTALLDIR)$(_libdir)/dpm-mysql/dpnsdaemon.8 # dpns-shutdown man page gzip -9 $(INSTALLDIR)$(_libdir)/dpm-mysql/dpns-shutdown.8 # dpmcopyd startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -e 's!mysqld!mysql!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpmcopyd.init # dpmcopyd configuration file sed -e 's/\(^DPNS_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^DPM_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^RUN_DPMCOPYDAEMON=\).*/\1"no"/' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpmcopyd.conf # dpmcopyd man page gzip -9 $(INSTALLDIR)$(_libdir)/dpm-mysql/dpmcopyd.8 for svc in srmv1 srmv2 srmv2.2 ; do \ sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -e "s/$${svc}/dpm-$${svc}/g" \ -e 's!mysqld!mysql!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/$${svc}.init ; \ mv $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/$${svc}.init \ $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpm-$${svc}.init ; \ sed -e "s/$${svc}/dpm-$${svc}/g" \ -e 's/\(^DPNS_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^DPM_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^RUN_SRMV1DAEMON=\).*/\1"no"/' \ -e 's/\(^RUN_SRMV2DAEMON=\).*/\1"no"/' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/$${svc}.conf ; \ mv $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/$${svc}.conf \ $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpm-$${svc}.conf ; \ rmdir $(INSTALLDIR)$(_localstatedir)/log/$${svc} ; \ mkdir -p $(INSTALLDIR)$(_localstatedir)/log/dpm-$${svc} ; \ sed -e "s/$${svc}/dpm-$${svc}/g" \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/$${svc}.logrotate ; \ mv $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/$${svc}.logrotate \ $(INSTALLDIR)$(_sysconfdir)/dpm-mysql/dpm-$${svc}.logrotate ; \ mv $(INSTALLDIR)$(_libdir)/dpm-mysql/$${svc} \ $(INSTALLDIR)$(_libdir)/dpm-mysql/dpm-$${svc} ; \ sed -e "s/$${svc}/dpm-$${svc}/g" \ -e 's/dpm(1)/dpm(8)/g' \ -i $(INSTALLDIR)$(_libdir)/dpm-mysql/$${svc}.8 ; \ mv $(INSTALLDIR)$(_libdir)/dpm-mysql/$${svc}.8 \ $(INSTALLDIR)$(_libdir)/dpm-mysql/dpm-$${svc}.8 ; \ gzip -9 $(INSTALLDIR)$(_libdir)/dpm-mysql/dpm-$${svc}.8 ; \ done # rfiod startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -e 's/rfiod/dpm-rfiod/g' \ -e 's!/var/log/rfio!/var/log/dpm-rfiod!g' \ -i $(INSTALLDIR)$(_sysconfdir)/init.d/rfiod mv $(INSTALLDIR)$(_sysconfdir)/init.d/rfiod \ $(INSTALLDIR)$(_sysconfdir)/init.d/dpm-rfiod # rfiod configuration file sed -e 's/rfiod/dpm-rfiod/g' \ -e 's!/var/log/rfio!/var/log/dpm-rfiod!g' \ -e 's/\(^DPNS_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^DPM_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^RUN_RFIOD=\).*/\1"no"/' \ -i $(INSTALLDIR)$(_sysconfdir)/rfiod mv $(INSTALLDIR)$(_sysconfdir)/rfiod \ $(INSTALLDIR)$(_sysconfdir)/default/dpm-rfiod # rfiod log directory and log rotation configuration rmdir $(INSTALLDIR)$(_localstatedir)/log/rfio mkdir -p $(INSTALLDIR)$(_localstatedir)/log/dpm-rfiod sed -e 's!/var/log/rfio!/var/log/dpm-rfiod!g' \ -i $(INSTALLDIR)$(_sysconfdir)/logrotate.d/rfiod mv $(INSTALLDIR)$(_sysconfdir)/logrotate.d/rfiod \ $(INSTALLDIR)$(_sysconfdir)/logrotate.d/dpm-rfiod # rfiod binary and man page mv $(INSTALLDIR)$(_sbindir)/rfiod \ $(INSTALLDIR)$(_sbindir)/dpm-rfiod sed -e 's/rfiod/dpm-rfiod/g' \ -e 's!/usr/local/bin!/usr/sbin!g' \ -i $(INSTALLDIR)$(_mandir)/man8/rfiod.8 mv $(INSTALLDIR)$(_mandir)/man8/rfiod.8 \ $(INSTALLDIR)$(_mandir)/man8/dpm-rfiod.8 # Create dpm user home and certificate directories mkdir -p $(INSTALLDIR)$(_localstatedir)/lib/dpm mkdir -p $(INSTALLDIR)$(_sysconfdir)/grid-security/dpmmgr # DPM with postgres backend cd dpm-postgres && \ $(MAKE) SOAPFLG="$(shell pkg-config --cflags gsoap)" \ DEB_HOST_MULTIARCH=$(DEB_HOST_MULTIARCH) \ SYSCONFDIR=$(INSTALLDIR)$(_sysconfdir) \ LDFLAGS="$(LDFLAGS) -Wl,-z,defs" \ SHLIBLDFLAGS="-shared $(LDFLAGS) -Wl,-z,defs" \ prefix=$(INSTALLDIR)$(_prefix) install install.man # dpm startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpm.init # dpm configuration file sed -e 's/\(^DPNS_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^RUN_DPMDAEMON=\).*/\1"no"/' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpm.conf # dpm man page sed -e 's/dpm-shutdown(1)/dpm-shutdown(8)/g' \ -i $(INSTALLDIR)$(_libdir)/dpm-postgres/dpm.8 gzip -9 $(INSTALLDIR)$(_libdir)/dpm-postgres/dpm.8 mv $(INSTALLDIR)$(_libdir)/dpm-postgres/NSCONFIG.templ \ $(INSTALLDIR)$(_libdir)/dpm-postgres/DPNSCONFIG.templ # dpm-shutdown man page gzip -9 $(INSTALLDIR)$(_libdir)/dpm-postgres/dpm-shutdown.8 # dpm-buildfsv man page gzip -9 $(INSTALLDIR)$(_libdir)/dpm-postgres/dpm-buildfsv.8 # dpnsdaemon startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpnsdaemon.init # dpnsdaemon configuration file sed -e 's/\(^RUN_DPNSDAEMON=\).*/\1"no"/' \ -e 's!/opt/lcg!!' -e 's!export SEMSGCONFIGFILE!#&!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpnsdaemon.conf # dpnsdaemon man page sed -e 's!/opt/lcg!!g' \ -e 's!/etc/NSCONFIG!/etc/DPNSCONFIG!g' \ -e 's/dpns-shutdown(1)/dpns-shutdown(8)/g' \ -i $(INSTALLDIR)$(_libdir)/dpm-postgres/dpnsdaemon.8 gzip -9 $(INSTALLDIR)$(_libdir)/dpm-postgres/dpnsdaemon.8 # dpns-shutdown man page gzip -9 $(INSTALLDIR)$(_libdir)/dpm-postgres/dpns-shutdown.8 # dpmcopyd startup script sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpmcopyd.init # dpmcopyd configuration file sed -e 's/\(^DPNS_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^DPM_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^RUN_DPMCOPYDAEMON=\).*/\1"no"/' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpmcopyd.conf # dpmcopyd man page gzip -9 $(INSTALLDIR)$(_libdir)/dpm-postgres/dpmcopyd.8 for svc in srmv1 srmv2 srmv2.2 ; do \ sed -e 's/LD_LIBRARY_PATH=$$LD_LIBRARY_PATH //' \ -e '/LD_LIBRARY_PATH/d' \ -e 's!\$$PREFIX/etc!/etc!' \ -e "s/$${svc}/dpm-$${svc}/g" \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/$${svc}.init ; \ mv $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/$${svc}.init \ $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpm-$${svc}.init ; \ sed -e "s/$${svc}/dpm-$${svc}/g" \ -e 's/\(^DPNS_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^DPM_HOST=\).*/\1`hostname -f`/' \ -e 's/\(^RUN_SRMV1DAEMON=\).*/\1"no"/' \ -e 's/\(^RUN_SRMV2DAEMON=\).*/\1"no"/' \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/$${svc}.conf ; \ mv $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/$${svc}.conf \ $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpm-$${svc}.conf ; \ rmdir $(INSTALLDIR)$(_localstatedir)/log/$${svc} ; \ mkdir -p $(INSTALLDIR)$(_localstatedir)/log/dpm-$${svc} ; \ sed -e "s/$${svc}/dpm-$${svc}/g" \ -i $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/$${svc}.logrotate ; \ mv $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/$${svc}.logrotate \ $(INSTALLDIR)$(_sysconfdir)/dpm-postgres/dpm-$${svc}.logrotate ; \ mv $(INSTALLDIR)$(_libdir)/dpm-postgres/$${svc} \ $(INSTALLDIR)$(_libdir)/dpm-postgres/dpm-$${svc} ; \ sed -e "s/$${svc}/dpm-$${svc}/g" \ -e 's/dpm(1)/dpm(8)/g' \ -i $(INSTALLDIR)$(_libdir)/dpm-postgres/$${svc}.8 ; \ mv $(INSTALLDIR)$(_libdir)/dpm-postgres/$${svc}.8 \ $(INSTALLDIR)$(_libdir)/dpm-postgres/dpm-$${svc}.8 ; \ gzip -9 $(INSTALLDIR)$(_libdir)/dpm-postgres/dpm-$${svc}.8 ; \ done # Create dpm user home and certificate directories mkdir -p $(INSTALLDIR)$(_localstatedir)/lib/dpm mkdir -p $(INSTALLDIR)$(_sysconfdir)/grid-security/dpmmgr # This doesn't quite work... sed '/CREATE DATABASE/d' -i \ $(INSTALLDIR)$(_datadir)/lcgdm/create_dpm_tables_postgres.sql \ $(INSTALLDIR)$(_datadir)/lcgdm/create_dpns_tables_postgres.sql binary-indep: : binary-arch: install dh_testdir dh_testroot dh_installchangelogs dh_installdocs dh_install --fail-missing dh_installman dh_lintian dh_link dh_strip --dbg-package=lcgdm-dbg dh_compress dh_fixperms dh_perl dh_python2 dh_makeshlibs dh_installdeb dh_shlibdeps -l debian/libdpm1/usr/lib:debian/liblfc1/usr/lib:debian/liblcgdm1/usr/lib dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch : get-orig-source: dest="../lcgdm_$(VERSION).orig.tar.gz" ; \ if [ -r "$$dest" ] ; then \ echo "'$$dest' already exists." ; \ else \ uversion=LCG-DM_R_`echo $(VERSION)|tr "." "_"`_3 ; \ echo "Fetching upstream svn version '$$uversion'" ; \ rm -rf lcgdm-$(VERSION) ; \ LANG=C svn export http://svnweb.cern.ch/guest/lcgdm/lcg-dm/tags/$$uversion lcgdm-$(VERSION) ; \ echo "Packing it up." ; \ GZIP=-9 tar --exclude debian -z -c -f "$$dest" lcgdm-$(VERSION) ; \ echo "Cleaning up." ; \ rm -rf lcgdm-$(VERSION) ; \ fi .PHONY: build-indep build-arch build clean binary-indep binary-arch binary install configure get-orig-source debian/dpm-rfio-server.prerm0000644000000000000000000000032711263077530013264 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpm-rfiod" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpm-rfiod stop || exit $? else /etc/init.d/dpm-rfiod stop || exit $? fi fi #DEBHELPER# debian/dpm-srm-server-postgres.postrm0000644000000000000000000000062311632575545015201 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display dpm-srmv1 > /dev/null || \ update-rc.d dpm-srmv1 remove > /dev/null || exit $? update-alternatives --display dpm-srmv2 > /dev/null || \ update-rc.d dpm-srmv2 remove > /dev/null || exit $? update-alternatives --display dpm-srmv2.2 > /dev/null || \ update-rc.d dpm-srmv2.2 remove > /dev/null || exit $? fi #DEBHELPER# debian/lfc-server-mysql.lintian-overrides0000644000000000000000000000031711632653601015765 0ustar # The init.d script is handled by update-alternatives lfc-server-mysql: init.d-script-not-marked-as-conffile etc/init.d/lfcdaemon lfc-server-mysql: init.d-script-not-included-in-package etc/init.d/lfcdaemon debian/dpm-copy-server-postgres.prerm0000644000000000000000000000047411263075636015153 0ustar #!/bin/sh set -e if [ -x "/etc/init.d/dpmcopyd" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d dpmcopyd stop || exit $? else /etc/init.d/dpmcopyd stop || exit $? fi fi if [ "$1" = "remove" ] ; then update-alternatives --remove dpmcopyd /usr/lib/dpm-postgres/dpmcopyd fi #DEBHELPER# debian/lfc-server-postgres.install0000644000000000000000000000076512124765641014512 0ustar debian/tmp/usr/lib/lfc-postgres/lfcdaemon debian/tmp/usr/lib/lfc-postgres/lfc-shutdown debian/tmp/usr/lib/lfc-postgres/NSCONFIG.templ debian/tmp/usr/lib/lfc-postgres/lfcdaemon.8* debian/tmp/usr/lib/lfc-postgres/lfc-shutdown.8* debian/tmp/etc/lfc-postgres/lfcdaemon.init debian/tmp/etc/lfc-postgres/lfcdaemon.conf debian/tmp/etc/lfc-postgres/lfcdaemon.logrotate debian/tmp/usr/share/lcgdm/create_lfc_tables_postgres.sql debian/tmp/var/log/lfc debian/tmp/var/lib/lfc debian/tmp/etc/grid-security/lfcmgr debian/dpm-server-mysql.lintian-overrides0000644000000000000000000000030311632653502015774 0ustar # The init.d script is handled by update-alternatives dpm-server-mysql: init.d-script-not-marked-as-conffile etc/init.d/dpm dpm-server-mysql: init.d-script-not-included-in-package etc/init.d/dpm debian/dpm-name-server-postgres.postrm0000644000000000000000000000026011262032177015301 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then update-alternatives --display dpnsdaemon > /dev/null || \ update-rc.d dpnsdaemon remove >/dev/null || exit $? fi #DEBHELPER# debian/dpm-copy-server-mysql.install0000644000000000000000000000043711647652400014766 0ustar debian/tmp/usr/lib/dpm-mysql/dpmcopyd debian/tmp/usr/lib/dpm-mysql/dpmcopyd.8* debian/tmp/etc/dpm-mysql/dpmcopyd.init debian/tmp/etc/dpm-mysql/dpmcopyd.conf debian/tmp/etc/dpm-mysql/dpmcopyd.logrotate debian/tmp/var/log/dpmcopy debian/tmp/var/lib/dpm debian/tmp/etc/grid-security/dpmmgr debian/patches/0000755000000000000000000000000012246547001010616 5ustar debian/patches/lcgdm-imake.patch0000644000000000000000000000263412134443020014006 0ustar diff -ur lcgdm-1.8.6.orig/Imakefile lcgdm-1.8.6/Imakefile --- lcgdm-1.8.6.orig/Imakefile 2012-12-14 14:38:59.000000000 +0100 +++ lcgdm-1.8.6/Imakefile 2013-04-20 09:37:25.262182790 +0200 @@ -112,10 +112,9 @@ (cd test; $(MAKE) all) Makefiles: - @. ./setosflags ;\ for i in $(SUBDIRS) test ;\ do (echo " $$i:" ; cd $$i ;\ - imake -I../config -DOSMajorVersion="$$OSMAJNO" -DOSMinorVersion="$$OSMINNO" ;\ + imake -Ui386 -I../config ;\ $(MAKE) $(MFLAGS) $@ \ ) ; done ; diff -ur lcgdm-1.8.6.orig/Makefile.ini lcgdm-1.8.6/Makefile.ini --- lcgdm-1.8.6.orig/Makefile.ini 2012-12-14 14:38:59.000000000 +0100 +++ lcgdm-1.8.6/Makefile.ini 2013-04-20 09:36:21.390183360 +0200 @@ -15,6 +15,5 @@ test: Makefiles (cd test; $(MAKE) all) Makefiles: - @. ./setosflags ;\ imake -Ui386 -Iconfig ;\ $(MAKE) $@ diff -ur lcgdm-1.8.6.orig/test/Imakefile lcgdm-1.8.6/test/Imakefile --- lcgdm-1.8.6.orig/test/Imakefile 2012-12-14 14:38:52.000000000 +0100 +++ lcgdm-1.8.6/test/Imakefile 2013-04-20 09:35:38.430181490 +0200 @@ -27,12 +27,11 @@ @echo Not supported on this platform #else Makefiles: - @. ../setosflags ;\ for i in $(SUBDIRS) ;\ do (if [ -d $$i ] ;\ then \ (echo " $$i:" ; cd $$i ;\ - imake -I../../config -DOSMajorVersion="$$OSMAJNO" -DOSMinorVersion="$$OSMINNO" ;\ + imake -Ui386 -I../../config ;\ $(MAKE) $(MFLAGS) $@) ;\ else \ (echo "ERROR : No directory $$i" ;\ debian/patches/lcgdm-usr.patch0000644000000000000000000000523712134435715013547 0ustar diff -ur lcgdm-1.8.6.orig/dicomcopy/Imakefile lcgdm-1.8.6/dicomcopy/Imakefile --- lcgdm-1.8.6.orig/dicomcopy/Imakefile 2013-04-20 06:27:03.529496046 +0200 +++ lcgdm-1.8.6/dicomcopy/Imakefile 2013-04-20 08:35:36.938032566 +0200 @@ -12,7 +12,7 @@ #if UseGSI GLOBUS_LOCATION=GlobusLocation #if EMIBuild -GLOBUS_LIBS=-L$(GLOBUS_LOCATION)/$(_lib) -lglobus_gssapi_gsi -lglobus_gss_assist +GLOBUS_LIBS=-lglobus_gssapi_gsi -lglobus_gss_assist #else GLOBUS_FLAVOUR=GlobusFlavour GLOBUS_LIBS=-L$(GLOBUS_LOCATION)/lib -lglobus_gssapi_gsi_$(GLOBUS_FLAVOUR) -lglobus_gss_assist_$(GLOBUS_FLAVOUR) diff -ur lcgdm-1.8.6.orig/dpmcopy/Imakefile lcgdm-1.8.6/dpmcopy/Imakefile --- lcgdm-1.8.6.orig/dpmcopy/Imakefile 2012-12-14 14:38:50.000000000 +0100 +++ lcgdm-1.8.6/dpmcopy/Imakefile 2013-04-20 08:39:22.718055626 +0200 @@ -27,7 +27,7 @@ #if EMIBuild GLOBUS_INCLUDES=-I$(GLOBUS_LOCATION)/include/globus -I$(GLOBUS_LOCATION)/$(_lib)/globus/include GLOBUS_LIBS=-lglobus_gssapi_gsi -lglobus_gss_assist -lglobus_common -GGC_LIB=-L$(GLOBUS_LOCATION)/$(_lib) -lglobus_gass_copy -lglobus_ftp_client -lglobus_common +GGC_LIB=-lglobus_gass_copy -lglobus_ftp_client -lglobus_common #if UseVOMS VOMS_LIB = -lvomsapi SECLIB = -lcgsi_plugin_voms diff -ur lcgdm-1.8.6.orig/security/Imakefile lcgdm-1.8.6/security/Imakefile --- lcgdm-1.8.6.orig/security/Imakefile 2012-12-14 14:38:58.000000000 +0100 +++ lcgdm-1.8.6/security/Imakefile 2013-04-20 08:35:47.602032886 +0200 @@ -37,7 +37,7 @@ #if EMIBuild #if UseVOMS VOMS_INCLUDE=-I$(VOMS_LOCATION)/include/voms -DUSE_VOMS -VOMS_LIB=-L$(VOMS_LOCATION)/$(_lib) -L$(VOMS_LOCATION)/lib -lvomsapi +VOMS_LIB=-lvomsapi #endif #else GLOBUS_FLAVOUR_NONPTHR=GlobusFlavour @@ -58,7 +58,7 @@ #define SecAuthMechGSI -DGSI #if EMIBuild #define SecIncludeDirGSI -I$(GLOBUS_LOCATION)/include/globus -I$(GLOBUS_LOCATION)/$(_lib)/globus/include $(VOMS_INCLUDE) -#define SecLibsGSI -L$(GLOBUS_LOCATION)/$(_lib) -lglobus_gssapi_gsi -lglobus_gss_assist -lglobus_gsi_credential -lglobus_gsi_callback -lglobus_gsi_cert_utils -lglobus_common $(VOMS_LIB) -lssl -lcrypto +#define SecLibsGSI -lglobus_gssapi_gsi -lglobus_gss_assist -lglobus_gsi_credential -lglobus_gsi_callback -lglobus_gsi_cert_utils -lglobus_common $(VOMS_LIB) -lssl -lcrypto #else #define SecIncludeDirGSI -I$(GLOBUS_LOCATION)/include/$(GLOBUS_FLAVOUR_NONPTHR) $(VOMS_INCLUDE) #define SecLibsGSI -L$(GLOBUS_LOCATION)/lib -lglobus_gssapi_gsi_$(GLOBUS_FLAVOUR_NONPTHR) -lglobus_gss_assist_$(GLOBUS_FLAVOUR_NONPTHR) -lglobus_gsi_credential_$(GLOBUS_FLAVOUR_NONPTHR) -lglobus_gsi_callback_$(GLOBUS_FLAVOUR_NONPTHR) -lglobus_gsi_cert_utils_$(GLOBUS_FLAVOUR_NONPTHR) -lglobus_common_$(GLOBUS_FLAVOUR_NONPTHR) $(VOMS_LIB) -lssl -lcrypto debian/patches/lcgdm-segfault.patch0000644000000000000000000000264312163051312014533 0ustar diff -ur lcgdm-1.8.6.orig/rfio/rename.c lcgdm-1.8.6/rfio/rename.c --- lcgdm-1.8.6.orig/rfio/rename.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rename.c 2013-06-27 16:12:22.441177244 +0200 @@ -53,7 +53,8 @@ if (host != NULL) strcpy(hostnameo, host); - strcpy(filenameo, path); + if (path != NULL) + strcpy(filenameo, path); rpn = parserc = rfio_parse(filen,&host, &path); diff -ur lcgdm-1.8.6.orig/rfio/rfcp.c lcgdm-1.8.6/rfio/rfcp.c --- lcgdm-1.8.6.orig/rfio/rfcp.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfcp.c 2013-06-27 16:49:52.027256440 +0200 @@ -136,6 +136,12 @@ } #endif if (strcmp (curargv, "-s") == 0) { + if (argvindx >= argc && cfargvindx >= cfargc) { + usage(); + } + if (cfargvindx >= cfargc) { + incmdfile = 0; + } curargv = incmdfile ? cfargv[cfargvindx++] : argv[argvindx++]; /* We verify that curargv do not contain other characters but digits */ if (strspn(curargv,"0123456789") != strlen(curargv)) { @@ -147,14 +153,7 @@ usage(); } have_maxsize = 1; - curargv = incmdfile ? cfargv[cfargvindx++] : argv[argvindx++]; - if (strcmp(curargv, "-v2") == 0) { - if (v2) { - usage(); /* Option yet parsed */ - } - v2 = 1; - curargv = incmdfile ? cfargv[cfargvindx++] : argv[argvindx++]; - } + continue; } else if (strcmp(curargv, "-v2") == 0) { if (v2) { usage(); /* Option yet parsed */ debian/patches/lcgdm-gt-multi.patch0000644000000000000000000000320612246541305014467 0ustar Endast i lcgdm-1.8.7/debian/patches: lcgdm-gt-multi.patch diff -ur lcgdm-1.8.7.orig/dpmcopy/Imakefile lcgdm-1.8.7/dpmcopy/Imakefile --- lcgdm-1.8.7.orig/dpmcopy/Imakefile 2013-12-01 05:17:17.000000000 +0100 +++ lcgdm-1.8.7/dpmcopy/Imakefile 2013-12-01 06:00:34.692654422 +0100 @@ -25,7 +25,7 @@ CGSI_GSOAP_LOCATION=CgsiGsoapLocation GLOBUS_LOCATION=GlobusLocation #if EMIBuild -GLOBUS_INCLUDES=-I$(GLOBUS_LOCATION)/include/globus -I$(GLOBUS_LOCATION)/$(_lib)/globus/include +GLOBUS_INCLUDES=-I$(GLOBUS_LOCATION)/include/globus -I$(GLOBUS_LOCATION)/$(_lib)/globus/include -I$(GLOBUS_LOCATION)/include/$(DEB_HOST_MULTIARCH)/globus GLOBUS_LIBS=-lglobus_gssapi_gsi -lglobus_gss_assist -lglobus_common GGC_LIB=-lglobus_gass_copy -lglobus_ftp_client -lglobus_common #if UseVOMS diff -ur lcgdm-1.8.7.orig/security/Imakefile lcgdm-1.8.7/security/Imakefile --- lcgdm-1.8.7.orig/security/Imakefile 2013-12-01 05:17:17.000000000 +0100 +++ lcgdm-1.8.7/security/Imakefile 2013-12-01 06:00:33.280654458 +0100 @@ -57,7 +57,7 @@ #define GSIMech GSI #define SecAuthMechGSI -DGSI #if EMIBuild -#define SecIncludeDirGSI -I$(GLOBUS_LOCATION)/include/globus -I$(GLOBUS_LOCATION)/$(_lib)/globus/include $(VOMS_INCLUDE) +#define SecIncludeDirGSI -I$(GLOBUS_LOCATION)/include/globus -I$(GLOBUS_LOCATION)/$(_lib)/globus/include -I$(GLOBUS_LOCATION)/include/$(DEB_HOST_MULTIARCH)/globus $(VOMS_INCLUDE) #define SecLibsGSI -lglobus_gssapi_gsi -lglobus_gss_assist -lglobus_gsi_credential -lglobus_gsi_callback -lglobus_gsi_cert_utils -lglobus_common $(VOMS_LIB) -lssl -lcrypto #else #define SecIncludeDirGSI -I$(GLOBUS_LOCATION)/include/$(GLOBUS_FLAVOUR_NONPTHR) $(VOMS_INCLUDE) debian/patches/lcgdm-condrestart.patch0000644000000000000000000001264512134544527015271 0ustar diff -ur lcgdm-1.8.6.orig/rfio/rfiod.scripts lcgdm-1.8.6/rfio/rfiod.scripts --- lcgdm-1.8.6.orig/rfio/rfiod.scripts 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfiod.scripts 2013-04-20 18:57:30.729337009 +0200 @@ -13,10 +13,6 @@ PREFIX=/opt/lcg GRIDMAPDIR=/etc/grid-security/gridmapdir export GRIDMAPDIR -if [ -d /opt/lcg/lib ] ; then - LD_LIBRARY_PATH=/opt/lcg/lib:/opt/glite/lib:/opt/globus/lib - export LD_LIBRARY_PATH -fi CSEC_MECH=ID export CSEC_MECH CSEC_NOTHREAD=1 @@ -32,7 +28,7 @@ . /etc/rc.d/init.d/functions DAEMON=daemon FAILURE=failure - ECHO_FAILURE=failure + ECHO_FAILURE=echo_failure SUCCESS=success ECHO_SUCCESS=echo_success ECHO_END=echo @@ -86,18 +82,12 @@ case "$1" in start) - echo $ECHOOPT "Starting $prog: " if [ -f ${NOMORERFIO} ]; then echo $ECHOOPT "${NOMORERFIO} exists: " [ -n "$ECHO_SUCCESS" ] && $ECHO_SUCCESS "${NOMORERFIO} exists: " RETVAL=0 else - if [ $sysname = "Linux" -a `whoami` = "root" ]; then - netstat -ap | egrep '\*:5001|\*:rfio' | grep LISTEN | grep rfiod > /dev/null - else - netstat -a | egrep '\*[:.]5001|\*[:.]rfio' | egrep 'LISTEN *$' > /dev/null - fi - # ps -eo ppid,$format4comm | egrep '^[ \t]+1 rfiod' > /dev/null + netstat -an | egrep '[:.]5001' | egrep 'LISTEN *$' > /dev/null if [ $? -eq 0 ]; then echo $ECHOOPT "rfiod already started: " [ -n "$ECHO_SUCCESS" ] && $ECHO_SUCCESS "rfiod already started: " @@ -121,6 +111,7 @@ fi fi if [ $RETVAL -eq 0 ]; then + echo $ECHOOPT "Starting $prog: " cd / mkdir -p `dirname $RFIOLOGFILE` touch $RFIOLOGFILE @@ -134,10 +125,10 @@ rm -f $PIDFILE echo $pid > $PIDFILE fi + [ -n "$ECHO_SUCCESS" ] && $ECHO_SUCCESS "Starting $prog: " RETVAL=0 else - echo $ECHOOPT "rfiod not started: " - [ -n "$FAILURE" ] && $FAILURE "rfiod not started: " + [ -n "$ECHO_FAILURE" ] && $ECHO_FAILURE "Starting $prog: " RETVAL=1 fi fi @@ -147,63 +138,46 @@ ;; stop) if [ -f $PIDFILE ]; then - [ $SILENTSTOP -eq 0 ] && echo $ECHOOPT "Stopping $prog: " + echo $ECHOOPT "Stopping $prog: " # ## We just attempt to kill the main daemon ## Remaining child are allowed to continue transfer up to ## the end # - if [ $SILENTSTOP -eq 0 ]; then - kill -9 `cat $PIDFILE` - else - kill -9 `cat $PIDFILE` > /dev/null 2>&1 - fi + kill -9 `cat $PIDFILE` > /dev/null 2>&1 RETVAL=$? if [ $RETVAL -eq 0 ]; then rm -f $PIDFILE + [ -n "$ECHO_SUCCESS" ] && $ECHO_SUCCESS "Stopping $prog: " + else + [ -n "$ECHO_FAILURE" ] && $ECHO_FAILURE "Stopping $prog: " fi else # rfio might have been started by hand pid=`ps -eo pid,ppid,$format4comm | grep " 1 rfiod$" | awk '{print $1}'` if [ -n "$pid" ]; then - [ $SILENTSTOP -eq 0 ] && echo $ECHOOPT "Stopping $prog: " + echo $ECHOOPT "Stopping $prog: " # ## We just attempt to kill the main daemon ## Remaining child are allowed to continue transfer up to ## the end # - if [ $SILENTSTOP -eq 0 ]; then - kill -9 $pid + kill -9 $pid > /dev/null 2>&1 + RETVAL=$? + if [ $RETVAL -eq 0 ]; then + [ -n "$ECHO_SUCCESS" ] && $ECHO_SUCCESS "Stopping $prog: " else - kill -9 $pid > /dev/null 2>&1 + [ -n "$ECHO_FAILURE" ] && $ECHO_FAILURE "Stopping $prog: " fi - RETVAL=$? - else - [ $SILENTSTOP -eq 0 ] && echo $ECHOOPT "rfiod already stopped: " - [ $SILENTSTOP -eq 0 -a -n "$ECHO_SUCCESS" ] && $ECHO_SUCCESS "rfiod already stopped: " - RETVAL=0 - fi - fi - if [ $SILENTSTOP -eq 0 -a $sysname = "Linux" ]; then - if [ $RETVAL -eq 0 ]; then - $ECHO_SUCCESS else - $ECHO_FAILURE + echo $ECHOOPT "rfiod already stopped: " + [ -n "$ECHO_SUCCESS" ] && $ECHO_SUCCESS "rfiod already stopped: " + [ $SILENTSTOP -eq 0 ] && RETVAL=0 || RETVAL=1 fi fi [ -d $SUBSYSDIR ] && rm -f $SUBSYS - [ $SILENTSTOP -eq 0 -a -n "$ECHO_END" ] && $ECHO_END - # - ## Basically: if SILENTSTOP is not 0 when we never print something - ## But if the stop is successful... One might want to see stop: OK - ## anyway ? - # - if [ $SILENTSTOP -ne 0 -a $RETVAL -eq 0 ]; then - echo $ECHOOPT "Stopping $prog: " - [ $sysname = "Linux" ] && $ECHO_SUCCESS - [ -n "$ECHO_END" ] && $ECHO_END - fi + $ECHO_END ;; restart | force-reload) $0 stop @@ -211,15 +185,7 @@ $0 start RETVAL=$? else - # - ## It is legal to return zero it if was - ## a conditional restart - # - if [ $SILENTSTOP -eq 0 ]; then - RETVAL=1 - else - RETVAL=0 - fi + RETVAL=0 fi ;; condrestart | try-restart) debian/patches/lcgdm-dlopen.patch0000644000000000000000000000441112134454412014203 0ustar diff -ur lcgdm-1.8.6.orig/config/Imake.rules lcgdm-1.8.6/config/Imake.rules --- lcgdm-1.8.6.orig/config/Imake.rules 2012-12-14 14:38:58.000000000 +0100 +++ lcgdm-1.8.6/config/Imake.rules 2013-04-20 10:58:07.277601196 +0200 @@ -192,9 +192,9 @@ #ifndef InstallPlugin #define InstallPlugin(libname,dest) @@\ -dest/SharedLibraryTargetName(libname): SharedLibraryTargetName(libname) @@\ - -mv $@ dest/OLD$? @@\ - cp $? $@ +dest/SharedLibraryTargetName(libname): dest SharedLibraryTargetName(libname) @@\ + -mv $@ dest/OLD-SharedLibraryTargetName(libname) @@\ + cp SharedLibraryTargetName(libname) $@ #endif #ifndef MakeDir diff -ur lcgdm-1.8.6.orig/security/Csec_api_loader.c lcgdm-1.8.6/security/Csec_api_loader.c --- lcgdm-1.8.6.orig/security/Csec_api_loader.c 2012-12-14 14:38:58.000000000 +0100 +++ lcgdm-1.8.6/security/Csec_api_loader.c 2013-04-20 10:58:07.277601196 +0200 @@ -224,6 +224,7 @@ void *Csec_get_shlib(Csec_context_t *ctx) { char filename[CA_MAXNAMELEN]; char filename_thread[CA_MAXNAMELEN]; + char fullpath[CA_MAXNAMELEN]; char suffix[CA_MAXNAMELEN]; char symname[256]; void *handle; @@ -304,6 +305,12 @@ filename_thread, ctx->protocols[ctx->current_protocol].id); handle = dlopen(filename_thread, RTLD_NOW); + if (handle == NULL) { + strcpy(fullpath, LIBDIR); + strcat(fullpath, "/"); + strcat(fullpath, filename_thread); + handle = dlopen(fullpath, RTLD_NOW); + } } if (handle == NULL) { @@ -312,6 +319,12 @@ filename, ctx->protocols[ctx->current_protocol].id); handle = dlopen(filename, RTLD_NOW); + if (handle == NULL) { + strcpy(fullpath, LIBDIR); + strcat(fullpath, "/"); + strcat(fullpath, filename); + handle = dlopen(fullpath, RTLD_NOW); + } } if (handle == NULL) { diff -ur lcgdm-1.8.6.orig/security/Imakefile lcgdm-1.8.6/security/Imakefile --- lcgdm-1.8.6.orig/security/Imakefile 2012-12-14 14:38:58.000000000 +0100 +++ lcgdm-1.8.6/security/Imakefile 2013-04-20 10:58:55.621594293 +0200 @@ -14,7 +14,7 @@ INCLUDES = FileName(..,h) LIBBASE = InstallLibDir -LIB = $(LIBBASE) +LIB = $(LIBBASE)/lcgdm #if UseKRB5 #define KRB5Mech KRB5 debian/patches/series0000644000000000000000000000141612246546633012047 0ustar # Link binaries using shared libraries # https://savannah.cern.ch/bugs/?57529 lcgdm-shliblink.patch # Fix build on GNU/Hurd and GNU/kFreeBSD # https://savannah.cern.ch/bugs/?61071 lcgdm-porting.patch # Remove deprecated python function: # https://savannah.cern.ch/bugs/?69232 lcgdm-python-exception.patch # Make condrestart work as expected # https://savannah.cern.ch/bugs/?76695 lcgdm-condrestart.patch # Add service dependencies to start-up scripts lcgdm-start-deps.patch # Get rid of -L/usr/lib(64) lcgdm-usr.patch # Allow moving plugins out of default library search path lcgdm-dlopen.patch # Use Debian's imake instead of bundled version lcgdm-imake.patch # Fix segfault lcgdm-segfault.patch # Support Multi-Arch aware Globus Toolkit installation lcgdm-gt-multi.patch debian/patches/lcgdm-shliblink.patch0000644000000000000000000000262612134414620014704 0ustar diff -ur lcgdm-1.8.6.orig/dicomcopy/Imakefile lcgdm-1.8.6/dicomcopy/Imakefile --- lcgdm-1.8.6.orig/dicomcopy/Imakefile 2012-12-14 14:38:56.000000000 +0100 +++ lcgdm-1.8.6/dicomcopy/Imakefile 2013-04-20 06:27:03.529496046 +0200 @@ -31,7 +31,7 @@ #if SOLARIS LIBS = -L../shlib -ldpm -llcgdm -lsocket -lnsl -ldl #else -LIBS = -L../shlib -ldpm -llcgdm $(LIBCSEC) -ldl +LIBS = -L../shlib -ldpm -llcgdm -ldl #endif SPOOL = DicomcopySpool LOGFILE = FileName($(SPOOL),log) @@ -68,7 +68,7 @@ COMM######################### DEPENDENCY LIBRARIES ############### -DEPLIB = DepLibraryTargetName(lib,dpm) +DEPLIB = DepSharedLibraryTargetName(shlib,dpm) COMM######################### RULES ############################## diff -ur lcgdm-1.8.6.orig/ns/Imakefile lcgdm-1.8.6/ns/Imakefile --- lcgdm-1.8.6.orig/ns/Imakefile 2012-12-14 14:38:56.000000000 +0100 +++ lcgdm-1.8.6/ns/Imakefile 2013-04-20 06:27:03.589496074 +0200 @@ -92,7 +92,7 @@ #if _WIN32 NSLIB = ns.lib #else -NSLIB = -L. -lns +NSLIB = #endif SPOOL = NsSpool LOGFILE = FileName($(SPOOL),log) diff -ur lcgdm-1.8.6.orig/shlib/Imakefile lcgdm-1.8.6/shlib/Imakefile --- lcgdm-1.8.6.orig/shlib/Imakefile 2012-12-14 14:38:58.000000000 +0100 +++ lcgdm-1.8.6/shlib/Imakefile 2013-04-20 06:27:03.801495922 +0200 @@ -35,7 +35,6 @@ install: $(LIB) FileName($(LIB),SharedLibraryTargetName(dpm)) export: $(EXPORTLIB)/SharedLibraryTargetName(dpm) -#else #endif #endif debian/patches/lcgdm-start-deps.patch0000644000000000000000000006233212202122423015004 0ustar diff -ur lcgdm-1.8.7.orig/dicomcopy/dicomcopyd.scripts.mysql lcgdm-1.8.7/dicomcopy/dicomcopyd.scripts.mysql --- lcgdm-1.8.7.orig/dicomcopy/dicomcopyd.scripts.mysql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/dicomcopy/dicomcopyd.scripts.mysql 2013-08-12 10:57:00.209503949 +0200 @@ -5,6 +5,18 @@ # chkconfig: 2345 93 17 # description: DPM DICOM server daemon # +### BEGIN INIT INFO +# Provides: dicomcopyd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network mysqld dpnsdaemon dpm +# Should-Stop: $network mysqld dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM DICOM server daemon +# Description: DPM DICOM server daemon +### END INIT INFO +# # $Id: dicomcopyd.scripts.mysql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dicomcopyd.scripts.mysql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dicomcopy/dicomcopyd.scripts.oracle lcgdm-1.8.7/dicomcopy/dicomcopyd.scripts.oracle --- lcgdm-1.8.7.orig/dicomcopy/dicomcopyd.scripts.oracle 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/dicomcopy/dicomcopyd.scripts.oracle 2013-08-12 10:57:00.209503949 +0200 @@ -5,6 +5,16 @@ # chkconfig: 2345 93 17 # description: DPM DICOM server daemon # +### BEGIN INIT INFO +# Provides: dicomcopyd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM DICOM server daemon +# Description: DPM DICOM server daemon +### END INIT INFO +# # $Id: dicomcopyd.scripts.oracle 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dicomcopyd.scripts.oracle,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dicomcopy/dicomcopyd.scripts.postgresql lcgdm-1.8.7/dicomcopy/dicomcopyd.scripts.postgresql --- lcgdm-1.8.7.orig/dicomcopy/dicomcopyd.scripts.postgresql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/dicomcopy/dicomcopyd.scripts.postgresql 2013-08-12 10:57:00.209503949 +0200 @@ -5,6 +5,18 @@ # chkconfig: 2345 93 17 # description: DPM DICOM server daemon # +### BEGIN INIT INFO +# Provides: dicomcopyd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network postgresql dpnsdaemon dpm +# Should-Stop: $network postgresql dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM DICOM server daemon +# Description: DPM DICOM server daemon +### END INIT INFO +# # $Id: dicomcopyd.scripts.postgresql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dicomcopyd.scripts.postgresql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dli/lfc-dli.scripts lcgdm-1.8.7/dli/lfc-dli.scripts --- lcgdm-1.8.7.orig/dli/lfc-dli.scripts 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/dli/lfc-dli.scripts 2013-08-12 10:57:00.209503949 +0200 @@ -2,9 +2,21 @@ # # lfc-dli Start/Stop lfc-dli # -# chkconfig: - 67 38 +# chkconfig: 2345 67 38 # description: LFC Data Location Interface (DLI) server daemon # +### BEGIN INIT INFO +# Provides: lfc-dli +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network lfcdaemon +# Should-Stop: $network lfcdaemon +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: LFC Data Location Interface (DLI) server daemon +# Description: LFC Data Location Interface (DLI) server daemon +### END INIT INFO +# # $Id: lfc-dli.scripts 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: lfc-dli.scripts,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dpm/dpm.scripts.mysql lcgdm-1.8.7/dpm/dpm.scripts.mysql --- lcgdm-1.8.7.orig/dpm/dpm.scripts.mysql 2013-02-21 15:19:57.000000000 +0100 +++ lcgdm-1.8.7/dpm/dpm.scripts.mysql 2013-08-12 10:59:43.149520429 +0200 @@ -2,9 +2,21 @@ # # dpm Start/Stop dpm # -# chkconfig: - 93 17 +# chkconfig: 2345 93 17 # description: DPM server daemon - +# +### BEGIN INIT INFO +# Provides: dpm +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network mysqld dpnsdaemon +# Should-Stop: $network mysqld dpnsdaemon +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM server daemon +# Description: DPM server daemon +### END INIT INFO +# # $Id: dpm.scripts.mysql 8408 2013-02-21 14:19:57Z mhellmic $ # # @(#)$RCSfile: dpm.scripts.mysql,v $ $Revision: 8408 $ $Date: 2013-02-21 15:19:57 +0100 (Thu, 21 Feb 2013) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dpm/dpm.scripts.oracle lcgdm-1.8.7/dpm/dpm.scripts.oracle --- lcgdm-1.8.7.orig/dpm/dpm.scripts.oracle 2013-02-21 15:19:57.000000000 +0100 +++ lcgdm-1.8.7/dpm/dpm.scripts.oracle 2013-08-12 11:00:34.141527003 +0200 @@ -2,9 +2,19 @@ # # dpm Start/Stop dpm # -# chkconfig: - 93 17 +# chkconfig: 2345 93 17 # description: DPM server daemon # +### BEGIN INIT INFO +# Provides: dpm +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM server daemon +# Description: DPM server daemon +### END INIT INFO +# # $Id: dpm.scripts.oracle 8408 2013-02-21 14:19:57Z mhellmic $ # # @(#)$RCSfile: dpm.scripts.oracle,v $ $Revision: 8408 $ $Date: 2013-02-21 15:19:57 +0100 (Thu, 21 Feb 2013) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dpm/dpm.scripts.postgresql lcgdm-1.8.7/dpm/dpm.scripts.postgresql --- lcgdm-1.8.7.orig/dpm/dpm.scripts.postgresql 2013-02-21 15:19:57.000000000 +0100 +++ lcgdm-1.8.7/dpm/dpm.scripts.postgresql 2013-08-12 10:58:48.285513113 +0200 @@ -2,9 +2,21 @@ # # dpm Start/Stop dpm # -# chkconfig: - 93 17 +# chkconfig: 2345 93 17 # description: DPM server daemon # +### BEGIN INIT INFO +# Provides: dpm +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network postgresql dpnsdaemon +# Should-Stop: $network postgresql dpnsdaemon +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM server daemon +# Description: DPM server daemon +### END INIT INFO +# # $Id: dpm.scripts.postgresql 8408 2013-02-21 14:19:57Z mhellmic $ # # @(#)$RCSfile: dpm.scripts.postgresql,v $ $Revision: 8408 $ $Date: 2013-02-21 15:19:57 +0100 (Thu, 21 Feb 2013) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dpmcopy/dpmcopyd.scripts.mysql lcgdm-1.8.7/dpmcopy/dpmcopyd.scripts.mysql --- lcgdm-1.8.7.orig/dpmcopy/dpmcopyd.scripts.mysql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/dpmcopy/dpmcopyd.scripts.mysql 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,21 @@ # # dpmcopyd Start/Stop dpmcopyd # -# chkconfig: - 93 17 +# chkconfig: 2345 93 17 # description: DPM COPY server daemon # +### BEGIN INIT INFO +# Provides: dpmcopyd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network mysqld dpnsdaemon dpm +# Should-Stop: $network mysqld dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM COPY server daemon +# Description: DPM COPY server daemon +### END INIT INFO +# # $Id: dpmcopyd.scripts.mysql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dpmcopyd.scripts.mysql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dpmcopy/dpmcopyd.scripts.oracle lcgdm-1.8.7/dpmcopy/dpmcopyd.scripts.oracle --- lcgdm-1.8.7.orig/dpmcopy/dpmcopyd.scripts.oracle 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/dpmcopy/dpmcopyd.scripts.oracle 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,19 @@ # # dpmcopyd Start/Stop dpmcopyd # -# chkconfig: - 93 17 +# chkconfig: 2345 93 17 # description: DPM COPY server daemon # +### BEGIN INIT INFO +# Provides: dpmcopyd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM COPY server daemon +# Description: DPM COPY server daemon +### END INIT INFO +# # $Id: dpmcopyd.scripts.oracle 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dpmcopyd.scripts.oracle,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/dpmcopy/dpmcopyd.scripts.postgresql lcgdm-1.8.7/dpmcopy/dpmcopyd.scripts.postgresql --- lcgdm-1.8.7.orig/dpmcopy/dpmcopyd.scripts.postgresql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/dpmcopy/dpmcopyd.scripts.postgresql 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,21 @@ # # dpmcopyd Start/Stop dpmcopyd # -# chkconfig: - 93 17 +# chkconfig: 2345 93 17 # description: DPM COPY server daemon # +### BEGIN INIT INFO +# Provides: dpmcopyd +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network postgresql dpnsdaemon dpm +# Should-Stop: $network postgresql dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPM COPY server daemon +# Description: DPM COPY server daemon +### END INIT INFO +# # $Id: dpmcopyd.scripts.postgresql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dpmcopyd.scripts.postgresql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/ns/dpnsdaemon.scripts.mysql lcgdm-1.8.7/ns/dpnsdaemon.scripts.mysql --- lcgdm-1.8.7.orig/ns/dpnsdaemon.scripts.mysql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/ns/dpnsdaemon.scripts.mysql 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,21 @@ # # dpnsdaemon Start/Stop dpnsdaemon # -# chkconfig: - 91 19 +# chkconfig: 2345 91 19 # description: DPNS server daemon # +### BEGIN INIT INFO +# Provides: dpnsdaemon +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network mysqld +# Should-Stop: $network mysqld +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPNS server daemon +# Description: DPNS server daemon +### END INIT INFO +# # $Id: dpnsdaemon.scripts.mysql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dpnsdaemon.scripts.mysql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/ns/dpnsdaemon.scripts.oracle lcgdm-1.8.7/ns/dpnsdaemon.scripts.oracle --- lcgdm-1.8.7.orig/ns/dpnsdaemon.scripts.oracle 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/ns/dpnsdaemon.scripts.oracle 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,19 @@ # # dpnsdaemon Start/Stop dpnsdaemon # -# chkconfig: - 91 19 +# chkconfig: 2345 91 19 # description: DPNS server daemon # +### BEGIN INIT INFO +# Provides: dpnsdaemon +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPNS server daemon +# Description: DPNS server daemon +### END INIT INFO +# # $Id: dpnsdaemon.scripts.oracle 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dpnsdaemon.scripts.oracle,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/ns/dpnsdaemon.scripts.postgresql lcgdm-1.8.7/ns/dpnsdaemon.scripts.postgresql --- lcgdm-1.8.7.orig/ns/dpnsdaemon.scripts.postgresql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/ns/dpnsdaemon.scripts.postgresql 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,21 @@ # # dpnsdaemon Start/Stop dpnsdaemon # -# chkconfig: - 91 19 +# chkconfig: 2345 91 19 # description: DPNS server daemon # +### BEGIN INIT INFO +# Provides: dpnsdaemon +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network postgresql +# Should-Stop: $network postgresql +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: DPNS server daemon +# Description: DPNS server daemon +### END INIT INFO +# # $Id: dpnsdaemon.scripts.postgresql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: dpnsdaemon.scripts.postgresql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/ns/lfcdaemon.scripts.mysql lcgdm-1.8.7/ns/lfcdaemon.scripts.mysql --- lcgdm-1.8.7.orig/ns/lfcdaemon.scripts.mysql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/ns/lfcdaemon.scripts.mysql 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,21 @@ # # lfcdaemon Start/Stop lfcdaemon # -# chkconfig: - 66 39 +# chkconfig: 2345 66 39 # description: LFC server daemon # +### BEGIN INIT INFO +# Provides: lfcdaemon +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network mysqld +# Should-Stop: $network mysqld +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: LFC server daemon +# Description: LFC server daemon +### END INIT INFO +# # $Id: lfcdaemon.scripts.mysql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: lfcdaemon.scripts.mysql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/ns/lfcdaemon.scripts.oracle lcgdm-1.8.7/ns/lfcdaemon.scripts.oracle --- lcgdm-1.8.7.orig/ns/lfcdaemon.scripts.oracle 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/ns/lfcdaemon.scripts.oracle 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,19 @@ # # lfcdaemon Start/Stop lfcdaemon # -# chkconfig: - 66 39 +# chkconfig: 2345 66 39 # description: LFC server daemon # +### BEGIN INIT INFO +# Provides: lfcdaemon +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: LFC server daemon +# Description: LFC server daemon +### END INIT INFO +# # $Id: lfcdaemon.scripts.oracle 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: lfcdaemon.scripts.oracle,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/ns/lfcdaemon.scripts.postgresql lcgdm-1.8.7/ns/lfcdaemon.scripts.postgresql --- lcgdm-1.8.7.orig/ns/lfcdaemon.scripts.postgresql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/ns/lfcdaemon.scripts.postgresql 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,21 @@ # # lfcdaemon Start/Stop lfcdaemon # -# chkconfig: - 66 39 +# chkconfig: 2345 66 39 # description: LFC server daemon # +### BEGIN INIT INFO +# Provides: lfcdaemon +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network postgresql +# Should-Stop: $network postgresql +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: LFC server daemon +# Description: LFC server daemon +### END INIT INFO +# # $Id: lfcdaemon.scripts.postgresql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: lfcdaemon.scripts.postgresql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/rfio/rfiod.scripts lcgdm-1.8.7/rfio/rfiod.scripts --- lcgdm-1.8.7.orig/rfio/rfiod.scripts 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/rfio/rfiod.scripts 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,21 @@ # # rfiod Start/Stop rfiod. # -# chkconfig: - 92 18 +# chkconfig: 2345 92 18 # description: RFIO server daemon # +### BEGIN INIT INFO +# Provides: rfiod +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network dpnsdaemon dpm +# Should-Stop: $network dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: RFIO server daemon +# Description: RFIO server daemon +### END INIT INFO +# # $Id: rfiod.scripts 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: rfiod.scripts,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv1/srmv1.scripts.mysql lcgdm-1.8.7/srmv1/srmv1.scripts.mysql --- lcgdm-1.8.7.orig/srmv1/srmv1.scripts.mysql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv1/srmv1.scripts.mysql 2013-08-12 10:57:00.213503729 +0200 @@ -2,9 +2,21 @@ # # srmv1 Start/Stop srmv1 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV1 server daemon # +### BEGIN INIT INFO +# Provides: srmv1 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network mysqld dpnsdaemon dpm +# Should-Stop: $network mysqld dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV1 server daemon +# Description: SRMV1 server daemon +### END INIT INFO +# # $Id: srmv1.scripts.mysql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv1.scripts.mysql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv1/srmv1.scripts.oracle lcgdm-1.8.7/srmv1/srmv1.scripts.oracle --- lcgdm-1.8.7.orig/srmv1/srmv1.scripts.oracle 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv1/srmv1.scripts.oracle 2013-08-12 10:57:00.217503465 +0200 @@ -2,9 +2,19 @@ # # srmv1 Start/Stop srmv1 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV1 server daemon # +### BEGIN INIT INFO +# Provides: srmv1 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV1 server daemon +# Description: SRMV1 server daemon +### END INIT INFO +# # $Id: srmv1.scripts.oracle 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv1.scripts.oracle,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv1/srmv1.scripts.postgresql lcgdm-1.8.7/srmv1/srmv1.scripts.postgresql --- lcgdm-1.8.7.orig/srmv1/srmv1.scripts.postgresql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv1/srmv1.scripts.postgresql 2013-08-12 10:57:00.217503465 +0200 @@ -2,9 +2,21 @@ # # srmv1 Start/Stop srmv1 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV1 server daemon # +### BEGIN INIT INFO +# Provides: srmv1 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network postgresql dpnsdaemon dpm +# Should-Stop: $network postgresql dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV1 server daemon +# Description: SRMV1 server daemon +### END INIT INFO +# # $Id: srmv1.scripts.postgresql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv1.scripts.postgresql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv2/srmv2.scripts.mysql lcgdm-1.8.7/srmv2/srmv2.scripts.mysql --- lcgdm-1.8.7.orig/srmv2/srmv2.scripts.mysql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv2/srmv2.scripts.mysql 2013-08-12 10:57:00.217503465 +0200 @@ -2,9 +2,21 @@ # # srmv2 Start/Stop srmv2 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV2 server daemon # +### BEGIN INIT INFO +# Provides: srmv2 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network mysqld dpnsdaemon dpm +# Should-Stop: $network mysqld dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV2 server daemon +# Description: SRMV2 server daemon +### END INIT INFO +# # $Id: srmv2.scripts.mysql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv2.scripts.mysql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv2/srmv2.scripts.oracle lcgdm-1.8.7/srmv2/srmv2.scripts.oracle --- lcgdm-1.8.7.orig/srmv2/srmv2.scripts.oracle 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv2/srmv2.scripts.oracle 2013-08-12 10:57:00.217503465 +0200 @@ -2,9 +2,19 @@ # # srmv2 Start/Stop srmv2 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV2 server daemon # +### BEGIN INIT INFO +# Provides: srmv2 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV2 server daemon +# Description: SRMV2 server daemon +### END INIT INFO +# # $Id: srmv2.scripts.oracle 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv2.scripts.oracle,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv2/srmv2.scripts.postgresql lcgdm-1.8.7/srmv2/srmv2.scripts.postgresql --- lcgdm-1.8.7.orig/srmv2/srmv2.scripts.postgresql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv2/srmv2.scripts.postgresql 2013-08-12 10:57:00.217503465 +0200 @@ -2,9 +2,21 @@ # # srmv2 Start/Stop srmv2 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV2 server daemon # +### BEGIN INIT INFO +# Provides: srmv2 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network postgresql dpnsdaemon dpm +# Should-Stop: $network postgresql dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV2 server daemon +# Description: SRMV2 server daemon +### END INIT INFO +# # $Id: srmv2.scripts.postgresql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv2.scripts.postgresql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv2.2/srmv2.2.scripts.mysql lcgdm-1.8.7/srmv2.2/srmv2.2.scripts.mysql --- lcgdm-1.8.7.orig/srmv2.2/srmv2.2.scripts.mysql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv2.2/srmv2.2.scripts.mysql 2013-08-12 10:57:00.217503465 +0200 @@ -2,9 +2,21 @@ # # srmv2.2 Start/Stop srmv2.2 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV2.2 server daemon # +### BEGIN INIT INFO +# Provides: srmv2.2 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network mysqld dpnsdaemon dpm +# Should-Stop: $network mysqld dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV2.2 server daemon +# Description: SRMV2.2 server daemon +### END INIT INFO +# # $Id: srmv2.2.scripts.mysql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv2.2.scripts.mysql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv2.2/srmv2.2.scripts.oracle lcgdm-1.8.7/srmv2.2/srmv2.2.scripts.oracle --- lcgdm-1.8.7.orig/srmv2.2/srmv2.2.scripts.oracle 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv2.2/srmv2.2.scripts.oracle 2013-08-12 10:57:00.217503465 +0200 @@ -2,9 +2,19 @@ # # srmv2.2 Start/Stop srmv2.2 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV2.2 server daemon # +### BEGIN INIT INFO +# Provides: srmv2.2 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV2.2 server daemon +# Description: SRMV2.2 server daemon +### END INIT INFO +# # $Id: srmv2.2.scripts.oracle 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv2.2.scripts.oracle,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand diff -ur lcgdm-1.8.7.orig/srmv2.2/srmv2.2.scripts.postgresql lcgdm-1.8.7/srmv2.2/srmv2.2.scripts.postgresql --- lcgdm-1.8.7.orig/srmv2.2/srmv2.2.scripts.postgresql 2012-06-06 16:39:34.000000000 +0200 +++ lcgdm-1.8.7/srmv2.2/srmv2.2.scripts.postgresql 2013-08-12 10:57:00.217503465 +0200 @@ -2,9 +2,21 @@ # # srmv2.2 Start/Stop srmv2.2 # -# chkconfig: - 94 16 +# chkconfig: 2345 94 16 # description: SRMV2.2 server daemon # +### BEGIN INIT INFO +# Provides: srmv2.2 +# Required-Start: $remote_fs $syslog +# Required-Stop: $remote_fs $syslog +# Should-Start: $network postgresql dpnsdaemon dpm +# Should-Stop: $network postgresql dpnsdaemon dpm +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: SRMV2.2 server daemon +# Description: SRMV2.2 server daemon +### END INIT INFO +# # $Id: srmv2.2.scripts.postgresql 6384 2012-06-06 14:39:34Z rocha $ # # @(#)$RCSfile: srmv2.2.scripts.postgresql,v $ $Revision: 6384 $ $Date: 2012-06-06 16:39:34 +0200 (Wed, 06 Jun 2012) $ CERN/IT/ADC/CA Jean-Damien Durand debian/patches/lcgdm-python-exception.patch0000644000000000000000000000073411411132160016231 0ustar diff -ur lcgdm-1.7.4.7.orig/ns/Cns-python_typemaps.i lcgdm-1.7.4.7/ns/Cns-python_typemaps.i --- lcgdm-1.7.4.7.orig/ns/Cns-python_typemaps.i 2010-06-06 13:49:38.000000000 +0200 +++ lcgdm-1.7.4.7/ns/Cns-python_typemaps.i 2010-06-25 15:31:32.171086114 +0200 @@ -54,7 +54,7 @@ break; case EACCES: case EPERM: - exc = PyExc_StandardError; + exc = PyExc_Exception; break; case ENOENT: case EEXIST: debian/patches/lcgdm-porting.patch0000644000000000000000000002263412134670054014415 0ustar diff -ur lcgdm-1.8.6.orig/common/solveln.c lcgdm-1.8.6/common/solveln.c --- lcgdm-1.8.6.orig/common/solveln.c 2012-12-14 14:38:58.000000000 +0100 +++ lcgdm-1.8.6/common/solveln.c 2013-04-21 06:31:59.905756501 +0200 @@ -19,6 +19,9 @@ #include #endif #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #include #if defined(_WIN32) #include diff -ur lcgdm-1.8.6.orig/config/linux.cf lcgdm-1.8.6/config/linux.cf --- lcgdm-1.8.6.orig/config/linux.cf 2012-12-14 14:38:58.000000000 +0100 +++ lcgdm-1.8.6/config/linux.cf 2013-04-21 06:31:59.905756501 +0200 @@ -10,7 +10,7 @@ GSOAP_PLATFORM = linux #define linux 1 #define HasRanlib YES -CC += -fPIC -D_LARGEFILE64_SOURCE +CC += -fPIC -D_LARGEFILE64_SOURCE -Dlinux MTCCFLAGS = -pthread -DCTHREAD_LINUX -D_THREAD_SAFE -D_REENTRANT MTLDLIBS = MTLDFLAGS = -pthread diff -ur lcgdm-1.8.6.orig/dpm/dpm.i lcgdm-1.8.6/dpm/dpm.i --- lcgdm-1.8.6.orig/dpm/dpm.i 2012-12-14 14:38:45.000000000 +0100 +++ lcgdm-1.8.6/dpm/dpm.i 2013-04-21 06:31:59.905756501 +0200 @@ -1530,7 +1530,6 @@ %include "dpm_struct.h" struct dirent { long d_ino; - long d_off; unsigned short d_reclen; char d_name[256]; }; diff -ur lcgdm-1.8.6.orig/ns/Cns.i lcgdm-1.8.6/ns/Cns.i --- lcgdm-1.8.6.orig/ns/Cns.i 2012-12-14 14:38:56.000000000 +0100 +++ lcgdm-1.8.6/ns/Cns.i 2013-04-21 06:31:59.905756501 +0200 @@ -192,7 +192,6 @@ struct dirent { long d_ino; - long d_off; unsigned short d_reclen; char d_name[256]; }; diff -ur lcgdm-1.8.6.orig/ns/Cns_readdir.c lcgdm-1.8.6/ns/Cns_readdir.c --- lcgdm-1.8.6.orig/ns/Cns_readdir.c 2012-12-14 14:38:56.000000000 +0100 +++ lcgdm-1.8.6/ns/Cns_readdir.c 2013-04-21 06:31:59.905756501 +0200 @@ -120,7 +120,7 @@ #endif while (nbentries--) { dp->d_ino = 0; -#if defined(linux) || defined(sgi) || defined(SOLARIS) +#if defined(__linux__) || defined(sgi) || defined(SOLARIS) dp->d_off = 0; #endif #if defined(_AIX) @@ -131,7 +131,7 @@ #endif unmarshall_STRING (rbp, dp->d_name); n = strlen (dp->d_name); -#if defined(_AIX) || (defined(__alpha) && defined(__osf__)) || defined(hpux) || defined(__APPLE__) +#if defined(_AIX) || (defined(__alpha) && defined(__osf__)) || defined(hpux) || defined(__APPLE__) || defined(__GNU__) || defined(__FreeBSD_kernel__) dp->d_namlen = n; #endif dp->d_reclen = ((direntsz + n + 8) / 8) * 8; @@ -174,10 +174,15 @@ namlen = strlen (dp64->d_name); dp32 = (struct dirent *) dp64; dp32->d_ino = dp64->d_ino; +#if defined(SOLARIS) || defined(__linux__) dp32->d_off = dp64->d_off; +#endif #if defined(linux) dp32->d_type = dp64->d_type; #endif +#if defined(__GNU__) || defined(__FreeBSD_kernel__) + dp32->d_namlen = dp64->d_namlen; +#endif strcpy (dp32->d_name, dp64->d_name); dp32->d_reclen = ((&dp32->d_name[0] - (char *) dp32 + namlen + 8) / 8) * 8; return (dp32); diff -ur lcgdm-1.8.6.orig/ns/lfc.i lcgdm-1.8.6/ns/lfc.i --- lcgdm-1.8.6.orig/ns/lfc.i 2012-12-14 14:38:56.000000000 +0100 +++ lcgdm-1.8.6/ns/lfc.i 2013-04-21 06:31:59.905756501 +0200 @@ -1399,7 +1399,6 @@ %include "Cns_struct.h" struct dirent { long d_ino; - long d_off; unsigned short d_reclen; char d_name[256]; }; diff -ur lcgdm-1.8.6.orig/ns/send2nsd.c lcgdm-1.8.6/ns/send2nsd.c --- lcgdm-1.8.6.orig/ns/send2nsd.c 2012-12-14 14:38:56.000000000 +0100 +++ lcgdm-1.8.6/ns/send2nsd.c 2013-04-21 06:35:52.485757111 +0200 @@ -359,7 +359,7 @@ serrno = SECOMERR; return (-1); } - #if defined (linux) + #if defined (__linux__) || defined(__GNU__) (void) setsockopt (s, IPPROTO_TCP, TCP_QUICKACK, (char*)&yes, sizeof(int)); #endif p = repbuf; diff -ur lcgdm-1.8.6.orig/rfio/popen.c lcgdm-1.8.6/rfio/popen.c --- lcgdm-1.8.6.orig/rfio/popen.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/popen.c 2013-04-21 06:31:59.905756501 +0200 @@ -23,6 +23,9 @@ #else #include /* For MAXHOSTNAMELEN definition */ #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #include #include #include diff -ur lcgdm-1.8.6.orig/rfio/readdir.c lcgdm-1.8.6/rfio/readdir.c --- lcgdm-1.8.6.orig/rfio/readdir.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/readdir.c 2013-04-21 06:31:59.905756501 +0200 @@ -133,7 +133,7 @@ dirp->offset++; dirp->dp.dd_loc = dirp->offset; de->d_reclen = sizeof(struct dirent) + namlen; -#if !defined(SOLARIS) && !defined(sgi) && !defined(linux) +#if !defined(SOLARIS) && !defined(sgi) && !defined(__linux__) de->d_namlen = namlen; #endif #ifdef SOLARIS @@ -165,18 +165,27 @@ struct dirent *de32; ino_t ino; short namlen; +#if defined(SOLARIS) || defined(__linux__) off_t offset; +#endif if ((de32 = rfio_readdir(dirp)) == NULL) return(NULL); ino = de32->d_ino; +#if defined(SOLARIS) || defined(__linux__) offset = de32->d_off; +#endif namlen = strlen(de32->d_name); de = (struct dirent64 *) de32; memmove (de->d_name, de32->d_name, namlen + 1); de->d_ino = ino; +#if defined(SOLARIS) || defined(__linux__) de->d_off = offset; +#endif +#if defined(__GNU__) || defined(__FreeBSD_kernel__) + de->d_namlen = namlen; +#endif de->d_reclen = ((&de->d_name[0] - (char *) de + namlen + 8) / 8) * 8; return(de); } diff -ur lcgdm-1.8.6.orig/rfio/rename.c lcgdm-1.8.6/rfio/rename.c --- lcgdm-1.8.6.orig/rfio/rename.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rename.c 2013-04-21 06:31:59.905756501 +0200 @@ -19,6 +19,9 @@ #else #include #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #include "rfio.h" /* Remote File I/O general definitions */ /* diff -ur lcgdm-1.8.6.orig/rfio/rfio_call64.c lcgdm-1.8.6/rfio/rfio_call64.c --- lcgdm-1.8.6.orig/rfio/rfio_call64.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfio_call64.c 2013-04-21 06:31:59.909756508 +0200 @@ -24,6 +24,9 @@ #include /* System logger */ #include #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #if defined(_AIX) || defined(hpux) || defined(SOLARIS) || defined(linux) #include #endif diff -ur lcgdm-1.8.6.orig/rfio/rfio_callhandlers.c lcgdm-1.8.6/rfio/rfio_callhandlers.c --- lcgdm-1.8.6.orig/rfio/rfio_callhandlers.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfio_callhandlers.c 2013-04-21 06:31:59.909756508 +0200 @@ -23,6 +23,9 @@ #include #include /* For MAXHOSTNAMELEN definition */ #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #include #if defined(_WIN32) #define R_OK 4 diff -ur lcgdm-1.8.6.orig/rfio/rfio_calls.c lcgdm-1.8.6/rfio/rfio_calls.c --- lcgdm-1.8.6.orig/rfio/rfio_calls.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfio_calls.c 2013-04-21 06:31:59.909756508 +0200 @@ -24,6 +24,9 @@ #include /* System logger */ #include #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #if defined(_AIX) || defined(hpux) || defined(SOLARIS) || defined(linux) #include #endif diff -ur lcgdm-1.8.6.orig/rfio/rfio_fcalls.c lcgdm-1.8.6/rfio/rfio_fcalls.c --- lcgdm-1.8.6.orig/rfio/rfio_fcalls.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfio_fcalls.c 2013-04-21 06:31:59.909756508 +0200 @@ -27,6 +27,9 @@ #else #include /* System parameters */ #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #include /* diff -ur lcgdm-1.8.6.orig/rfio/rfio_rdirfdt.c lcgdm-1.8.6/rfio/rfio_rdirfdt.c --- lcgdm-1.8.6.orig/rfio/rfio_rdirfdt.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfio_rdirfdt.c 2013-04-21 06:31:59.909756508 +0200 @@ -15,6 +15,9 @@ #else #include /* For MAXHOSTNAMELEN definition */ #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #include #include "rfio.h" #include "rfio_rdirfdt.h" diff -ur lcgdm-1.8.6.orig/rfio/rfio_rfilefdt.c lcgdm-1.8.6/rfio/rfio_rfilefdt.c --- lcgdm-1.8.6.orig/rfio/rfio_rfilefdt.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfio_rfilefdt.c 2013-04-21 06:31:59.913756501 +0200 @@ -15,6 +15,9 @@ #else #include /* For MAXHOSTNAMELEN definition */ #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #include #include "rfio.h" #include "rfio_rfilefdt.h" diff -ur lcgdm-1.8.6.orig/rfio/rfio_serv.c lcgdm-1.8.6/rfio/rfio_serv.c --- lcgdm-1.8.6.orig/rfio/rfio_serv.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/rfio_serv.c 2013-04-21 06:31:59.913756501 +0200 @@ -37,6 +37,9 @@ #include /* time definitions */ #include /* System parameters */ #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #ifndef _WIN32 #include /* wait, wait3, wait4 (BSD) */ #endif diff -ur lcgdm-1.8.6.orig/rfio/xyopen.c lcgdm-1.8.6/rfio/xyopen.c --- lcgdm-1.8.6.orig/rfio/xyopen.c 2012-12-14 14:38:49.000000000 +0100 +++ lcgdm-1.8.6/rfio/xyopen.c 2013-04-21 06:31:59.913756501 +0200 @@ -36,6 +36,9 @@ #else #include #endif +#ifndef MAXHOSTNAMELEN +#define MAXHOSTNAMELEN 64 +#endif #include #include #include