mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
- Pass -Dbsd_with_getifaddrs to CFLAGS in order to get a correct network
interface list [1] PR: 155974 [1] Submitted by: David Naylor <naylor.b.david@gmail.com> [1]
This commit is contained in:
parent
3fd80b7558
commit
dcab57a368
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=271946
1
GIDs
1
GIDs
@ -190,3 +190,4 @@ erlyvideo:*:935:
|
||||
crtmpserver:*:936:
|
||||
get_iplayer:*:937:
|
||||
vdr:*:938:
|
||||
noip:*:939:
|
||||
|
1
UIDs
1
UIDs
@ -198,3 +198,4 @@ erlyvideo:*:935:935::0:0:erlyvideo user:/nonexistent:/sbin/nologin
|
||||
crtmpserver:*:936:936::0:0:crtmpserver user:/nonexistent:/sbin/nologin
|
||||
get_iplayer:*:937:937::0:0:get_iplayer user:/nonexistent:/sbin/nologin
|
||||
vdr:*:938:938::0:0:vdr user:/nonexistent:/usr/sbin/nologin
|
||||
noip:*:939:939::0:0:noip user:/nonexistent:/usr/sbin/nologin
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= noip
|
||||
PORTVERSION= 2.1.9
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= http://www.no-ip.com/client/linux/ \
|
||||
CRITICAL
|
||||
@ -21,9 +22,12 @@ USE_RC_SUBR= noip
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
pre-install:
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} \
|
||||
${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
||||
CFLAGS+= -Dbsd_with_getifaddrs
|
||||
|
||||
USERS= noip
|
||||
GROUPS= noip
|
||||
|
||||
PLIST_SUB+= USER="${USERS}"
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/noip2 ${PREFIX}/bin
|
||||
|
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig 2009-11-17 20:19:54.000000000 +0100
|
||||
+++ Makefile 2009-11-17 20:22:51.000000000 +0100
|
||||
--- Makefile.orig 2008-11-21 23:27:15.000000000 +0100
|
||||
+++ Makefile 2011-03-28 18:15:31.000000000 +0200
|
||||
@@ -1,8 +1,8 @@
|
||||
TGT=noip2
|
||||
-CC=gcc
|
||||
@ -25,7 +25,7 @@
|
||||
|
||||
${TGT}: Makefile ${TGT}.c
|
||||
- ${CC} -Wall -g -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
|
||||
+ ${CC} -Wall -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
|
||||
+ ${CC} ${CFLAGS} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS}
|
||||
|
||||
install: ${TGT}
|
||||
if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi
|
||||
|
@ -1,20 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$2" != "POST-DEINSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
PW=/usr/sbin/pw
|
||||
ECHO=echo
|
||||
USER=noip
|
||||
GROUP=${USER}
|
||||
if [ -f ${PKG_PREFIX}/etc/no-ip2.conf ]; then
|
||||
${ECHO} "To delete noip configuration permanently: rm ${PKG_PREFIX}/etc/no-ip2.conf"
|
||||
fi
|
||||
if ${PW} usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
${ECHO} "To delete noip user permanently: ${PW} userdel ${USER}"
|
||||
fi
|
||||
if ${PW} groupshow "${GROUP}" 2>/dev/null 1>&2; then
|
||||
${ECHO} "To delete noip group permanently: ${PW} groupdel ${GROUP}"
|
||||
fi
|
||||
exit 0
|
@ -1,32 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$2" != "PRE-INSTALL" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
PW=/usr/sbin/pw
|
||||
ECHO=echo
|
||||
USER=noip
|
||||
GROUP=${USER}
|
||||
|
||||
if ! ${PW} groupshow "${GROUP}" 2>/dev/null 1>&2; then
|
||||
if ${PW} groupadd ${GROUP}; then
|
||||
${ECHO} "Added group \"${GROUP}\"."
|
||||
else
|
||||
${ECHO} "Adding group \"${GROUP}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! ${PW} usershow "${USER}" 2>/dev/null 1>&2; then
|
||||
if ${PW} useradd ${USER} -g ${GROUP} -h - \
|
||||
-s "/sbin/nologin" -d "/nonexistent" \
|
||||
-c "noip pseudo-user"; \
|
||||
then
|
||||
${ECHO} "Added user \"${USER}\"."
|
||||
else
|
||||
${ECHO} "Adding user \"${USER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
exit 0
|
@ -2,3 +2,4 @@ bin/noip2
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.FIRST
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYING
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
@unexec printf "\nTo delete %%USER%% user/group permanently:\npw userdel %%USER%%\n\n"
|
||||
|
Loading…
Reference in New Issue
Block a user