freebsd-ports/www/fcgiwrap/Makefile
Matthew Seaman 6d6ae0b87c Avoid accidentally killing init or other important processes when
running 'service fcgiwrap onestop' if /var/run/fcgiwrap/fcgiwrap.pid
doesn't exist or contain the fcgiwrap PID.

This prevents killing any processes in process groups 0 or 1 or in the
caller's process group if the rc script cannot read the fcgiwrap
pidfile.

PR:		219724
Submitted by:	bblister@gmail.com
MFH:		2017Q2
2017-06-04 12:07:33 +00:00

35 lines
617 B
Makefile

# $FreeBSD$
PORTNAME= fcgiwrap
PORTVERSION= 1.1.0
PORTREVISION= 6
CATEGORIES= www
MAINTAINER= ports@FreeBSD.org
COMMENT= Simple FastCGI wrapper for CGI scripts
LICENSE= MIT
LIB_DEPENDS= libfcgi.so:www/fcgi
USES= autoreconf gmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= gnosek
USE_RC_SUBR= fcgiwrap
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
PLIST_FILES= sbin/fcgiwrap man/man8/fcgiwrap.8.gz
post-patch:
@${REINPLACE_CMD} -e 's/@prefix@@mandir@/@mandir@/'\
${WRKSRC}/Makefile.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/fcgiwrap
.include <bsd.port.mk>