summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Callen <jcallen@gentoo.org>2016-05-22 14:15:08 -0400
committerJonathan Callen <jcallen@gentoo.org>2016-05-22 14:17:58 -0400
commit8f03ce74bb3b186b57b9caacc0be5d58fb71086e (patch)
tree8a15a260d8675fbb0663178bd7fcafed1ae06ae5 /dev-util/schroot
parentdev-util/schroot: New version (diff)
downloadgentoo-8f03ce74bb3b186b57b9caacc0be5d58fb71086e.tar.gz
gentoo-8f03ce74bb3b186b57b9caacc0be5d58fb71086e.tar.bz2
gentoo-8f03ce74bb3b186b57b9caacc0be5d58fb71086e.zip
dev-util/schroot: Remove old
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'dev-util/schroot')
-rw-r--r--dev-util/schroot/Manifest3
-rw-r--r--dev-util/schroot/files/schroot-1.4.7-tests.patch81
-rw-r--r--dev-util/schroot/files/schroot-1.6.3-tests.patch86
-rw-r--r--dev-util/schroot/schroot-1.6.3.ebuild131
-rw-r--r--dev-util/schroot/schroot-1.6.5-r1.ebuild139
-rw-r--r--dev-util/schroot/schroot-1.6.5.ebuild139
6 files changed, 0 insertions, 579 deletions
diff --git a/dev-util/schroot/Manifest b/dev-util/schroot/Manifest
index c13952377ff9..d843782902f8 100644
--- a/dev-util/schroot/Manifest
+++ b/dev-util/schroot/Manifest
@@ -1,6 +1,3 @@
DIST schroot_1.6.10-1.debian.tar.xz 27108 SHA256 d93a7acc4b6c06a024b6bb0bfc1867a144193aadbb09cab454373c2983120cd9 SHA512 2b989054485f397c7de4f9d5e625f2bb2d4738ecb087ff83903a247696a2c98dea611e9743d4ae6bee401b122c21aac4f5e220b5e544f9968f94d6f326fadfa6 WHIRLPOOL 7f9a1b782093321b0dc236098688dacd93f608725bd551ef848262049da3f08b12b2ec34188413ec5b16070753acdc0a07af8d723599581340ecd9cfc6493b67
DIST schroot_1.6.10-2.debian.tar.xz 34296 SHA256 71ed5b264029bd62226337a29f7ec926c29724c9540b24f7ccccfbef81c2391a SHA512 ea980199b90a2cffc36348e01e2de229c5cb4321f10bcde4b593eeaaa18f34ab9187cc9c717e6043c477819fefbd793cc707e1e77a5bae1c1815a668956cd84c WHIRLPOOL b6de6552c78418cde8ffc201017d3665a85a161d2417648b8213a37979889ae54380da051c59f1643d28989ae3f905976493b860002e1a4ded3aaea1434d3673
DIST schroot_1.6.10.orig.tar.xz 797328 SHA256 3ce8dfd9cb97b099e4b6d4ccec421d6cc8c9ef84574681e928a12badb5643d0b SHA512 25155989c7811ab4c7bf3cdceaa8d0ffb12f08388143891def96fcd205f1cc401dad9a74f0e9a9ef8610d50174ff8319a8368401431dc87e1a11c0241e61fcbe WHIRLPOOL 91c4682101c6eeb1f56d3e5c583a55af1164abd6853a822ac5c5f1c6820140fb1049765877e97985a90264f4e9d898886487fac794a794904f98210494974090
-DIST schroot_1.6.3.orig.tar.xz 730756 SHA256 0b914a0ae1eef0288e5bf016c14031d3433d1b3f18820bebc5480647594ebc82 SHA512 e435715091eed17e1f073218b2cc2355ad529bb702b9f8cfeb58ed3be38b78fa61280713801ce29e5b21c93939f5898e6f6e4f493d3f7d2550a873289a6c22be WHIRLPOOL 065142aa34a225d0cda44ca3d3703131fe2a0ab46ad914bf386a58dd0480650ca03a5b6d00216eca41edff5a534083874d121623002aec57e933a95a4d2cc60f
-DIST schroot_1.6.5-1.debian.tar.gz 30518 SHA256 acf7cdbbb486a5724e61d10ba682df24dc66ec9274c6897f64b7dbd5f9632aed SHA512 3f5753a877cf8226f9eb085620c91f3e6179855adb7faf1f60e78d12b30ac545f6f6d124a239bd6a8d6b3ac28b417ee1d3ccc7ea4978cad77f3bba1d6e2c043d WHIRLPOOL 13b8afc0575fc1d4e27e35ba0cf277ffb04353b2dc0ebcfb8596d6ada064402f2004bd0b9fd658daad8cef69c1a3c5d615be0569335f6b243ed2f09134d63543
-DIST schroot_1.6.5.orig.tar.xz 737656 SHA256 290d1af4eb06db7678277a5aa8104a69bc33b4e0f9b502aed166061d2717343e SHA512 2f7285f9e76fff8db2a9a7cd66f4d06c2c19662f812c3b3108be45bbc6a67bee63b39b56235e257ab226c35efdba6b50a2e2511a618c32d76da10a0d7843fe90 WHIRLPOOL bf9dcdd61862719492bde8e67ca5cd3b42e368cb69e57382b88a85aa1b34825ab40bd2e9f82f4296a0d9721a38fe03e8161f49931a95721be835d52a3a9108fa
diff --git a/dev-util/schroot/files/schroot-1.4.7-tests.patch b/dev-util/schroot/files/schroot-1.4.7-tests.patch
deleted file mode 100644
index 4a492e7feb97..000000000000
--- a/dev-util/schroot/files/schroot-1.4.7-tests.patch
+++ /dev/null
@@ -1,81 +0,0 @@
---- schroot-1.4.7.orig/configure.ac
-+++ schroot-1.4.7/configure.ac
-@@ -265,6 +265,19 @@ AC_ARG_WITH([bash-completion-dir], [AS_H
- AC_MSG_RESULT([$bashcompletiondir])
- AC_SUBST([bashcompletiondir])
-
-+AC_MSG_CHECKING([whether to enable root-only unit tests])
-+AC_ARG_ENABLE([root-tests], [AS_HELP_STRING([--with-root-tests], [Enable root-only tests])],
-+ [ case "${enableval}" in
-+ yes) enable_root_tests="yes" ;;
-+ no) enable_root_tests="no" ;;
-+ *) AC_MSG_RESULT([unknown])
-+ AC_MSG_ERROR([bad value ${enableval} for --enable-root-tests]) ;;
-+ esac],
-+ [ enable_root_tests="yes" ])
-+AC_MSG_RESULT([$enable_root_tests])
-+AM_CONDITIONAL([USE_ROOT_TESTS], [test "$enable_root_tests" = "yes"])
-+AC_SUBST([enable_root_tests])
-+
- # Checks for programs.
- AC_PROG_CXX
- AC_LANG([C++])
---- schroot-1.4.7.orig/test/Makefile.am
-+++ schroot-1.4.7/test/Makefile.am
-@@ -24,10 +24,12 @@ include $(top_srcdir)/scripts/global.mk
- LOCAL_CXXFLAGS = $(SCHROOT_CFLAGS) $(CPPUNIT_CFLAGS) -DTESTDATADIR='"./testdata"' -I$(top_srcdir)/bin
-
- if USE_UNIT_TESTS
--noinst_LTLIBRARIES = libtest.la
-+check_LTLIBRARIES = libtest.la
-
--noinst_PROGRAMS = \
-- sbuild-chroot \
-+ROOT_TESTS =
-+
-+if USE_ROOT_TESTS
-+ROOT_TESTS += \
- sbuild-chroot-plain \
- sbuild-chroot-file \
- sbuild-chroot-directory \
-@@ -35,7 +37,12 @@ noinst_PROGRAMS = \
- sbuild-chroot-loopback \
- sbuild-chroot-lvm-snapshot \
- sbuild-chroot-btrfs-snapshot \
-- sbuild-chroot-config \
-+ sbuild-chroot-config
-+endif
-+
-+check_PROGRAMS = \
-+ sbuild-chroot \
-+ $(ROOT_TESTS) \
- sbuild-environment \
- sbuild-keyfile \
- sbuild-lock \
-@@ -52,14 +59,7 @@ noinst_PROGRAMS = \
- # randomly on slow or heavily-loaded systems.
- TESTS = setup-test-data \
- sbuild-chroot \
-- sbuild-chroot-plain \
-- sbuild-chroot-file \
-- sbuild-chroot-directory \
-- sbuild-chroot-block-device \
-- sbuild-chroot-loopback \
-- sbuild-chroot-lvm-snapshot \
-- sbuild-chroot-btrfs-snapshot \
-- sbuild-chroot-config \
-+ $(ROOT_TESTS) \
- sbuild-environment \
- sbuild-keyfile \
- sbuild-log \
---- schroot-1.4.7.orig/test/setup-test-data
-+++ schroot-1.4.7/test/setup-test-data
-@@ -4,4 +4,8 @@
- rm -rf testdata
- mkdir testdata
- cp -r ${srcdir}/*.ex* testdata
-+if test `id -u` -ne 0; then
-+echo "You are not root, only doing partial setup"
-+else
- chown -R root:root testdata
-+fi
diff --git a/dev-util/schroot/files/schroot-1.6.3-tests.patch b/dev-util/schroot/files/schroot-1.6.3-tests.patch
deleted file mode 100644
index e58b6bae32ba..000000000000
--- a/dev-util/schroot/files/schroot-1.6.3-tests.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-diff -purN schroot-1.6.3.orig/configure.ac schroot-1.6.3/configure.ac
---- schroot-1.6.3.orig/configure.ac 2012-07-23 17:54:07.000000000 -0400
-+++ schroot-1.6.3/configure.ac 2012-09-20 03:43:20.451738906 -0400
-@@ -264,6 +264,19 @@ AC_ARG_WITH([bash-completion-dir], [AS_H
- AC_MSG_RESULT([$bashcompletiondir])
- AC_SUBST([bashcompletiondir])
-
-+AC_MSG_CHECKING([whether to enable root-only unit tests])
-+AC_ARG_ENABLE([root-tests], [AS_HELP_STRING([--with-root-tests], [Enable root-only tests])],
-+ [ case "${enableval}" in
-+ yes) enable_root_tests="yes" ;;
-+ no) enable_root_tests="no" ;;
-+ *) AC_MSG_RESULT([unknown])
-+ AC_MSG_ERROR([bad value ${enableval} for --enable-root-tests]) ;;
-+ esac],
-+ [ enable_root_tests="yes" ])
-+AC_MSG_RESULT([$enable_root_tests])
-+AM_CONDITIONAL([USE_ROOT_TESTS], [test "$enable_root_tests" = "yes"])
-+AC_SUBST([enable_root_tests])
-+
- # Checks for programs.
- AC_PROG_CXX
- AC_LANG([C++])
-diff -purN schroot-1.6.3.orig/test/Makefile.am schroot-1.6.3/test/Makefile.am
---- schroot-1.6.3.orig/test/Makefile.am 2012-07-23 17:54:07.000000000 -0400
-+++ schroot-1.6.3/test/Makefile.am 2012-09-20 03:45:31.400235841 -0400
-@@ -24,10 +24,12 @@ include $(top_srcdir)/scripts/global.mk
- LOCAL_CXXFLAGS = $(SCHROOT_CFLAGS) $(CPPUNIT_CFLAGS) -DTESTDATADIR='"./testdata"' -I$(top_srcdir)/bin
-
- if USE_UNIT_TESTS
--noinst_LTLIBRARIES = libtest.la
-+check_LTLIBRARIES = libtest.la
-
--noinst_PROGRAMS = \
-- sbuild-chroot \
-+ROOT_TESTS =
-+
-+if USE_ROOT_TESTS
-+ROOT_TESTS += \
- sbuild-chroot-plain \
- sbuild-chroot-custom \
- sbuild-chroot-file \
-@@ -37,7 +39,12 @@ noinst_PROGRAMS = \
- sbuild-chroot-lvm-snapshot \
- sbuild-chroot-btrfs-snapshot \
- sbuild-chroot-config \
-- sbuild-chroot-facet-userdata \
-+ sbuild-chroot-facet-userdata
-+endif
-+
-+check_PROGRAMS = \
-+ sbuild-chroot \
-+ $(ROOT_TESTS) \
- sbuild-environment \
- sbuild-keyfile \
- sbuild-lock \
-@@ -54,16 +61,7 @@ noinst_PROGRAMS = \
- # randomly on slow or heavily-loaded systems.
- TESTS = setup-test-data \
- sbuild-chroot \
-- sbuild-chroot-plain \
-- sbuild-chroot-custom \
-- sbuild-chroot-file \
-- sbuild-chroot-directory \
-- sbuild-chroot-block-device \
-- sbuild-chroot-loopback \
-- sbuild-chroot-lvm-snapshot \
-- sbuild-chroot-btrfs-snapshot \
-- sbuild-chroot-config \
-- sbuild-chroot-facet-userdata \
-+ $(ROOT_TESTS) \
- sbuild-environment \
- sbuild-keyfile \
- sbuild-log \
-diff -purN schroot-1.6.3.orig/test/setup-test-data schroot-1.6.3/test/setup-test-data
---- schroot-1.6.3.orig/test/setup-test-data 2012-07-23 17:54:07.000000000 -0400
-+++ schroot-1.6.3/test/setup-test-data 2012-09-20 03:43:20.451738906 -0400
-@@ -4,4 +4,8 @@
- rm -rf testdata
- mkdir testdata
- cp -r ${srcdir}/*.ex* testdata
-+if test `id -u` -ne 0; then
-+echo "You are not root, only doing partial setup"
-+else
- chown -R root:root testdata
-+fi
diff --git a/dev-util/schroot/schroot-1.6.3.ebuild b/dev-util/schroot/schroot-1.6.3.ebuild
deleted file mode 100644
index 4aa93f1ba3a6..000000000000
--- a/dev-util/schroot/schroot-1.6.3.ebuild
+++ /dev/null
@@ -1,131 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools base pam versionator
-
-MY_P=${PN}_${PV}
-
-DESCRIPTION="Utility to execute commands in a chroot environment"
-HOMEPAGE="http://packages.debian.org/source/sid/schroot"
-SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}.orig.tar.xz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="btrfs +dchroot debug doc lvm nls pam test"
-
-COMMON_DEPEND="
- >=dev-libs/boost-1.42.0
- dev-libs/lockdev
- >=sys-apps/util-linux-2.16
- btrfs? ( >=sys-fs/btrfs-progs-0.19-r2 )
- lvm? ( sys-fs/lvm2 )
- pam? ( sys-libs/pam )
-"
-
-DEPEND="${COMMON_DEPEND}
- app-arch/xz-utils
- sys-apps/groff
- doc? (
- app-doc/doxygen
- media-gfx/graphviz
- )
- nls? (
- >=app-text/po4a-0.40
- sys-devel/gettext
- )
- test? ( >=dev-util/cppunit-1.10.0 )
-"
-RDEPEND="${COMMON_DEPEND}
- sys-apps/debianutils
- dchroot? ( !sys-apps/dchroot )
- nls? ( virtual/libintl )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-1.6.3-tests.patch"
-)
-
-src_prepare() {
- base_src_prepare
-
- # Don't depend on cppunit unless we are testing
- use test || sed -i '/AM_PATH_CPPUNIT/d' configure.ac
-
- eautoreconf
-}
-
-src_configure() {
- root_tests=no
- use test && (( EUID == 0 )) && root_tests=yes
- use nls || export ac_cv_path_PO4A=
- econf \
- $(use_enable btrfs btrfs-snapshot) \
- $(use_enable doc doxygen) \
- $(use_enable dchroot) \
- $(use_enable dchroot dchroot-dsa) \
- $(use_enable debug) \
- $(use_enable lvm lvm-snapshot) \
- $(use_enable nls) \
- $(use_enable pam) \
- --enable-block-device \
- --enable-loopback \
- --enable-uuid \
- --enable-root-tests=$root_tests \
- --enable-shared \
- --disable-static \
- --localstatedir="${EPREFIX}"/var \
- --with-bash-completion-dir="${EPREFIX}"/usr/share/bash-completion
-}
-
-src_compile() {
- emake all $(usev doc)
-}
-
-src_test() {
- if [[ $root_tests == yes && $EUID -ne 0 ]]; then
- ewarn "Disabling tests because you are no longer root"
- return 0
- fi
-
- # Fix a bug in the tarball -- an empty directory was omitted
- mkdir test/run-parts.ex2
- default
-}
-
-src_install() {
- default
-
- insinto /usr/share/doc/${PF}/contrib/setup.d
- doins contrib/setup.d/05customdir contrib/setup.d/09fsck contrib/setup.d/10mount-ssh
-
- newdoc debian/schroot.NEWS NEWS.debian
-
- newinitd "${FILESDIR}"/schroot.initd schroot
- newconfd "${FILESDIR}"/schroot.confd schroot
-
- if use doc; then
- docinto html/sbuild
- dohtml doc/sbuild/html/*
- docinto html/schroot
- dohtml doc/schroot/html/*
- fi
-
- if use pam; then
- rm -f "${ED}"etc/pam.d/schroot
- pamd_mimic_system schroot auth account session
- fi
-
- # Remove *.la files
- find "${D}" -name "*.la" -exec rm {} + || die "removal of *.la files failed"
-}
-
-pkg_postinst() {
- if [[ ${REPLACING_VERSIONS} == 1.[24]* ]]; then
- elog "Please read /usr/share/doc/${PF}/NEWS.debian* for important"
- elog "upgrade information."
- fi
-}
diff --git a/dev-util/schroot/schroot-1.6.5-r1.ebuild b/dev-util/schroot/schroot-1.6.5-r1.ebuild
deleted file mode 100644
index 77b8ea7853d1..000000000000
--- a/dev-util/schroot/schroot-1.6.5-r1.ebuild
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools base eutils pam versionator bash-completion-r1
-
-MY_P=${PN}_${PV}
-DEB_REL=1
-
-DESCRIPTION="Utility to execute commands in a chroot environment"
-HOMEPAGE="http://packages.debian.org/source/sid/schroot"
-SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}.orig.tar.xz
- mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}-${DEB_REL}.debian.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
-IUSE="btrfs +dchroot debug doc lvm nls pam test"
-
-COMMON_DEPEND="
- >=dev-libs/boost-1.42.0
- dev-libs/lockdev
- >=sys-apps/util-linux-2.16
- btrfs? ( >=sys-fs/btrfs-progs-0.19-r2 )
- lvm? ( sys-fs/lvm2 )
- pam? ( sys-libs/pam )
-"
-
-DEPEND="${COMMON_DEPEND}
- app-arch/xz-utils
- sys-apps/groff
- doc? (
- app-doc/doxygen
- media-gfx/graphviz
- )
- nls? (
- >=app-text/po4a-0.40
- sys-devel/gettext
- )
- test? ( >=dev-util/cppunit-1.10.0 )
-"
-RDEPEND="${COMMON_DEPEND}
- sys-apps/debianutils
- dchroot? ( !sys-apps/dchroot )
- nls? ( virtual/libintl )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-1.6.3-tests.patch"
-)
-
-src_unpack() {
- unpack ${MY_P}.orig.tar.xz
- cd "${S}"
- unpack ${MY_P}-${DEB_REL}.debian.tar.gz
-}
-
-src_prepare() {
- base_src_prepare
-
- # Don't depend on cppunit unless we are testing
- use test || sed -i '/AM_PATH_CPPUNIT/d' configure.ac
-
- eautoreconf
-}
-
-src_configure() {
- root_tests=no
- use test && (( EUID == 0 )) && root_tests=yes
- use nls || export ac_cv_path_PO4A=
- econf \
- $(use_enable btrfs btrfs-snapshot) \
- $(use_enable doc doxygen) \
- $(use_enable dchroot) \
- $(use_enable dchroot dchroot-dsa) \
- $(use_enable debug) \
- $(use_enable lvm lvm-snapshot) \
- $(use_enable nls) \
- $(use_enable pam) \
- --enable-block-device \
- --enable-loopback \
- --enable-uuid \
- --enable-root-tests=$root_tests \
- --enable-shared \
- --disable-static \
- --localstatedir="${EPREFIX}"/var \
- --with-bash-completion-dir="$(get_bashcompdir)"
-}
-
-src_compile() {
- emake all $(usev doc)
-}
-
-src_test() {
- if [[ $root_tests == yes && $EUID -ne 0 ]]; then
- ewarn "Disabling tests because you are no longer root"
- return 0
- fi
-
- # Fix a bug in the tarball -- an empty directory was omitted
- mkdir test/run-parts.ex2
- default
-}
-
-src_install() {
- default
-
- insinto /usr/share/doc/${PF}/contrib/setup.d
- doins contrib/setup.d/05customdir contrib/setup.d/09fsck contrib/setup.d/10mount-ssh
-
- newdoc debian/schroot.NEWS NEWS.debian
-
- newinitd "${FILESDIR}"/schroot.initd schroot
- newconfd "${FILESDIR}"/schroot.confd schroot
-
- if use doc; then
- docinto html/sbuild
- dohtml doc/sbuild/html/*
- docinto html/schroot
- dohtml doc/schroot/html/*
- fi
-
- if use pam; then
- rm -f "${ED}"etc/pam.d/schroot
- pamd_mimic_system schroot auth account session
- fi
-
- # Remove *.la files
- find "${D}" -name "*.la" -exec rm {} + || die "removal of *.la files failed"
-}
-
-pkg_postinst() {
- if [[ ${REPLACING_VERSIONS} == 1.[24]* ]]; then
- elog "Please read /usr/share/doc/${PF}/NEWS.debian* for important"
- elog "upgrade information."
- fi
-}
diff --git a/dev-util/schroot/schroot-1.6.5.ebuild b/dev-util/schroot/schroot-1.6.5.ebuild
deleted file mode 100644
index ef9f45f36c12..000000000000
--- a/dev-util/schroot/schroot-1.6.5.ebuild
+++ /dev/null
@@ -1,139 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit autotools base eutils pam versionator
-
-MY_P=${PN}_${PV}
-DEB_REL=1
-
-DESCRIPTION="Utility to execute commands in a chroot environment"
-HOMEPAGE="http://packages.debian.org/source/sid/schroot"
-SRC_URI="mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}.orig.tar.xz
- mirror://debian/pool/main/${PN::1}/${PN}/${MY_P}-${DEB_REL}.debian.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
-IUSE="btrfs +dchroot debug doc lvm nls pam test"
-
-COMMON_DEPEND="
- >=dev-libs/boost-1.42.0
- dev-libs/lockdev
- >=sys-apps/util-linux-2.16
- btrfs? ( >=sys-fs/btrfs-progs-0.19-r2 )
- lvm? ( sys-fs/lvm2 )
- pam? ( sys-libs/pam )
-"
-
-DEPEND="${COMMON_DEPEND}
- app-arch/xz-utils
- sys-apps/groff
- doc? (
- app-doc/doxygen
- media-gfx/graphviz
- )
- nls? (
- >=app-text/po4a-0.40
- sys-devel/gettext
- )
- test? ( >=dev-util/cppunit-1.10.0 )
-"
-RDEPEND="${COMMON_DEPEND}
- sys-apps/debianutils
- dchroot? ( !sys-apps/dchroot )
- nls? ( virtual/libintl )
-"
-
-PATCHES=(
- "${FILESDIR}/${PN}-1.6.3-tests.patch"
-)
-
-src_unpack() {
- unpack ${MY_P}.orig.tar.xz
- cd "${S}"
- unpack ${MY_P}-${DEB_REL}.debian.tar.gz
-}
-
-src_prepare() {
- base_src_prepare
-
- # Don't depend on cppunit unless we are testing
- use test || sed -i '/AM_PATH_CPPUNIT/d' configure.ac
-
- eautoreconf
-}
-
-src_configure() {
- root_tests=no
- use test && (( EUID == 0 )) && root_tests=yes
- use nls || export ac_cv_path_PO4A=
- econf \
- $(use_enable btrfs btrfs-snapshot) \
- $(use_enable doc doxygen) \
- $(use_enable dchroot) \
- $(use_enable dchroot dchroot-dsa) \
- $(use_enable debug) \
- $(use_enable lvm lvm-snapshot) \
- $(use_enable nls) \
- $(use_enable pam) \
- --enable-block-device \
- --enable-loopback \
- --enable-uuid \
- --enable-root-tests=$root_tests \
- --enable-shared \
- --disable-static \
- --localstatedir="${EPREFIX}"/var \
- --with-bash-completion-dir="${EPREFIX}"/usr/share/bash-completion
-}
-
-src_compile() {
- emake all $(usev doc)
-}
-
-src_test() {
- if [[ $root_tests == yes && $EUID -ne 0 ]]; then
- ewarn "Disabling tests because you are no longer root"
- return 0
- fi
-
- # Fix a bug in the tarball -- an empty directory was omitted
- mkdir test/run-parts.ex2
- default
-}
-
-src_install() {
- default
-
- insinto /usr/share/doc/${PF}/contrib/setup.d
- doins contrib/setup.d/05customdir contrib/setup.d/09fsck contrib/setup.d/10mount-ssh
-
- newdoc debian/schroot.NEWS NEWS.debian
-
- newinitd "${FILESDIR}"/schroot.initd schroot
- newconfd "${FILESDIR}"/schroot.confd schroot
-
- if use doc; then
- docinto html/sbuild
- dohtml doc/sbuild/html/*
- docinto html/schroot
- dohtml doc/schroot/html/*
- fi
-
- if use pam; then
- rm -f "${ED}"etc/pam.d/schroot
- pamd_mimic_system schroot auth account session
- fi
-
- # Remove *.la files
- find "${D}" -name "*.la" -exec rm {} + || die "removal of *.la files failed"
-}
-
-pkg_postinst() {
- if [[ ${REPLACING_VERSIONS} == 1.[24]* ]]; then
- elog "Please read /usr/share/doc/${PF}/NEWS.debian* for important"
- elog "upgrade information."
- fi
-}