summaryrefslogtreecommitdiff
path: root/misc/dvtm
diff options
context:
space:
mode:
authortonio <tonio>2009-02-19 19:22:22 +0000
committertonio <tonio>2009-02-19 19:22:22 +0000
commitbe959d00192d15831c37c78f5e50b43ec3c81c7f (patch)
treebed4d7ea68824ff9abb31451405cd90a578ec327 /misc/dvtm
parent774be07176601fc9b3b8b9b2a3fc83efece22db7 (diff)
downloadpkgsrc-be959d00192d15831c37c78f5e50b43ec3c81c7f.tar.gz
Use BSD_INSTALL_* instead of simply install and strip
This fixes install under darwin, when strip -s dvtm does not work
Diffstat (limited to 'misc/dvtm')
-rw-r--r--misc/dvtm/distinfo4
-rw-r--r--misc/dvtm/patches/patch-aa20
2 files changed, 13 insertions, 11 deletions
diff --git a/misc/dvtm/distinfo b/misc/dvtm/distinfo
index 0a1fcd87a09..d8256701b1b 100644
--- a/misc/dvtm/distinfo
+++ b/misc/dvtm/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2009/02/17 10:08:15 tnn Exp $
+$NetBSD: distinfo,v 1.4 2009/02/19 19:22:22 tonio Exp $
SHA1 (dvtm-0.5.1.tar.gz) = 8b5691e3d28e21e675791266bfe15ce09350ae3a
RMD160 (dvtm-0.5.1.tar.gz) = 28259981a0c33ca44ab641a99183f228dcf5e3ae
Size (dvtm-0.5.1.tar.gz) = 26238 bytes
-SHA1 (patch-aa) = 241923f9be8ca7613ca424b7fcc270d45c925d41
+SHA1 (patch-aa) = 2de5ef5ff718918b61c9c73a1137efaefeaf81c1
diff --git a/misc/dvtm/patches/patch-aa b/misc/dvtm/patches/patch-aa
index e5b39bef9b3..99bf12149c9 100644
--- a/misc/dvtm/patches/patch-aa
+++ b/misc/dvtm/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.3 2009/02/17 10:08:15 tnn Exp $
+$NetBSD: patch-aa,v 1.4 2009/02/19 19:22:22 tonio Exp $
Do not use rudimentary mkdir(1), cp(1) and chmod(1): install(1) is
simpler and more elegant to install binaries.
@@ -13,24 +13,26 @@ simpler and more elegant to install binaries.
debug: clean
@make CFLAGS='${DEBUG_CFLAGS}'
-@@ -43,15 +44,12 @@ install: dvtm
- @echo stripping executable
- @strip -s dvtm
+@@ -40,18 +41,12 @@ dist: clean
+ @rm -rf dvtm-${VERSION}
+
+ install: dvtm
+- @echo stripping executable
+- @strip -s dvtm
@echo installing executable file to ${DESTDIR}${PREFIX}/bin
- @mkdir -p ${DESTDIR}${PREFIX}/bin
- @cp -f dvtm ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/dvtm
- @cp -f dvtm-status ${DESTDIR}${PREFIX}/bin
- @chmod 755 ${DESTDIR}${PREFIX}/bin/dvtm-status
-+ @install -m 755 -d ${DESTDIR}${PREFIX}/bin
-+ @install -m 755 -c dvtm ${DESTDIR}${PREFIX}/bin
-+ @install -m 755 -c dvtm-status ${DESTDIR}${PREFIX}/bin
++ ${BSD_INSTALL_PROGRAM} dvtm ${DESTDIR}${PREFIX}/bin
++ ${BSD_INSTALL_SCRIPT} dvtm-status ${DESTDIR}${PREFIX}/bin
@echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
- @mkdir -p ${DESTDIR}${MANPREFIX}/man1
- @sed "s/VERSION/${VERSION}/g" < dvtm.1 > ${DESTDIR}${MANPREFIX}/man1/dvtm.1
- @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dvtm.1
-+ @install -m 755 -d ${DESTDIR}${MANPREFIX}/man1
-+ @install -m 644 -c dvtm.1.out ${DESTDIR}${MANPREFIX}/man1/dvtm.1
++ ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++ ${BSD_INSTALL_MAN} dvtm.1.out ${DESTDIR}${MANPREFIX}/man1/dvtm.1
uninstall:
@echo removing executable file from ${DESTDIR}${PREFIX}/bin