summaryrefslogtreecommitdiff
path: root/news/newsfetch
diff options
context:
space:
mode:
authortnn <tnn>2009-10-29 22:40:23 +0000
committertnn <tnn>2009-10-29 22:40:23 +0000
commitad1ebf1030ec2032e86d664483e775c0d303cbad (patch)
tree9b4d99d83aced300927788afbba3151ff5acf04a /news/newsfetch
parentfc5f6baf6ea92bdce0ed145b8bece70f916fb647 (diff)
downloadpkgsrc-ad1ebf1030ec2032e86d664483e775c0d303cbad.tar.gz
Support DESTDIR and PKGMANDIR
Diffstat (limited to 'news/newsfetch')
-rw-r--r--news/newsfetch/Makefile6
-rw-r--r--news/newsfetch/distinfo4
-rw-r--r--news/newsfetch/patches/patch-aa14
3 files changed, 14 insertions, 10 deletions
diff --git a/news/newsfetch/Makefile b/news/newsfetch/Makefile
index 37a29d24940..b1d7a290595 100644
--- a/news/newsfetch/Makefile
+++ b/news/newsfetch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2009/04/16 17:00:31 jrf Exp $
+# $NetBSD: Makefile,v 1.9 2009/10/29 22:40:23 tnn Exp $
#
DISTNAME= newsfetch-1.3
@@ -10,6 +10,8 @@ MAINTAINER= jay.fink@gmail.com
HOMEPAGE= http://www.systhread.net/coding
COMMENT= Downloads newsgroup messages in mail file format
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/newsfetch
.include "../../mk/bsd.prefs.mk"
@@ -18,4 +20,6 @@ WRKSRC= ${WRKDIR}/newsfetch
LDFLAGS+= -lsocket -lnsl -lresolv
.endif
+INSTALLATION_DIRS+= bin ${PKGMANDIR}/man1
+
.include "../../mk/bsd.pkg.mk"
diff --git a/news/newsfetch/distinfo b/news/newsfetch/distinfo
index 49dadec3811..c8b4c6e1b18 100644
--- a/news/newsfetch/distinfo
+++ b/news/newsfetch/distinfo
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.6 2006/01/02 23:22:33 joerg Exp $
+$NetBSD: distinfo,v 1.7 2009/10/29 22:40:23 tnn Exp $
SHA1 (newsfetch-1.3.tar.gz) = e497eecffa15d62b1cde6921734dd6e1cb9d933c
RMD160 (newsfetch-1.3.tar.gz) = dfe2878e6bb0e5c5c249c3e4d7a3489adac17d97
Size (newsfetch-1.3.tar.gz) = 12159 bytes
-SHA1 (patch-aa) = 1311f2d0b7a8cdb4e07ba8b6dba491d9878e20df
+SHA1 (patch-aa) = 57bf7387cf8a3b6c1189d782b054750d21c31c94
SHA1 (patch-ab) = 2d30938b62011db3afa2c0e06043b43bbb5cf0b2
SHA1 (patch-ac) = 2241ba0950d3ee5f4c0c253cf4870cb4e070fe11
SHA1 (patch-ad) = bda1504ce87969da67b14675bdecf351e7bdf148
diff --git a/news/newsfetch/patches/patch-aa b/news/newsfetch/patches/patch-aa
index 4fda96faa56..b5bf2bbc714 100644
--- a/news/newsfetch/patches/patch-aa
+++ b/news/newsfetch/patches/patch-aa
@@ -1,22 +1,22 @@
-$NetBSD: patch-aa,v 1.2 2003/09/22 21:12:19 wiz Exp $
+$NetBSD: patch-aa,v 1.3 2009/10/29 22:40:23 tnn Exp $
---- Makefile.orig Mon Nov 13 02:01:49 2000
-+++ Makefile Mon Sep 22 19:38:52 2003
+--- Makefile.orig 2000-11-13 03:01:49.000000000 +0100
++++ Makefile
@@ -1,9 +1,9 @@
# Makefile for newsfetch program
-CC = gcc
-BINDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+#CC = gcc
-+BINDIR = ${PREFIX}/bin
-+MANDIR = ${PREFIX}/man/man1
++BINDIR = ${DESTDIR}${PREFIX}/bin
++MANDIR = ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
-CFLAGS= -O2 # inline opt
+#CFLAGS= -O2 # inline opt
# uncomment this for strict checking
#CFLAGS = -O2 -Wall -pedantic -Wstrict-prototypes -fno-strength-reduce
-@@ -15,8 +15,7 @@
+@@ -15,8 +15,7 @@ all: newsfetch
objs = newsfetch.o nntp.o net.o opt.o util.o getopt.o
newsfetch: $(objs)
@@ -26,7 +26,7 @@ $NetBSD: patch-aa,v 1.2 2003/09/22 21:12:19 wiz Exp $
.c.o:
$(CC) -c $(CFLAGS) $<
-@@ -25,10 +24,8 @@
+@@ -25,10 +24,8 @@ clean:
rm -f *.o newsfetch
install: