--- drbdlinks-1.09.orig/debian/dirs +++ drbdlinks-1.09/debian/dirs @@ -0,0 +1,4 @@ +etc/init.d +etc/ha.d/resource.d +usr/sbin +usr/share/man/man8 --- drbdlinks-1.09.orig/debian/control +++ drbdlinks-1.09/debian/control @@ -0,0 +1,20 @@ +Source: drbdlinks +Section: admin +Priority: optional +Maintainer: Cyril Bouthors +Build-Depends: debhelper (>= 5.0.37.2) +Standards-Version: 3.7.2 + +Package: drbdlinks +Architecture: all +Depends: python, drbd-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. --- drbdlinks-1.09.orig/debian/docs +++ drbdlinks-1.09/debian/docs @@ -0,0 +1,2 @@ +README +WHATSNEW --- drbdlinks-1.09.orig/debian/drbdlinksclean.init +++ drbdlinks-1.09/debian/drbdlinksclean.init @@ -0,0 +1,69 @@ +#! /bin/sh +### BEGIN INIT INFO +# Provides: drbdlinksclean +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Cleans links made by drbdlinks +# 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 +# +# Author: Cyril Bouthors . +# +# +# This script has been converted from the RedHat version provided by +# upstream to Debian + +set -e + +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin +NAME=drbdlinks +SCRIPTNAME=/etc/init.d/$NAME + +if [ ! -x /usr/sbin/drbdlinks ] +then + echo "No /usr/sbin/drbdlinks file. Aborting." >&2 + exit 0 +fi + +if [ ! -f /etc/drbd.conf ] +then + echo "No /etc/drbd.conf file. Aborting." >&2 + exit 0 +fi + + +if ! grep -q '^mountpoint(.*)' /etc/drbdlinks.conf +then + echo 'No mountpoint found in /etc/drbdlinks.conf' >&2 + exit 0 +fi + +case "$1" in + + start) + echo -n 'Cleaning up drbdlinks links' + /usr/sbin/drbdlinks stop + echo "." + ;; + + stop) + echo -n 'Cleaning up drbdlinks links' + /usr/sbin/drbdlinks stop + echo "." + ;; + + restart|force-reload) + $0 start + ;; + + *) + echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 --- drbdlinks-1.09.orig/debian/copyright +++ drbdlinks-1.09/debian/copyright @@ -0,0 +1,16 @@ +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 Holder: Sean Reifschneider + +License: + +Drbd is free software; you can redistribute them and/or modify them +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2 of the License, or (at your +option) any later version. + +On Debian systems, the complete text of the GNU General Public License +can be found in /usr/share/common-licenses/GPL-2 file. --- drbdlinks-1.09.orig/debian/compat +++ drbdlinks-1.09/debian/compat @@ -0,0 +1 @@ +4 --- drbdlinks-1.09.orig/debian/rules +++ drbdlinks-1.09/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +configure: configure-stamp +configure-stamp: + dh_testdir + touch configure-stamp + +build: 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 + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs +# dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime + dh_installinit --name=drbdlinksclean +# dh_installcron +# dh_installinfo + dh_installman drbdlinks.8 + dh_link +# dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- drbdlinks-1.09.orig/debian/changelog +++ drbdlinks-1.09/debian/changelog @@ -0,0 +1,57 @@ +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