diff options
author | dsainty <dsainty@pkgsrc.org> | 2006-10-13 14:41:39 +0000 |
---|---|---|
committer | dsainty <dsainty@pkgsrc.org> | 2006-10-13 14:41:39 +0000 |
commit | 012ce79b704781c03496ae81a9a137d6700d847e (patch) | |
tree | af510808a19f0b7406e7ac943a1ebef8d472cb64 /mail/exmh | |
parent | a15329a7df736b10d142dc8540ccee519fe4a17a (diff) | |
download | pkgsrc-012ce79b704781c03496ae81a9a137d6700d847e.tar.gz |
Rather than use a separate install script, move the installation code into the
Makefile (like usual). As part of this, we can now use the various INSTALL_*
definitions instead of the hard-coded ones in the script.
The only functional change is that all the files are now installed with Pkgsrc
default ownership, instead of hard-coded "bin:bin". However, this does mean
that non-root installation can now work, which is a good thing.
Diffstat (limited to 'mail/exmh')
-rw-r--r-- | mail/exmh/Makefile | 24 | ||||
-rw-r--r-- | mail/exmh/files/install | 39 |
2 files changed, 21 insertions, 42 deletions
diff --git a/mail/exmh/Makefile b/mail/exmh/Makefile index b1646233c41..c6e3f0df251 100644 --- a/mail/exmh/Makefile +++ b/mail/exmh/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.41 2006/03/04 21:30:00 jlam Exp $ +# $NetBSD: Makefile,v 1.42 2006/10/13 14:41:39 dsainty Exp $ DISTNAME= exmh-2.6.3 PKGREVISION= 1 @@ -36,7 +36,25 @@ do-build: FILESDIR=${FILESDIR} ${SH} ${FILESDIR}/build do-install: - @cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} \ - WRKSRC=${WRKSRC} ${SH} ${FILESDIR}/install + ${INSTALL_MAN} ${WRKSRC}/exmh.l ${PREFIX}/man/man1/exmh.1 + for binfile in exmh-async exmh-bg exmh ftp.expect; do \ + ${INSTALL_PROGRAM} ${WRKSRC}/$$binfile ${PREFIX}/bin; \ + done + vers=`sed -ne 's/^set vers \(.*\)/\1/p' ${WRKSRC}/exmh.install`; \ + ${INSTALL_DATA_DIR} ${PREFIX}/lib/exmh-$${vers}; \ + ${INSTALL_DATA_DIR} ${PREFIX}/lib/exmh-$${vers}/html; \ + for libfile in \ + ${WRKSRC}/lib/PgpDecryptExpect \ + ${WRKSRC}/lib/*.tcl ${WRKSRC}/lib/*.bitmap \ + ${WRKSRC}/lib/*.ppm ${WRKSRC}/lib/help.* \ + ${WRKSRC}/lib/tclIndex ${WRKSRC}/lib/app-defaults \ + ${WRKSRC}/lib/app-defaults-* ${WRKSRC}/lib/*.mask \ + ${WRKSRC}/lib/*.exp ${WRKSRC}/lib/mime.types \ + ${WRKSRC}/lib/*.au ${WRKSRC}/lib/*.gif; do \ + ${INSTALL_DATA} $$libfile ${PREFIX}/lib/exmh-$${vers}; \ + done; \ + for hfile in ${WRKSRC}/lib/html/*; do \ + ${INSTALL_DATA} $$hfile ${PREFIX}/lib/exmh-$${vers}/html; \ + done .include "../../mk/bsd.pkg.mk" diff --git a/mail/exmh/files/install b/mail/exmh/files/install deleted file mode 100644 index a13b9530918..00000000000 --- a/mail/exmh/files/install +++ /dev/null @@ -1,39 +0,0 @@ -#! /bin/sh -# -# $NetBSD: install,v 1.1 2001/10/26 11:46:55 agc Exp $ -# FreeBSD Id: install,v 1.2 1996/12/31 21:27:03 peter Exp -# - -VERSION="`sed -ne 's/^set vers \(.*\)/\1/p' ${WRKSRC}/exmh.install`" - -# Rename while installing.. -for i in exmh -do - echo "install -c -o bin -g bin -m 444 $i.l ${PREFIX}/man/man1/$i.1" - install -c -o bin -g bin -m 444 $i.l ${PREFIX}/man/man1/$i.1 -done - -BINS="exmh-async exmh-bg exmh ftp.expect" - -echo "install -c -o bin -g bin -m 755 ${BINS} ${PREFIX}/bin" -install -c -o bin -g bin -m 755 ${BINS} ${PREFIX}/bin - -if [ ! -d ${PREFIX}/lib/exmh-${VERSION} ] -then - echo "mkdir ${PREFIX}/lib/exmh-${VERSION}" - mkdir ${PREFIX}/lib/exmh-${VERSION} -fi - -LIBFILES='lib/PgpDecryptExpect lib/*.tcl lib/*.bitmap lib/*.ppm lib/help.* lib/tclIndex lib/app-defaults lib/app-defaults-* lib/*.mask lib/*.exp lib/mime.types lib/*.au lib/*.gif' - -echo "install -c -o bin -g bin -m 444 ${LIBFILES} ${PREFIX}/lib/exmh-${VERSION}" -install -c -o bin -g bin -m 444 ${LIBFILES} ${PREFIX}/lib/exmh-${VERSION} - -if [ ! -d ${PREFIX}/lib/exmh-${VERSION}/html ] -then - echo "mkdir ${PREFIX}/lib/exmh-${VERSION}/html" - mkdir ${PREFIX}/lib/exmh-${VERSION}/html -fi - -echo "install -c -o bin -g bin -m 444 lib/html/* ${PREFIX}/lib/exmh-${VERSION}/html" -install -c -o bin -g bin -m 444 lib/html/* ${PREFIX}/lib/exmh-${VERSION}/html |