new file mode 100644
index 0000000..d16d1c5
--- /dev/null
-+++ tests/check_fstab/a
++++ b/tests/check_fstab/a
@@ -0,0 +1 @@
+This file is a 'dummy device file' for the fstab check
diff --git a/tests/check_fstab/d b/tests/check_fstab/d
new file mode 100644
index 0000000..d16d1c5
--- /dev/null
-+++ tests/check_fstab/d
++++ b/tests/check_fstab/d
@@ -0,0 +1 @@
+This file is a 'dummy device file' for the fstab check
diff --git a/tests/check_fstab/fstab b/tests/check_fstab/fstab
new file mode 100644
index 0000000..8ba6f6c
--- /dev/null
-+++ tests/check_fstab/fstab
++++ b/tests/check_fstab/fstab
@@ -0,0 +1,6 @@
+# A dummy fstab file for
+
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils bash-completion-r1
+EAPI=7
+inherit bash-completion-r1
DESCRIPTION="Policy based mounter that gives the ability to mount removable devices as a user"
HOMEPAGE="https://launchpad.net/pmount"
SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV/_/-}.orig.tar.bz2"
+S=${WORKDIR}/${P/_/-}
LICENSE="GPL-2"
SLOT="0"
dev-util/intltool
sys-devel/gettext"
-S=${WORKDIR}/${P/_/-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9.19-testsuite-missing-dir.patch
+ "${FILESDIR}"/${P}-locale-regex.patch
+)
src_prepare() {
# Restore default value from pmount <= 0.9.23 wrt #393633
sed -i -e '/^not_physically_logged_allow/s:=.*:= yes:' etc/pmount.conf || die
- cat <<-EOF > po/POTFILES.skip
+ cat <<-EOF > po/POTFILES.skip || die
src/conffile.c
src/configuration.c
src/loop.c
EOF
- epatch \
- "${FILESDIR}"/${PN}-0.9.19-testsuite-missing-dir.patch \
- "${FILESDIR}"/${P}-locale-regex.patch
+ default
}
src_configure() {
src_test() {
local testdir=${S}/tests/check_fstab
- ln -s $testdir/a $testdir/b && ln -s $testdir/d $testdir/c && \
- ln -s $testdir/c $testdir/e \
- || die "Unable to create fake symlinks required for testsuite"
+ ln -s a "${testdir}/b" &&
+ ln -s d "${testdir}/c" &&
+ ln -s c "${testdir}/e" ||
+ die "Unable to create fake symlinks required for testsuite"
emake check
}
-src_install () {
+src_install() {
# Must be run SETUID+SETGID, bug #250106
exeinto /usr/bin
exeopts -m 6710 -g plugdev