diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..b2bab224f --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +lvm2 (0.95.02cvs20020220) unstable; urgency=low + + * Initial Release. + + -- Andres Salomon Wed, 20 Feb 2002 03:17:25 -0500 + diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..22eb4e052 --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: lvm2 +Section: devel +Priority: optional +Maintainer: Andres Salomon +Build-Depends: debhelper (>> 3.0.0), libdevmapper-dev, libreadline4-dev +Standards-Version: 3.5.2 + +Package: lvm2 +Architecture: any +Depends: libdevmapper +Replaces: lvm10, lvm-common +Provides: lvm-binaries +Description: The Linux Logical Volume Manager + This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM + supports enterprise level volume management of disk and disk subsystems + by grouping arbitrary disks into volume groups. The total capacity of + volume groups can be allocated to logical volumes, which are accessed as + regular block devices. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..d2380af19 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Andres Salomon on +Wed, 20 Feb 2002 03:17:25 -0500. + +It was downloaded from http://www.sistina.com/products_lvm.htm + +Upstream Author(s): LVM Development Team + +Copyright (c) 2001-2002 LVM Development Team + +device-mapper 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; either version 2 of the License, or +(at your option) any later version. + +device-mapper 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 program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA + +On Debian systems, the full text of the GPL can be found in +/usr/share/common-licenses/GPL diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 000000000..c7993967b --- /dev/null +++ b/debian/dirs @@ -0,0 +1,3 @@ +usr/share/man/man5 +usr/share/man/man8 +sbin diff --git a/debian/docs b/debian/docs new file mode 100644 index 000000000..178314cc2 --- /dev/null +++ b/debian/docs @@ -0,0 +1,8 @@ +BUGS +INTRO +README +TODO +VERSION +doc/example.conf +doc/pvmove_outline.txt +doc/testing.txt diff --git a/debian/init.d b/debian/init.d new file mode 100644 index 000000000..2aedb2cda --- /dev/null +++ b/debian/init.d @@ -0,0 +1,45 @@ +#! /bin/sh +# +# lvm2 This script handles LVM2 initialization/shutdown. +# +# Written by Andres Salomon . +# + +PATH=/sbin:/bin:/usr/sbin:/usr/bin +NAME=lvm2 +DESC=LVM + +test -f $DAEMON || exit 0 + +set -e + +case "$1" in + start) + echo -n "Initializing $DESC: " + modprobe dm-mod >/dev/null 2>&1 + vgchange -a y 2>/dev/null + # TODO: attempt to mount all lvm devices; mount -a? + echo "$NAME." + ;; + stop) + echo -n "Shutting down $DESC: " + # TODO: attempt to umount all lvm devices; umount -a? + vgchange -a n 2>/dev/null + rmmod dm-mod >/dev/null 2>&1 + echo "$NAME." + ;; + restart|force-reload) + echo -n "Restarting $DESC: " + stop + sleep 1 + start + echo "$NAME." + ;; + *) + N=/etc/init.d/$NAME + echo "Usage: $N {start|stop|restart|force-reload}" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 000000000..3f62600e6 --- /dev/null +++ b/debian/manpages @@ -0,0 +1,26 @@ +debian/lvm2/usr/share/man/man5/lvm.conf.5 +debian/lvm2/usr/share/man/man8/lvchange.8 +debian/lvm2/usr/share/man/man8/lvcreate.8 +debian/lvm2/usr/share/man/man8/lvdisplay.8 +debian/lvm2/usr/share/man/man8/lvextend.8 +debian/lvm2/usr/share/man/man8/lvm.8 +debian/lvm2/usr/share/man/man8/lvmchange.8 +debian/lvm2/usr/share/man/man8/lvreduce.8 +debian/lvm2/usr/share/man/man8/lvremove.8 +debian/lvm2/usr/share/man/man8/lvrename.8 +debian/lvm2/usr/share/man/man8/lvscan.8 +debian/lvm2/usr/share/man/man8/pvchange.8 +debian/lvm2/usr/share/man/man8/pvcreate.8 +debian/lvm2/usr/share/man/man8/pvdisplay.8 +debian/lvm2/usr/share/man/man8/pvscan.8 +debian/lvm2/usr/share/man/man8/vgcfgbackup.8 +debian/lvm2/usr/share/man/man8/vgchange.8 +debian/lvm2/usr/share/man/man8/vgck.8 +debian/lvm2/usr/share/man/man8/vgcreate.8 +debian/lvm2/usr/share/man/man8/vgdisplay.8 +debian/lvm2/usr/share/man/man8/vgextend.8 +debian/lvm2/usr/share/man/man8/vgmerge.8 +debian/lvm2/usr/share/man/man8/vgreduce.8 +debian/lvm2/usr/share/man/man8/vgremove.8 +debian/lvm2/usr/share/man/man8/vgrename.8 +debian/lvm2/usr/share/man/man8/vgscan.8 diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 000000000..d8c379171 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,49 @@ +#! /bin/sh +# postinst script for lvm2 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) +# update-rc.d lvm2 start 25 S . start 50 0 6 . >/dev/null +# /etc/init.d/lvm2 start + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 000000000..35114ee89 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,38 @@ +#! /bin/sh +# postrm script for lvm2 +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge|remove) + # update-rc.d lvm2 remove >/dev/null + ;; + upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..bde485da1 --- /dev/null +++ b/debian/rules @@ -0,0 +1,119 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 by Joey Hess. +# +# This version is for a hypothetical package that builds an +# architecture-dependant package, as well as an architecture-independent +# package. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=3 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) + CFLAGS += -g +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/ --mandir=\$${prefix}/usr/share/man --infodir=\$${prefix}/usr/share/info + + touch configure-stamp + +build-arch: configure-stamp build-arch-stamp +build-arch-stamp: + dh_testdir + + # Add here command to compile/build the package. + $(MAKE) + + touch build-arch-stamp + +build-indep: configure-stamp build-indep-stamp +build-indep-stamp: + dh_testdir + + # Add here command to compile/build the arch indep package. + # It's ok not to do anything here, if you don't need to build + # anything for this package. + #/usr/bin/docbook-to-man debian/lvm2.sgml > lvm2.1 + + touch build-indep-stamp + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + -test -r /usr/share/misc/config.sub && \ + cp -f /usr/share/misc/config.sub config.sub + -test -r /usr/share/misc/config.guess && \ + cp -f /usr/share/misc/config.guess config.guess + + + dh_clean + +install: DH_OPTIONS= +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/lvm2. + $(MAKE) install prefix=$(CURDIR)/debian/lvm2 + + +# Build architecture-independent files here. +# Pass -i to all debhelper commands in this target to reduce clutter. +binary-indep: build install +# nada. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + +# dh_installdebconf + dh_installdocs + dh_installexamples +# dh_installlogrotate -a +# dh_installemacsen -a +# dh_installpam -a +# dh_installmime -a + dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented -a + dh_installchangelogs + dh_strip + dh_link + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb +# dh_perl -a + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure