pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/news/newsfetch Support DESTDIR and PKGMANDIR



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cd1d3bb140f6
branches:  trunk
changeset: 400906:cd1d3bb140f6
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Oct 29 22:40:23 2009 +0000

description:
Support DESTDIR and PKGMANDIR

diffstat:

 news/newsfetch/Makefile         |   6 +++++-
 news/newsfetch/distinfo         |   4 ++--
 news/newsfetch/patches/patch-aa |  14 +++++++-------
 3 files changed, 14 insertions(+), 10 deletions(-)

diffs (81 lines):

diff -r 052e15af691a -r cd1d3bb140f6 news/newsfetch/Makefile
--- a/news/newsfetch/Makefile   Thu Oct 29 22:37:18 2009 +0000
+++ b/news/newsfetch/Makefile   Thu Oct 29 22:40:23 2009 +0000
@@ -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 @@
 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 @@
 LDFLAGS+=      -lsocket -lnsl -lresolv
 .endif
 
+INSTALLATION_DIRS+=    bin ${PKGMANDIR}/man1
+
 .include "../../mk/bsd.pkg.mk"
diff -r 052e15af691a -r cd1d3bb140f6 news/newsfetch/distinfo
--- a/news/newsfetch/distinfo   Thu Oct 29 22:37:18 2009 +0000
+++ b/news/newsfetch/distinfo   Thu Oct 29 22:40:23 2009 +0000
@@ -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 -r 052e15af691a -r cd1d3bb140f6 news/newsfetch/patches/patch-aa
--- a/news/newsfetch/patches/patch-aa   Thu Oct 29 22:37:18 2009 +0000
+++ b/news/newsfetch/patches/patch-aa   Thu Oct 29 22:40:23 2009 +0000
@@ -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 @@
  
  .c.o:
        $(CC) -c $(CFLAGS) $< 
-@@ -25,10 +24,8 @@
+@@ -25,10 +24,8 @@ clean:
        rm -f *.o newsfetch
  
  install:



Home | Main Index | Thread Index | Old Index