summaryrefslogtreecommitdiff
path: root/www/bins/Makefile
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2002-07-30 09:46:32 +0000
committerdmcmahill <dmcmahill>2002-07-30 09:46:32 +0000
commitcc647232ec418d77583a5d294824a0e4bb674e82 (patch)
tree9d8dafc59f0032e527eddcf6eedb31a406a36c47 /www/bins/Makefile
parent4f823345ea5fb3dc5496946fe587136d91b5b4c9 (diff)
downloadpkgsrc-cc647232ec418d77583a5d294824a0e4bb674e82.tar.gz
use PKG_SYSCONFDIR/bins for the global config directory instead of
hard coding /etc/bins. install a default binsrc as an example which can be copied to ${PKG_SYSCONFDIR}/bins/binsrc and/or ~/.bins/binsrc bump PKGREVISION to bins-1.1.10nb1
Diffstat (limited to 'www/bins/Makefile')
-rw-r--r--www/bins/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/www/bins/Makefile b/www/bins/Makefile
index 32c4e6e03a7..7e53bb37010 100644
--- a/www/bins/Makefile
+++ b/www/bins/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2002/07/30 02:06:30 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.4 2002/07/30 09:46:32 dmcmahill Exp $
#
DISTNAME= bins-1.1.10
+PKGREVISION= 1
CATEGORIES= www graphics
MASTER_SITES= http://jsautret.free.fr/BINS/
EXTRACT_SUFX= .tar.bz2
@@ -29,6 +30,11 @@ USE_PERL5= YES
# have previous versions in pkgsrc.
REPLACE_PERL= bins bins_edit bins-edit-gui bins_txt2xml
+post-patch:
+ ${MV} ${WRKSRC}/bins ${WRKSRC}/bins.bak
+ ${SED} 's;@pkgsysconfdir@;${PKG_SYSCONFDIR};g' \
+ ${WRKSRC}/bins.bak > ${WRKSRC}/bins
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bins ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bins_edit ${PREFIX}/bin
@@ -40,6 +46,8 @@ do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bins/templates.default
${INSTALL_DATA} ${WRKSRC}/templates/*.html \
${PREFIX}/share/examples/bins/templates.default
+ ${INSTALL_DATA} ${WRKSRC}/binsrc \
+ ${PREFIX}/share/examples/bins
for lang in de fr it pl; do \
${INSTALL_DATA} ${WRKSRC}/intl/$$lang.mo \
${PREFIX}/${PKGLOCALEDIR}/locale/$$lang/LC_MESSAGES/bins.mo; \