1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/security/pwauth/Makefile
Beech Rintoul 69cc692bfd - update to 2.3.10
- unbreak build on FreeBSD 9.X, 10.X

PR:		ports/167781
Submitted by:	Edmondas Girkantas <eg@fbsd.lt> (maintainer)
2012-05-10 22:02:13 +00:00

42 lines
920 B
Makefile

# New ports collection makefile for: pwauth
# Date created: Oct 14 2004
# Whom: clement
#
# $FreeBSD$
#
PORTNAME= pwauth
PORTVERSION= 2.3.10
CATEGORIES= security www
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
http://www.unixpapa.com/software/
MAINTAINER= eg@fbsd.lt
COMMENT= A Unix Web Authenticator
PLIST_FILES= bin/pwauth bin/checkfaillog
ALL_TARGET= pwauth checkfaillog
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIB="-lcrypt -lpam"
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 900007
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-utmpx
.endif
WWWUID!= ${ID} -u ${WWWOWN}
MINUID?= 1000
post-patch:
@${REINPLACE_CMD} "s/%%UIDS%%/${WWWUID}/ ; \
s/%%MINUID%%/${MINUID}/" ${WRKSRC}/config.h
do-install:
-@${MKDIR} ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/pwauth ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/checkfaillog ${PREFIX}/bin
@${CHMOD} u=rxs ${PREFIX}/bin/pwauth
.include <bsd.port.post.mk>