aboutsummaryrefslogtreecommitdiffstats
path: root/security/openvpn-admin
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2006-06-18 07:56:56 +0800
committeritetcu <itetcu@FreeBSD.org>2006-06-18 07:56:56 +0800
commit3c1e1456815558ef2f7ba6a231e5ca264fc00783 (patch)
treee229c04797c870605f0c446fa0d50a73069c95eb /security/openvpn-admin
parent8085864ff9f7d65d77f1217b8e76cca329d233f0 (diff)
downloadfreebsd-ports-gnome-3c1e1456815558ef2f7ba6a231e5ca264fc00783.tar.gz
freebsd-ports-gnome-3c1e1456815558ef2f7ba6a231e5ca264fc00783.tar.zst
freebsd-ports-gnome-3c1e1456815558ef2f7ba6a231e5ca264fc00783.zip
- Install openvpn-admin.exe
- grammar improvement for BROKEN. - make openvpn-admin search for its configuration files in ${PREFIX}/etc/openvpn, and pre-create that directory. It will contain user data after use, so only @dirrmtry to remove it. - install openvpn-admin into ${PREFIX}/sbin/, to stick to the original installation logic, and in the same course also install openvpn-admin.pam without extension. PR: ports/95336 Submitted by: Andreas Kohn <andreas@syndrom23.de> Approved by: maintainer (via private email)
Diffstat (limited to 'security/openvpn-admin')
-rw-r--r--security/openvpn-admin/Makefile13
-rw-r--r--security/openvpn-admin/pkg-plist7
2 files changed, 14 insertions, 6 deletions
diff --git a/security/openvpn-admin/Makefile b/security/openvpn-admin/Makefile
index b051165fec52..341c20f3c303 100644
--- a/security/openvpn-admin/Makefile
+++ b/security/openvpn-admin/Makefile
@@ -7,7 +7,7 @@
PORTNAME= openvpn-admin
PORTVERSION= 1.9.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= security gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openvpnadmin
@@ -28,17 +28,22 @@ GNU_CONFIGURE= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
-BROKEN= "Some dependencies doesn't build on FreeBSD < 5.x"
+BROKEN= Some dependencies don't build on FreeBSD < 5.x
.endif
post-patch:
@${REINPLACE_CMD} -e 's,/usr/bin/iconv,${LOCALBASE}/bin/iconv,g' \
${WRKSRC}/intltool-merge.in
+ @${REINPLACE_CMD} -e 's,/etc/openvpn,${PREFIX}/etc/openvpn,' \
+ ${WRKSRC}/src/Configuration.cs
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/openvpn-admin ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/openvpn-admin.pam ${PREFIX}/etc/pam.d
+ ${INSTALL_SCRIPT} ${WRKSRC}/openvpn-admin ${PREFIX}/sbin
+ ${INSTALL_DATA} ${WRKSRC}/openvpn-admin.pam ${PREFIX}/etc/pam.d/openvpn-admin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/openvpn-admin.desktop ${DATADIR}
+ ${MKDIR} ${PREFIX}/lib/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/src/openvpn-admin.exe ${PREFIX}/lib/${PORTNAME}
+ ${MKDIR} ${PREFIX}/etc/openvpn
.include <bsd.port.post.mk>
diff --git a/security/openvpn-admin/pkg-plist b/security/openvpn-admin/pkg-plist
index abae58d9c70c..bbeab48b3dfd 100644
--- a/security/openvpn-admin/pkg-plist
+++ b/security/openvpn-admin/pkg-plist
@@ -1,4 +1,7 @@
-bin/openvpn-admin
-etc/pam.d/openvpn-admin.pam
+sbin/openvpn-admin
+lib/openvpn-admin/openvpn-admin.exe
+etc/pam.d/openvpn-admin
%%DATADIR%%/openvpn-admin.desktop
@dirrm %%DATADIR%%
+@dirrm lib/openvpn-admin
+@dirrmtry etc/openvpn