debian/0000755000000000000000000000000012042344155007166 5ustar debian/copyright0000644000000000000000000000212411356275575011140 0ustar This package was debianized by Cyril Bouthors on Sat, 9 Jul 2005 21:46:05 +0300. It was downloaded from http://www.tummy.com/Community/software/drbdlinks/ Copyright (C) 2004 Sean Reifschneider License: Copyright (C) 2004 Sean Reifschneider This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000160112042300136010556 0ustar Source: drbdlinks Section: admin Priority: optional Maintainer: Thierry Randrianiriana Build-Depends: debhelper (>= 6) Standards-Version: 3.9.3 Homepage: http://www.tummy.com/Community/software/drbdlinks/ Package: drbdlinks Architecture: all Depends: python, ${misc:Depends} Suggests: drbd8-utils Description: Manages symlinks into a shared DRBD partition Manages symlinks into a DRBD partition which is shared among several machines. A simple configuration file, "/etc/drbdlinks.conf", specifies the links. This can be used to manage links for /etc/apache, /var/lib/pgsql, and other system directories that need to appear as if they are local to the system when running applications after a drbd shared partition has been mounted. . DRBD is a RAID 1 over TCP/IP solution, please have a look at the packages drbd-utils and drbd-module-source for more information. debian/rules0000755000000000000000000000173111611515304010245 0ustar #!/usr/bin/make -f # -*- makefile -*- #export DH_VERBOSE=1 configure: configure-stamp configure-stamp: dh_testdir touch configure-stamp build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs cp -p drbdlinks.conf $(CURDIR)/debian/drbdlinks/etc cp -p drbdlinks $(CURDIR)/debian/drbdlinks/etc/ha.d/resource.d cp -p drbdlinks $(CURDIR)/debian/drbdlinks/usr/sbin binary-arch: build install binary-indep: build install dh_testdir dh_testroot dh_installchangelogs dh_installdocs # dh_install dh_installinit --name=drbdlinksclean dh_installman drbdlinks.8 dh_compress dh_fixperms dh_installdeb dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/compat0000644000000000000000000000000211356300732010364 0ustar 6 debian/watch0000644000000000000000000000013712042301532010210 0ustar version=3 ftp://ftp.tummy.com/pub/tummy/drbdlinks/drbdlinks-(\d[\d.]*)\.tar\.gz debian uupdate debian/changelog0000644000000000000000000000571612042336150011045 0ustar drbdlinks (1.22-1) unstable; urgency=low * New upstream release (Closes: #691401, #640929) * Bumped Standards-Version to 3.9.3 * Updated the drbdlinksclean init script * Fixed debian/watch -- Thierry Randrianiriana Thu, 25 Oct 2012 21:04:41 +0300 drbdlinks (1.19-1) unstable; urgency=low * New upstream release * Bumped Standards-Version to 3.9.2 -- Thierry Randrianiriana Wed, 20 Jul 2011 11:29:24 +0300 drbdlinks (1.18-1) unstable; urgency=low * New maintainer (Closes: #555204) * Acknowledge NMU (Closes: #468835) * binary-arch target exists in debian/rules (Closes: #395591) * New upstream release * Switch to dpkg-source 3.0 (quilt) format * debian/control: - bumped Standards-Version to 3.8.4 - added ${misc:Depends} in Depends - removed drbd-utils in Depends (Closes: #460969) - added drbd8-utils in Suggests - added Homepage field * cleaned debian/rules: * debian/drbdlinksclean.init: - check /etc/drbdlinks.conf instead of /etc/drbd.conf - added status target * Bumped debian/compat to 6 * Updated debian/copyright * Added debian/watch -- Thierry Randrianiriana Mon, 05 Apr 2010 08:21:27 +0300 drbdlinks (1.09-1.1) unstable; urgency=low * Non-maintainer upload. * Added LSB formatted dependency info in init.d script (closes: #468835) * Fixed man page installation * Replaced dh_python by hardcoded python dependency -- Peter Eisentraut Wed, 02 Apr 2008 01:52:18 +0200 drbdlinks (1.09-1) unstable; urgency=low * New upstream release -- Cyril Bouthors Sun, 12 Aug 2007 12:13:57 +0200 drbdlinks (1.07-1) unstable; urgency=low * New upstream release (closes: #391503). * debian/control: Updated standards-version from 3.6.2.1 to 3.7.2. * debian/rules: added binary-arch target. * debian/pycomat: added * debian/control: added Build-Depends on debhelper (>= 5.0.37.2) in order to respect python policy. -- Cyril Bouthors Tue, 10 Oct 2006 12:42:50 +0300 drbdlinks (1.04-2) unstable; urgency=low * Removed obsolete debian/drbdlinks.8 (yeah, I need coffee). -- Cyril Bouthors Tue, 19 Jul 2005 09:05:30 +0300 drbdlinks (1.04-1) unstable; urgency=low * New upstream release -- Cyril Bouthors Tue, 19 Jul 2005 08:52:47 +0300 drbdlinks (1.03-3) unstable; urgency=low * debian/control: changed Architecture from any to all * debian/control: updated description according to Anthony DeRobertis advices (closes: #318436). -- Cyril Bouthors Sun, 17 Jul 2005 23:10:23 +0300 drbdlinks (1.03-2) unstable; urgency=low * debian/drbdlinks.8: more accurate description. -- Cyril Bouthors Sun, 10 Jul 2005 11:55:18 +0300 drbdlinks (1.03-1) unstable; urgency=low * Initial release (closes: #317569). -- Cyril Bouthors Sat, 9 Jul 2005 21:46:05 +0300 debian/source/0000755000000000000000000000000011432456617010477 5ustar debian/source/format0000644000000000000000000000001411356301452011674 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000002011356271527010042 0ustar README WHATSNEW debian/dirs0000644000000000000000000000007311356271527010063 0ustar etc/init.d etc/ha.d/resource.d usr/sbin usr/share/man/man8 debian/drbdlinksclean.init0000755000000000000000000000476012042343730013042 0ustar #!/bin/sh # # drbdlinks: Cleans links made by drbdlinks. # # chkconfig: 2345 74 06 # description: Calls drbdlinks on initial system boot and shutdown to make # sure that any links set up by drbdlinks are cleaned up when # drbd is not running. # ### BEGIN INIT INFO # Provides: drbdlinksclean # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Should-Start: # Should-Stop: # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Clean up drbdlinks links on system boot or shutdown. # Description: Calls drbdlinks on initial system boot and shutdown to make # sure that any links set up by drbdlinks are cleaned up when # drbd is not running. ### END INIT INFO # # This script has been modified from the CentOS/RHEL version provided by # upstream to Debian PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin NAME=drbdlinks SCRIPTNAME=/etc/init.d/$NAME # Source function library. . /lib/lsb/init-functions FOUNDFILE=0 [ -f /etc/drbdlinks.conf ] && FOUNDFILE=1 # also clean up old /var/run location. for FILE in /var/lib/drbdlinks/configs-to-clean/* \ /var/run/drbdlinks/configs-to-clean/* do [ ! -f "$FILE" ] && continue FOUNDFILE=1 break done if [ "$FOUNDFILE" != 1 ] then echo "No /etc/drbdlinks.conf file. Aborting." exit 1 fi case "$1" in start) "$0" stop exit "$?" ;; stop) echo -n 'Cleaning up drbdlinks.conf links...' # main drbdlinks.conf file RET=0 if [ -f /etc/drbdlinks.conf ] then if grep -q '^mountpoint(' /etc/drbdlinks.conf then /usr/sbin/drbdlinks stop RET=$? else echo "No mountpoint found in /etc/drbdlinks.conf, skipping." | \ logger -t drbdlinksclean echo "No mountpoint found in /etc/drbdlinks.conf, skipping." fi fi # clean up any supplemental config files for FILE in /var/lib/drbdlinks/configs-to-clean/* \ /var/run/drbdlinks/configs-to-clean/* do [ ! -f "$FILE" ] && continue echo -n "Cleaning up '${FILE##*/}' links..." echo "Cleaning up '${FILE##*/}' links..." | \ logger -t drbdlinksclean /usr/sbin/drbdlinks --config-file "$FILE" stop || RET=$? done if [ "$RET" -eq 0 ] then log_success_msg OK else log_failure_msg stop-failure exit 1 fi ;; restart|force-reload) "$0" start ;; status) exec /usr/sbin/drbdlinks status ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2 exit 1 ;; esac exit 0