freebsd-ports/net/netselect/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

35 lines
870 B
Makefile

# Created by: Timothy Redaelli <drizzt@gufi.org>
# $FreeBSD$
PORTNAME= netselect
PORTVERSION= 0.3
CATEGORIES= net
MASTER_SITES= http://apenwarr.ca/netselect/ \
GENTOO
MAINTAINER= ports@FreeBSD.org
COMMENT= Ultrafast implementation of ping
LICENSE= BSD3CLAUSE
OPTIONS_DEFINE= SUID DOCS
OPTIONS_SUB= yes
SUID_DESC= Install with the setuid bit to allow use by non-root users
EXTRACT_AFTER_ARGS=netselect/netselect.c netselect/README
WRKSRC= ${WRKDIR}/${PORTNAME}
do-build:
${CC} ${CFLAGS} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c
${REINPLACE_CMD} -E -i "" -e 's|[[:blank:]]+$$||' ${WRKSRC}/README
.include <bsd.port.options.mk>
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>