1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

- 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)
This commit is contained in:
Ion-Mihai Tetcu 2006-06-17 23:56:56 +00:00
parent 552a05f8b0
commit 67b6eb2ad3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=165673
2 changed files with 14 additions and 6 deletions

View File

@ -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>

View File

@ -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