pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/ssh-ip-tunnel * Honor PKGMANDIR and PKG_SYSCO...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7d39e32530aa
branches: trunk
changeset: 536947:7d39e32530aa
user: obache <obache%pkgsrc.org@localhost>
date: Sun Dec 30 09:15:36 2007 +0000
description:
* Honor PKGMANDIR and PKG_SYSCONFBASE.
* Install config files by CONF_FILES instead of install directly.
* Correct path of tools and config in sample config files and a manual page.
* Add DESTDIR support.
Bump PKGREVISION.
diffstat:
security/ssh-ip-tunnel/Makefile | 27 ++++++++++++++++++++++++++-
security/ssh-ip-tunnel/PLIST | 12 ++++++------
security/ssh-ip-tunnel/distinfo | 3 ++-
security/ssh-ip-tunnel/patches/patch-aa | 33 +++++++++++++++++++++++++++++++++
4 files changed, 67 insertions(+), 8 deletions(-)
diffs (113 lines):
diff -r 5bbc5b19405b -r 7d39e32530aa security/ssh-ip-tunnel/Makefile
--- a/security/ssh-ip-tunnel/Makefile Sun Dec 30 01:08:27 2007 +0000
+++ b/security/ssh-ip-tunnel/Makefile Sun Dec 30 09:15:36 2007 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2004/05/31 22:13:16 kristerw Exp $
+# $NetBSD: Makefile,v 1.15 2007/12/30 09:15:36 obache Exp $
DISTNAME= vpn-1.0
PKGNAME= ssh-ip-tunnel-1.0
+PKGREVISION= 1
CATEGORIES= security net
MASTER_SITES= http://bleu.west.spy.net/~dustin/soft/
@@ -11,10 +12,34 @@
DEPENDS+= pty-redir-0.1:../../misc/pty-redir
.if !exists(/usr/bin/ssh)
DEPENDS+= {openssh-[0-9]*,ssh{,6}-1.2.27*}:../../security/openssh
+SSH= ${PREFIX}/bin/ssh
+.else
+SSH= /usr/bin/ssh
.endif
CONFLICTS= vpn-1.0
GNU_CONFIGURE= YES
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+
+SUBST_CLASSES+= path
+SUBST_STAGE.path= post-configure
+SUBST_FILES.path= etc/global.conf
+SUBST_SED.path= -e 's,/usr/local/bin/ssh,${SSH},g'
+SUBST_SED.path+= -e 's,/usr/pkg/bin/pty-redir,${PREFIX}/bin/pty-redir,g'
+
+SUBST_CLASSES+= conf
+SUBST_STAGE.conf= post-configure
+SUBST_FILES.conf= man/vpn.8 etc/peers/sample.peer
+SUBST_SED.conf= -e 's,/usr/pkg/etc/vpn,${PKG_SYSCONFDIR},g'
+
+PKG_SYSCONFSUBDIR= vpn
+
+OWN_DIRS+= ${PKG_SYSCONFDIR}/peers
+CONF_FILES+= ${PREFIX}/share/examples/vpn/global.conf ${PKG_SYSCONFDIR}/global.conf
+CONF_FILES+= ${PREFIX}/share/examples/vpn/peers/sample.peer ${PKG_SYSCONFDIR}/peers/sample.peer
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../mk/bsd.pkg.mk"
diff -r 5bbc5b19405b -r 7d39e32530aa security/ssh-ip-tunnel/PLIST
--- a/security/ssh-ip-tunnel/PLIST Sun Dec 30 01:08:27 2007 +0000
+++ b/security/ssh-ip-tunnel/PLIST Sun Dec 30 09:15:36 2007 +0000
@@ -1,7 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 01:17:54 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2007/12/30 09:15:36 obache Exp $
+man/man8/vpn.8
sbin/vpn
-etc/vpn/peers/sample.peer
-etc/vpn/global.conf
-man/man8/vpn.8
-@unexec /bin/rm -rf %D/etc/vpn/peers
-@dirrm etc/vpn
+share/examples/vpn/global.conf
+share/examples/vpn/peers/sample.peer
+@dirrm share/examples/vpn/peers
+@dirrm share/examples/vpn
diff -r 5bbc5b19405b -r 7d39e32530aa security/ssh-ip-tunnel/distinfo
--- a/security/ssh-ip-tunnel/distinfo Sun Dec 30 01:08:27 2007 +0000
+++ b/security/ssh-ip-tunnel/distinfo Sun Dec 30 09:15:36 2007 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.3 2005/02/24 13:10:13 agc Exp $
+$NetBSD: distinfo,v 1.4 2007/12/30 09:15:36 obache Exp $
SHA1 (vpn-1.0.tar.gz) = b0cdc510dda909fa76635896163ddebd35b8f1e1
RMD160 (vpn-1.0.tar.gz) = 4f2d2f8b589ef21f27cb4f7568aa2def10c986b6
Size (vpn-1.0.tar.gz) = 10652 bytes
+SHA1 (patch-aa) = e68b77038c2a5839b65be68ce24cdb5241e3c71c
diff -r 5bbc5b19405b -r 7d39e32530aa security/ssh-ip-tunnel/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/ssh-ip-tunnel/patches/patch-aa Sun Dec 30 09:15:36 2007 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-aa,v 1.1 2007/12/30 09:15:36 obache Exp $
+
+--- Makefile.in.orig 1999-02-22 07:22:29.000000000 +0000
++++ Makefile.in
+@@ -5,21 +5,16 @@ all: sbin/vpn.inst
+
+
+ sbin/vpn.inst:
+- sed s,@CONFIGDIR@,$(PREFIX)/etc/vpn,g sbin/vpn > sbin/vpn.inst
++ sed s,@CONFIGDIR@,@sysconfdir@,g sbin/vpn > sbin/vpn.inst
+
+ # This would probably be a *little* nicer if I assumed a BSD install
+ install: sbin/vpn.inst
+- mkdir -p $(PREFIX)/etc
+- cp -r etc $(PREFIX)/etc/vpn
+- chown root.wheel $(PREFIX)/etc/vpn
+- chmod 750 $(PREFIX)/etc/vpn
+- cp -r sbin/vpn.inst $(PREFIX)/sbin/vpn
+- chown root.wheel $(PREFIX)/sbin/vpn
+- chmod 750 $(PREFIX)/sbin/vpn
+- mkdir -p $(PREFIX)/man/man8
+- chmod 755 $(PREFIX)/man $(PREFIX)/man/man8
+- cp man/vpn.8 $(PREFIX)/man/man8
+- chmod 644 $(PREFIX)/man/man8/vpn.8
++ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(PREFIX)/share/examples/vpn
++ cd etc && pax -wr * $(DESTDIR)$(PREFIX)/share/examples/vpn
++ ${BSD_INSTALL_PROGRAM_DIR} $(DESTDIR)$(PREFIX)/sbin
++ ${BSD_INSTALL_SCRIPT} sbin/vpn.inst $(DESTDIR)$(PREFIX)/sbin/vpn
++ ${BSD_INSTALL_MAN_DIR} $(DESTDIR)@mandir@/man8
++ ${BSD_INSTALL_MAN} man/vpn.8 $(DESTDIR)@mandir@/man8
+
+ clean:
+ rm -f sbin/vpn.inst
Home |
Main Index |
Thread Index |
Old Index