1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/security/pam_smb/Makefile
Sergey A. Osokin c5b1ae27e5 Update to latest version 2.0.0rc6, released in September, 2003.
Announce available at
http://mailman.csn.ul.ie/pipermail/pam_smb/2003q3/000279.html
Remove http://pamsmb.sourceforge.net/v2/ from MASTER_SITES,
because it doesn't containes the latest version.

Submitted by:	Kimura Fuyuki <fuyuki@nigredo.org>
PR:		63861
2004-03-11 10:22:35 +00:00

53 lines
1.6 KiB
Makefile

# New ports collection makefile for: pam_smb
# Date created: 20 Jun 2001
# Whom: nsayer
#
# $FreeBSD$
PORTNAME= pam_smb
PORTVERSION= 2.0.0.r6
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_SAMBA} \
http://www.csn.ul.ie/~airlied/pam_smb/v2/
MASTER_SITE_SUBDIR= pam_smb/v2
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r/-rc/}
MAINTAINER= ports@FreeBSD.org
COMMENT= NetBIOS domain logon PAM module
INSTALLS_SHLIB= yes
HAS_CONFIGURE= yes
USE_GMAKE= yes
USE_PERL5= yes
USE_REINPLACE= yes
STARTUP_SCRIPT= pam_smbd.sh.sample
WRKSRC= ${WRKDIR}/${DISTNAME}
post-patch:
@${REINPLACE_CMD} -e s,%%PREFIX%%,${PREFIX}, ${WRKSRC}/pamsmbd/pam_read_conf.c
@${REINPLACE_CMD} -e "s,-fPIC,-fPIC -DPIC," \
${WRKSRC}/configure ${WRKSRC}/configure.in
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pamsmbd/pamsmbd ${PREFIX}/sbin/
${INSTALL_DATA} ${WRKSRC}/pamsmbm/pam_smb_auth.so ${PREFIX}/lib/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/BUGS ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
.endif
${INSTALL_DATA} ${WRKSRC}/pam_smb.conf.example ${PREFIX}/etc/
${INSTALL_DATA} ${WRKSRC}/pam_smb.conf.example2 ${PREFIX}/etc/
${INSTALL_SCRIPT} ${FILESDIR}/${STARTUP_SCRIPT} ${PREFIX}/etc/rc.d/
${REINPLACE_CMD} -e s,%%PREFIX%%,${PREFIX}, ${PREFIX}/etc/rc.d/${STARTUP_SCRIPT}
${RM} ${PREFIX}/etc/rc.d/${STARTUP_SCRIPT}.bak
post-install:
@${SED} -e 's,%%PREFIX%%,${PREFIX},g' ${PKGMESSAGE}
.include <bsd.port.mk>