* set LICENSE=gnu-gpl-v2

* honor PKG_SYSCONFDIR
* add DESTDIR support.
This commit is contained in:
obache 2009-05-16 08:10:03 +00:00
parent db41e30fa8
commit beed4a9299
3 changed files with 18 additions and 12 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2006/03/04 21:30:43 jlam Exp $
# $NetBSD: Makefile,v 1.14 2009/05/16 08:10:03 obache Exp $
#
DISTNAME= swapd-1.0.3
@ -10,8 +10,12 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.rkeene.org/oss/swapd/
COMMENT= Swap daemon for POSIX-compliant operating systems
LICENSE= gnu-gpl-v2
ONLY_FOR_PLATFORM= NetBSD-*-* SunOS-*-* Linux-*-*
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
GNU_CONFIGURE= yes
@ -20,5 +24,7 @@ RCD_SCRIPTS= swapd
EGDIR= ${PREFIX}/share/examples/swapd
CONF_FILES= ${EGDIR}/swapd.conf ${PKG_SYSCONFDIR}/swapd.conf
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
.include "../../devel/libstatgrab/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.5 2005/02/24 13:40:58 agc Exp $
$NetBSD: distinfo,v 1.6 2009/05/16 08:10:03 obache Exp $
SHA1 (swapd-1.0.3.tar.gz) = d2f567767ded2382c24505565e8aea1b8d88a746
RMD160 (swapd-1.0.3.tar.gz) = a7a30f3c8e8ce5407df04ce5a5a1a3cfaf15a266
Size (swapd-1.0.3.tar.gz) = 90981 bytes
SHA1 (patch-ab) = 739bd4dca1287676b5a32304f96bc214da160b72
SHA1 (patch-ab) = 93e9315281390a9029df62df6fd885605c55da43

View file

@ -1,4 +1,4 @@
$NetBSD: patch-ab,v 1.1.1.1 2004/10/30 05:06:15 xtraeme Exp $
$NetBSD: patch-ab,v 1.2 2009/05/16 08:10:03 obache Exp $
--- Makefile.in.orig 2004-10-30 05:53:53.000000000 +0200
+++ Makefile.in 2004-10-30 05:56:22.000000000 +0200
@ -23,11 +23,11 @@ $NetBSD: patch-ab,v 1.1.1.1 2004/10/30 05:06:15 xtraeme Exp $
- $(INSTALL) -m 644 swapd.conf $(sysconfdir)/swapd.conf
- $(INSTALL) -m 644 swapd.8 $(mandir)/man8/swapd.8
- $(INSTALL) -m 644 swapd.conf.5 $(mandir)/man5/swapd.conf.5
+ $(BSD_INSTALL_DATA_DIR) $(sbindir)
+ $(BSD_INSTALL_DATA_DIR) $(datadir)
+ $(BSD_INSTALL_MAN_DIR) $(mandir)/man8
+ $(BSD_INSTALL_MAN_DIR) $(mandir)/man5
+ $(BSD_INSTALL_PROGRAM) swapd$(EXEEXT) $(sbindir)/swapd$(EXEEXT)
+ $(BSD_INSTALL_DATA) swapd.conf $(datadir)/swapd.conf
+ $(BSD_INSTALL_MAN) swapd.8 $(mandir)/man8/swapd.8
+ $(BSD_INSTALL_MAN) swapd.conf.5 $(mandir)/man5/swapd.conf.5
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(sbindir)
+ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(datadir)
+ $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(mandir)/man8
+ $(BSD_INSTALL_MAN_DIR) $(DESTDIR)$(mandir)/man5
+ $(BSD_INSTALL_PROGRAM) swapd$(EXEEXT) $(DESTDIR)$(sbindir)/swapd$(EXEEXT)
+ $(BSD_INSTALL_DATA) swapd.conf $(DESTDIR)$(datadir)/swapd.conf
+ $(BSD_INSTALL_MAN) swapd.8 $(DESTDIR)$(mandir)/man8/swapd.8
+ $(BSD_INSTALL_MAN) swapd.conf.5 $(DESTDIR)$(mandir)/man5/swapd.conf.5