summaryrefslogblamecommitdiff
path: root/security/sinfp/Makefile
blob: 15ce1c07c06e464f3375a6fe651861e55120d25e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             





                                                                  
                     
 
                                                                    
                                
 




                                                          
                        










                                                                                       

      
                                
# New ports collection makefile for:	sinfp
# Date created:		26 May 2006
# Whom:			Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	sinfp

BUILD_DEPENDS=	p5-Net-SinFP>=2.02:${PORTSDIR}/security/p5-Net-SinFP
RUN_DEPENDS:=	${BUILD_DEPENDS}

PLIST=		""
PLIST_FILES=	bin/${PORTNAME} %%DATADIR%%/${PORTNAME}.db
PLIST_DIRS=	%%DATADIR%%
NO_BUILD=	yes
MASTERDIR=	${.CURDIR}/../p5-Net-SinFP
DBDATE=		20080308

post-patch:
	@${REINPLACE_CMD} -e 's!$$Bin/../db/!${DATADIR}/!' ${WRKSRC}/bin/${PORTNAME}.pl

do-install:
	@${INSTALL} -d ${DATADIR}/
	@${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
.ifdef DBDATE
	@${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}-${DBDATE}.db ${DATADIR}/${PORTNAME}.db
.else
	@${INSTALL_DATA} ${WRKSRC}/bin/${PORTNAME}.db ${DATADIR}/
.endif

.include "${MASTERDIR}/Makefile"