From dadf5d9ecb17eabd486e191b546d6a8a9ddfa2ce Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Wed, 4 Mar 2015 05:18:31 +0000 Subject: - Fix installation from non-root - Mark broken: does not work properly --- net/netselect/Makefile | 15 ++++----------- net/netselect/pkg-plist | 2 ++ 2 files changed, 6 insertions(+), 11 deletions(-) create mode 100644 net/netselect/pkg-plist (limited to 'net') diff --git a/net/netselect/Makefile b/net/netselect/Makefile index b34847d0bb38..1d881985ea34 100644 --- a/net/netselect/Makefile +++ b/net/netselect/Makefile @@ -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 - -.if ${PORT_OPTIONS:MSUID} -BINMODE= 4110 -.else -BINMODE= 0100 -.endif - do-build: ${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c diff --git a/net/netselect/pkg-plist b/net/netselect/pkg-plist new file mode 100644 index 000000000000..b5ddfc583a9b --- /dev/null +++ b/net/netselect/pkg-plist @@ -0,0 +1,2 @@ +%%SUID%%@(root,wheel,4110) bin/netselect +%%NO_SUID%%@(root,wheel,100) bin/netselect -- cgit v1.2.3