From f86dba4908e02cd704ba51c0cb54981eeecb28c6 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 13 Oct 2012 15:50:11 +0000 Subject: [PATCH] More soft-coding --- src/deforaos-package.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/deforaos-package.sh b/src/deforaos-package.sh index c114fa7..72af99c 100755 --- a/src/deforaos-package.sh +++ b/src/deforaos-package.sh @@ -42,6 +42,7 @@ LINTIAN="lintian" MAKE="make" MKDIR="mkdir -p" PKGLINT="pkglint" +PREFIX="/usr/local" RM="rm -f" RMD160="rmd160" SHA1="sha1" @@ -582,14 +583,14 @@ _package_pkgsrc() #PLIST _info "Creating $pkgname/PLIST..." tmpdir="$PWD/$pkgname/destdir" - $MAKE DESTDIR="$tmpdir" PREFIX="/usr/local" install + $MAKE DESTDIR="$tmpdir" PREFIX="$PREFIX" install if [ $? -ne 0 ]; then $RM -r -- "$pkgname" _error "Could not install files in staging directory" return 2 fi echo "@comment \$NetBSD\$" > "$pkgname/PLIST" - (cd "$tmpdir/usr/local" && $FIND . -type f | $CUT -c 3- | sort) >> "$pkgname/PLIST" + (cd "$tmpdir$PREFIX" && $FIND . -type f | $CUT -c 3- | sort) >> "$pkgname/PLIST" $RM -r -- "$tmpdir" #distinfo