security/openvpn: rearrange Makefile
to portclippy-reported standard ordering
This commit is contained in:
parent
130a5d7e5a
commit
89d9e9320a
|
@ -21,9 +21,6 @@ SHEBANG_FILES= sample/sample-scripts/verify-cn \
|
|||
sample/sample-scripts/auth-pam.pl \
|
||||
sample/sample-scripts/ucn.pl
|
||||
|
||||
USERS= openvpn
|
||||
GROUPS= openvpn
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --enable-strict
|
||||
# set PLUGIN_LIBDIR so that unqualified plugin paths are found:
|
||||
|
@ -33,6 +30,9 @@ CONFLICTS_INSTALL?= openvpn-2.[!5].* openvpn-devel-[0-9]* openvpn-mbedtls-[0-9]*
|
|||
|
||||
SUB_FILES= pkg-message openvpn-client
|
||||
|
||||
USERS= openvpn
|
||||
GROUPS= openvpn
|
||||
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
|
@ -103,6 +103,13 @@ _tlslibs=libssl libcrypto
|
|||
CONFIGURE_ARGS+= --enable-comp-stub
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -E -i '' -e 's/(user|group) nobody/\1 openvpn/' \
|
||||
-e 's/"nobody"( after init)/"openvpn" \1/' \
|
||||
${WRKSRC}/sample/sample-config-files/*.conf \
|
||||
${WRKSRC}/sample/sample-config-files/xinetd-*-config \
|
||||
${WRKSRC}/doc/man-sections/generic-options.rst
|
||||
|
||||
pre-configure:
|
||||
.ifdef (LOG_OPENVPN)
|
||||
@${ECHO} "Building with LOG_OPENVPN=${LOG_OPENVPN}"
|
||||
|
@ -122,13 +129,6 @@ pre-configure:
|
|||
@${ECHO} "### --------------------------------------------------------- ###"
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -E -i '' -e 's/(user|group) nobody/\1 openvpn/' \
|
||||
-e 's/"nobody"( after init)/"openvpn" \1/' \
|
||||
${WRKSRC}/sample/sample-config-files/*.conf \
|
||||
${WRKSRC}/sample/sample-config-files/xinetd-*-config \
|
||||
${WRKSRC}/doc/man-sections/generic-options.rst
|
||||
|
||||
post-configure:
|
||||
${REINPLACE_CMD} '/^CFLAGS =/s/$$/ -fPIC/' \
|
||||
${WRKSRC}/src/plugins/auth-pam/Makefile \
|
||||
|
|
Loading…
Reference in New Issue
Block a user