diff options
author | rillig <rillig@pkgsrc.org> | 2006-06-25 07:57:22 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-06-25 07:57:22 +0000 |
commit | 0c00feb9c27203f3b811a96b8dd62aea6a0e82f3 (patch) | |
tree | 435d5017d55cb5800ff92d0707614e627ea1049d /textproc | |
parent | 513cf3cbf1e7ff39d4623198a54edda6c2a6f88a (diff) | |
download | pkgsrc-0c00feb9c27203f3b811a96b8dd62aea6a0e82f3.tar.gz |
Fixed the permissions and ownership of the installed files for
unprivileged builds. Bumped PKGREVISION.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/unroff/Makefile | 21 | ||||
-rw-r--r-- | textproc/unroff/distinfo | 3 | ||||
-rw-r--r-- | textproc/unroff/patches/patch-ac | 26 |
3 files changed, 21 insertions, 29 deletions
diff --git a/textproc/unroff/Makefile b/textproc/unroff/Makefile index 6fe784b1435..8a291addcea 100644 --- a/textproc/unroff/Makefile +++ b/textproc/unroff/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.26 2006/05/18 19:55:35 wiz Exp $ +# $NetBSD: Makefile,v 1.27 2006/06/25 07:57:22 rillig Exp $ DISTNAME= unroff-1.0 PKGNAME= unroff-1.0.2 +PKGREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://www-rn.informatik.uni-bremen.de/software/unroff/dist/ \ http://www-rn.informatik.uni-bremen.de/software/unroff/contrib/ @@ -15,9 +16,27 @@ COMMENT= Programmable troff translator with backend for HTML DIST_SUBDIR= unroff +CFLAGS+= -DBSD +BUILD_DIRS= src + post-patch: @(cd ${WRKSRC} && ${FIND} . -name '*.orig' -print | ${XARGS} ${RM} -f) @(cd ${WRKSRC} && ${FIND} . -name '*.orig_dist' -print | ${XARGS} ${RM} -f) +LIBDIR= ${PREFIX}/share/unroff + +do-install: + ${INSTALL_PROGRAM_DIR} ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${LIBDIR} + ${INSTALL_MAN_DIR} ${PREFIX}/${PKGMANDIR}/man1 + cd ${WRKSRC} && ${INSTALL_PROGRAM} src/unroff ${PREFIX}/bin/unroff + cd ${WRKSRC} && ${PAX} -wr scm ${LIBDIR} + ${INSTALL_DATA_DIR} ${LIBDIR}/doc + cd ${WRKSRC} && ${INSTALL_DATA} doc/manual.ms ${LIBDIR}/doc + ${INSTALL_DATA_DIR} ${LIBDIR}/misc + cd ${WRKSRC} && ${INSTALL_DATA} doc/tmac.hyper misc/sample.unroff ${LIBDIR}/misc + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${LIBDIR} + cd ${WRKSRC} && ${INSTALL_MAN} doc/*.1 ${PREFIX}/${PKGMANDIR}/man1 + .include "../../lang/elk/buildlink3.mk" .include "../../mk/bsd.pkg.mk" diff --git a/textproc/unroff/distinfo b/textproc/unroff/distinfo index 20c03fac602..33635a55015 100644 --- a/textproc/unroff/distinfo +++ b/textproc/unroff/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.6 2006/01/10 16:34:09 joerg Exp $ +$NetBSD: distinfo,v 1.7 2006/06/25 07:57:22 rillig Exp $ SHA1 (unroff/unroff-1.0.tar.gz) = bc8159ec7862de9f50666e79a538f46fdec4314c RMD160 (unroff/unroff-1.0.tar.gz) = 038567c4f767029dd2e6df8c33b5dad3309cb810 @@ -11,5 +11,4 @@ RMD160 (unroff/misc-patch-2) = 394547f1d77b38c3cfd50101c70f796a0773de2f Size (unroff/misc-patch-2) = 78714 bytes SHA1 (patch-aa) = 16c33c3df99779f5c6cfa8011a541281dad95409 SHA1 (patch-ab) = 82eaf69d8df0098a1ae4fe64e533b34f0b51d3a6 -SHA1 (patch-ac) = a75301976655e2bfc928183b2f8168488c40c12e SHA1 (patch-ad) = 76276cb4f590ffaf835952eb6f2fae16358c0b90 diff --git a/textproc/unroff/patches/patch-ac b/textproc/unroff/patches/patch-ac deleted file mode 100644 index d696875f438..00000000000 --- a/textproc/unroff/patches/patch-ac +++ /dev/null @@ -1,26 +0,0 @@ -$NetBSD: patch-ac,v 1.1 2001/10/25 19:16:50 agc Exp $ - -Add a small Makefile for this package - ---- /dev/null Thu Oct 25 20:08:08 2001 -+++ Makefile Thu Oct 25 20:08:08 2001 -@@ -0,0 +1,19 @@ -+CFLAGS+= -DBSD -+BINDIR= ${PREFIX}/bin -+LIBDIR= ${PREFIX}/share/unroff -+MANDIR= ${PREFIX}/man/man1 -+ -+all: -+ (cd src; make 'CFLAGS=${CFLAGS}' 'PREFIX=${PREFIX}' all) -+ -+install: -+ @mkdir -p ${BINDIR} ${LIBDIR} ${MANDIR} -+ install -c -o bin -g bin src/unroff ${PREFIX}/bin/unroff -+ cp -R scm ${LIBDIR} -+ @mkdir -p ${LIBDIR}/doc -+ cp doc/manual.ms ${LIBDIR}/doc -+ @mkdir -p ${LIBDIR}/misc -+ cp doc/tmac.hyper misc/sample.unroff ${LIBDIR}/misc -+ @chown -R bin:bin ${LIBDIR} -+ install -c -m 644 -o bin -g bin doc/*.1 ${MANDIR} -+ |