1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/security/pwauth/Makefile
Pawel Pekala 249d603b8a - Update to version 2.3.11
- Add LICENSE
- Support staging

PR:		ports/187216
Submitted by:	Takefu <takefu@airport.fm>
Approved by:	maintainer timeout
2014-03-20 15:15:57 +00:00

39 lines
871 B
Makefile

# Created by: clement
# $FreeBSD$
PORTNAME= pwauth
PORTVERSION= 2.3.11
CATEGORIES= security www
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
http://www.unixpapa.com/software/
MAINTAINER= eg@fbsd.lt
COMMENT= Unix Web Authenticator
LICENSE= BSD3CLAUSE
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:
@${INSTALL_PROGRAM} ${WRKSRC}/pwauth ${STAGEDIR}${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/checkfaillog ${STAGEDIR}${PREFIX}/bin
@${CHMOD} u=rxs ${STAGEDIR}${PREFIX}/bin/pwauth
.include <bsd.port.post.mk>