- Fix installation from non-root

- Mark broken: does not work properly
This commit is contained in:
Dmitry Marakasov 2015-03-04 05:18:31 +00:00
parent 58e13ab01f
commit dadf5d9ecb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=380409
2 changed files with 6 additions and 11 deletions

View file

@ -12,21 +12,14 @@ COMMENT= Ultrafast implementation of ping
LICENSE= BSD3CLAUSE
BROKEN= Does not work (sendto: Invalid argument)
OPTIONS_DEFINE= SUID
SUID_DESC= Install with the sticky bit (mode 4110)
OPTIONS_SUB= yes
SUID_DESC= Install with the setuid bit (mode 4110)
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSUID}
BINMODE= 4110
.else
BINMODE= 0100
.endif
do-build:
${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c

2
net/netselect/pkg-plist Normal file
View file

@ -0,0 +1,2 @@
%%SUID%%@(root,wheel,4110) bin/netselect
%%NO_SUID%%@(root,wheel,100) bin/netselect