aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2014-07-05 15:10:26 +0800
committercy <cy@FreeBSD.org>2014-07-05 15:10:26 +0800
commit6868fcb1b26e81b689dca6d9425943d7b9446174 (patch)
tree8ecdc19428bfb9d2e4672eabc656057f1c7ff03f
parente4edf51914ab6d78e548fc0b3d5bf60094c5b299 (diff)
downloadfreebsd-ports-gnome-6868fcb1b26e81b689dca6d9425943d7b9446174.tar.gz
freebsd-ports-gnome-6868fcb1b26e81b689dca6d9425943d7b9446174.tar.zst
freebsd-ports-gnome-6868fcb1b26e81b689dca6d9425943d7b9446174.zip
Stagify and adopt these orphans.
-rw-r--r--security/cracklib/Makefile51
-rw-r--r--security/racoon2/Makefile27
-rw-r--r--security/racoon2/files/patch-pskgen-Makefile.in10
-rw-r--r--security/racoon2/pkg-plist9
4 files changed, 77 insertions, 20 deletions
diff --git a/security/cracklib/Makefile b/security/cracklib/Makefile
index 949f634f4033..0fab1102c076 100644
--- a/security/cracklib/Makefile
+++ b/security/cracklib/Makefile
@@ -10,7 +10,7 @@ CATEGORIES+= python
MASTER_SITES= SF \
LOCAL/${MAINTAINER:C/([^@]*)@.*/\1/}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= cy@FreeBSD.org
COMMENT?= Password-checking library
LICENSE= LGPL21
@@ -20,7 +20,6 @@ DICTFILE= ${DICTPATH}/pw_dict
GNU_CONFIGURE= yes
CONFIGURE_ARGS=--with-default-dict=${DICTPATH}
USE_LDCONFIG= yes
-NO_STAGE= yes
.if defined(PYTHON_SLAVEPORT)
USE_PYTHON= yes
@@ -54,7 +53,42 @@ PLIST_FILES= include/crack.h \
sbin/cracklib-unpacker \
sbin/create-cracklib-dict \
%%DATADIR%%/cracklib-small \
- %%DATADIR%%/cracklib.magic
+ %%DATADIR%%/cracklib.magic \
+ share/locale/as/LC_MESSAGES/cracklib.mo \
+ share/locale/bn_IN/LC_MESSAGES/cracklib.mo \
+ share/locale/cs/LC_MESSAGES/cracklib.mo \
+ share/locale/da/LC_MESSAGES/cracklib.mo \
+ share/locale/de/LC_MESSAGES/cracklib.mo \
+ share/locale/el/LC_MESSAGES/cracklib.mo \
+ share/locale/es/LC_MESSAGES/cracklib.mo \
+ share/locale/fi/LC_MESSAGES/cracklib.mo \
+ share/locale/fr/LC_MESSAGES/cracklib.mo \
+ share/locale/gu/LC_MESSAGES/cracklib.mo \
+ share/locale/hi/LC_MESSAGES/cracklib.mo \
+ share/locale/hu/LC_MESSAGES/cracklib.mo \
+ share/locale/it/LC_MESSAGES/cracklib.mo \
+ share/locale/ja/LC_MESSAGES/cracklib.mo \
+ share/locale/kn/LC_MESSAGES/cracklib.mo \
+ share/locale/ko/LC_MESSAGES/cracklib.mo \
+ share/locale/lt/LC_MESSAGES/cracklib.mo \
+ share/locale/ml/LC_MESSAGES/cracklib.mo \
+ share/locale/mr/LC_MESSAGES/cracklib.mo \
+ share/locale/nb/LC_MESSAGES/cracklib.mo \
+ share/locale/nl/LC_MESSAGES/cracklib.mo \
+ share/locale/or/LC_MESSAGES/cracklib.mo \
+ share/locale/pa/LC_MESSAGES/cracklib.mo \
+ share/locale/pl/LC_MESSAGES/cracklib.mo \
+ share/locale/pt/LC_MESSAGES/cracklib.mo \
+ share/locale/pt_BR/LC_MESSAGES/cracklib.mo \
+ share/locale/ru/LC_MESSAGES/cracklib.mo \
+ share/locale/sk/LC_MESSAGES/cracklib.mo \
+ share/locale/sl_SI/LC_MESSAGES/cracklib.mo \
+ share/locale/ta/LC_MESSAGES/cracklib.mo \
+ share/locale/te/LC_MESSAGES/cracklib.mo \
+ share/locale/tr/LC_MESSAGES/cracklib.mo \
+ share/locale/uk/LC_MESSAGES/cracklib.mo \
+ share/locale/zh_CN/LC_MESSAGES/cracklib.mo \
+ share/locale/zh_TW/LC_MESSAGES/cracklib.mo
.endif
.if defined(PYTHON_SLAVEPORT)
@@ -66,13 +100,14 @@ regression-test: extract
${PYTHON_CMD} -c \
"from test_${PORTNAME} import run; run(use_dictpath=\"${DICTFILE}\")")
.else
-MAN3= ${PORTNAME}.3
-MLINKS= ${PORTNAME}.3 FascistCheck.3
+PLIST_FILES+= man/man3/${PORTNAME}.3.gz \
+ @exec\ ln\ -s\ man/man3/${PORTNAME}.3.gz\ man/man3/FascistCheck.3.gz \
+ @unexec\ rm\ man/man3/FascistCheck.3.gz
post-install:
- ${INSTALL_MAN} ${FILESDIR}/${MAN3} ${MAN3PREFIX}/man/man3/
- @${MKDIR} ${DICTPATH}
- ${INSTALL_DATA} ${FILESDIR}/pw_dict* ${DICTPATH}/
+ ${INSTALL_MAN} ${FILESDIR}/${PORTNAME}.3 ${STAGEDIR}${MAN3PREFIX}/man/man3/
+ @${MKDIR} ${STAGEDIR}${DICTPATH}
+ ${INSTALL_DATA} ${FILESDIR}/pw_dict* ${STAGEDIR}${DICTPATH}/
.endif
.include <bsd.port.mk>
diff --git a/security/racoon2/Makefile b/security/racoon2/Makefile
index 38c6d5785bc9..a6bf53cf07e1 100644
--- a/security/racoon2/Makefile
+++ b/security/racoon2/Makefile
@@ -8,23 +8,26 @@ CATEGORIES= security net ipv6
MASTER_SITES= ftp://ftp.racoon2.wide.ad.jp/pub/racoon2/
EXTRACT_SUFX= .tgz
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= cy@FreeBSD.org
COMMENT= Racoon2 IPsec daemon
+USES= perl5
USE_RC_SUBR= YES
USE_OPENSSL= YES
USE_AUTOTOOLS= autoconf
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --prefix=${STAGEDIR}${PREFIX}
CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc/racoon2
CONFIGURE_ENV= YACC=/usr/bin/yacc
OPTIONS_DEFINE= KINK DOCS
KINK_DESC= Enable KINK support
-NO_STAGE= yes
.include <bsd.port.pre.mk>
+PLIST_SUB+= PFX=${PREFIX}
+
pre-configure:
.if ${PORT_OPTIONS:MKINK}
.if !exists(/usr/lib/libkrb5.a)
@@ -34,7 +37,6 @@ PLIST_SUB+= KINK="@comment "
.else
CONFIGURE_ARGS+= --enable-kinkd
MAKE_ENV= WITH_KINK=yes
-MAN8+= kinkd.8
PLIST_SUB+= KINK=""
.endif
.else
@@ -52,23 +54,26 @@ PORTDOCS+= kinkd-install.ja.txt kinkd-state-txn.obj
.endif
.endif
-MAN8+= spmd.8 spmdctl.8 pskgen.8 iked.8
-
post-patch:
.if ${PORT_OPTIONS:MDOCS}
.for FILE in ${PORTDOCS}
- @${REINPLACE_CMD} -e 's|/usr/local/racoon2|${LOCALBASE}|' ${WRKSRC}/doc/${FILE}
+ @${REINPLACE_CMD} -e 's|/usr/local/racoon2|${PREFIX}|' ${WRKSRC}/doc/${FILE}
.endfor
.endif
+post-configure:
+ @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -e '/INSTALL/s|\$$([a-z].*dir)|${STAGEDIR}&|'
+ @${REINPLACE_CMD} -e '1s|/usr/bin/perl|${PERL}|' ${WRKSRC}/pskgen/pskgen
+ @${REINPLACE_CMD} -e '/^prefix=/s|/usr/local|${STAGEDIR}${PREFIX}|;/\/var\/run\/racoon2/d' ${WRKSRC}/samples/Makefile
+
post-install:
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.jp ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYRIGHT.jp ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.for FILE in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
@if [ -z `/sbin/sysctl -a | ${GREP} -q ipsec && echo ipsec` ]; then \
diff --git a/security/racoon2/files/patch-pskgen-Makefile.in b/security/racoon2/files/patch-pskgen-Makefile.in
new file mode 100644
index 000000000000..d2c90bb0941d
--- /dev/null
+++ b/security/racoon2/files/patch-pskgen-Makefile.in
@@ -0,0 +1,10 @@
+--- pskgen/Makefile.in.orig 2007-12-11 23:12:22.000000000 -0800
++++ pskgen/Makefile.in 2014-07-04 13:38:23.919692384 -0700
+@@ -21,7 +21,6 @@
+ $(INSTALL_SCRIPT) $(PROG) $(sbindir)
+ $(INSTALL_DATA) $(PROG).8 $(mandir)/man8
+ $(INSTALL) -d $(prefix)/etc/racoon2
+- sh ./autogen.spmd.pwd
+
+ depend:
+
diff --git a/security/racoon2/pkg-plist b/security/racoon2/pkg-plist
index 5a7efefa26c9..e5234195a6b0 100644
--- a/security/racoon2/pkg-plist
+++ b/security/racoon2/pkg-plist
@@ -3,7 +3,6 @@ sbin/iked
sbin/spmd
sbin/spmdctl
sbin/pskgen
-etc/racoon2/spmd.pwd
etc/racoon2/default.conf.sample
etc/racoon2/local-test.conf.sample
etc/racoon2/racoon2.conf.sample
@@ -31,6 +30,14 @@ etc/rc.d/spmd
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT.jp
%%PORTDOCS%%%%DOCSDIR%%/README
+man/man8/spmd.8.gz
+man/man8/spmdctl.8.gz
+man/man8/pskgen.8.gz
+man/man8/iked.8.gz
+%%KINK%%man/man8/kinkd.8.gz
+@exec test -f %%PFX%%/etc/racoon2/spmd.pwd && mv %%PFX%%/etc/racoon2/spmd.pwd %%PFX%%/etc/racoon2/spmd.pwd.bak && %%PFX%%/pskgen -r -o %%PFX%%/etc/racoon2/spmd.pwd
+@unexec rm -f %%PFX/etc/racoon2/spmd.pwd
+@exec /usr/sbin/install -d -o 0 -g 0 -m 700 /var/run/racoon2
@dirrm etc/racoon2/cert
@dirrm etc/racoon2/hook/ph1-up.d
@dirrm etc/racoon2/hook/ph1-down.d