summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-07-07 20:04:17 +0000
committerjoerg <joerg@pkgsrc.org>2009-07-07 20:04:17 +0000
commit5c3101510580fde77197e8c1668300c01f773065 (patch)
tree9c74f8447d5b7581e9b767f71b110616bcac73ee /time
parente0c1f3c315a8dfead5bcebf8976c962b41bd5fa9 (diff)
downloadpkgsrc-5c3101510580fde77197e8c1668300c01f773065.tar.gz
user-destdir support
Diffstat (limited to 'time')
-rw-r--r--time/saytime/Makefile9
-rw-r--r--time/saytime/distinfo4
-rw-r--r--time/saytime/patches/patch-aa17
3 files changed, 24 insertions, 6 deletions
diff --git a/time/saytime/Makefile b/time/saytime/Makefile
index 086aa785433..ddd037fcf27 100644
--- a/time/saytime/Makefile
+++ b/time/saytime/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/05/26 02:13:24 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2009/07/07 20:04:53 joerg Exp $
#
DISTNAME= saytime_11nov1995
@@ -10,6 +10,8 @@ MAINTAINER= is@NetBSD.org
HOMEPAGE= http://www.acme.com/software/saytime/
COMMENT= Talking clock
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= pax
ONLY_FOR_PLATFORM= NetBSD-*-* OpenBSD-*-* SunOS-*-*
@@ -23,8 +25,9 @@ pre-configure:
${SED} -e 's|@LOCALBASE@|${LOCALBASE}|' \
${WRKSRC}/Makefile.template > ${WRKSRC}/Makefile
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/saytime
+
post-install:
- ${INSTALL_DATA_DIR} ${LOCALBASE}/share/saytime
- cd ${WRKSRC}/times && pax -rw * ${LOCALBASE}/share/saytime/
+ cd ${WRKSRC}/times && pax -rw * ${DESTDIR}${PREFIX}/share/saytime/
.include "../../mk/bsd.pkg.mk"
diff --git a/time/saytime/distinfo b/time/saytime/distinfo
index 888bb0c9701..b0c7daccaf6 100644
--- a/time/saytime/distinfo
+++ b/time/saytime/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2005/07/07 21:23:21 is Exp $
+$NetBSD: distinfo,v 1.2 2009/07/07 20:04:53 joerg Exp $
SHA1 (saytime_11nov1995.tar.gz) = 0deae40ee1c4f128a75d93bc0d9d7cf61c6c757b
RMD160 (saytime_11nov1995.tar.gz) = c5b4193f4ccabcf75da59e0019e2a73673576d06
Size (saytime_11nov1995.tar.gz) = 104245 bytes
-SHA1 (patch-aa) = 6d644e2a8de98357d33987a2f3f375c862da81b4
+SHA1 (patch-aa) = dbcc77435c7844d676e152949c3121aa9bcb569c
SHA1 (patch-ab) = 764f5d214742d450e18b6e83555ba806979fefa5
diff --git a/time/saytime/patches/patch-aa b/time/saytime/patches/patch-aa
index 283887be9e8..204ac493a91 100644
--- a/time/saytime/patches/patch-aa
+++ b/time/saytime/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2005/07/07 21:23:21 is Exp $
+$NetBSD: patch-aa,v 1.2 2009/07/07 20:04:53 joerg Exp $
--- Makefile.orig 1995-11-11 20:39:27.000000000 +0100
+++ Makefile
@@ -34,3 +34,18 @@ $NetBSD: patch-aa,v 1.1.1.1 2005/07/07 21:23:21 is Exp $
all: saytime
+@@ -30,10 +26,10 @@ saytime: saytime.o
+ $(CC) $(CFLAGS) -c $<
+
+ install: all
+- rm -f $(BINDIR)/saytime
+- cp saytime $(BINDIR)
+- rm -f $(MANDIR)/saytime.1
+- cp saytime.1 $(MANDIR)
++ rm -f ${DESTDIR}$(BINDIR)/saytime
++ cp saytime ${DESTDIR}$(BINDIR)
++ rm -f ${DESTDIR}$(MANDIR)/saytime.1
++ cp saytime.1 ${DESTDIR}$(MANDIR)
+
+ clean:
+ rm -f saytime *.o a.out core