5ed2fa7987
- don't change the in-place pkg-message; generate a temporary one in ${WRKDIR} - fix install of scripts to ${PREFIX}/sbin - use EXAMPLSDIR and DOCSDIR - fix pkg-plist rmdir ... 2>/dev/null's to always return true - bump PORTREVISION PR: 59083 Submitted by: Lars Thegler <lars@thegler.dk>
86 lines
2.8 KiB
Makefile
86 lines
2.8 KiB
Makefile
# ex:ts=8
|
|
# New ports collection makefile for: p5-Net-FTPServer
|
|
# Date created: Jul 30, 2001
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= Net-FTPServer
|
|
PORTVERSION= 1.118
|
|
PORTREVISION= 1
|
|
CATEGORIES= ftp perl5
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
|
MASTER_SITE_SUBDIR= Net
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= petef@FreeBSD.org
|
|
COMMENT= A full-featured, secure, extensible and configurable Perl FTP server
|
|
|
|
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Authen/PAM.pm:${PORTSDIR}/security/p5-Authen-PAM \
|
|
${SITE_PERL}/${PERL_ARCH}/BSD/Resource.pm:${PORTSDIR}/devel/p5-BSD-Resource \
|
|
${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
|
|
${SITE_PERL}/${PERL_ARCH}/File/Sync.pm:${PORTSDIR}/devel/p5-File-Sync \
|
|
${SITE_PERL}/IO/Scalar.pm:${PORTSDIR}/devel/p5-IO-stringy \
|
|
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
|
|
${SITE_PERL}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
USE_REINPLACE= yes
|
|
MAKE_ENV+= NOCONF=1
|
|
PERL_CONFIGURE= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
MAN3= Net::FTPServer.3 \
|
|
Net::FTPServer::DBeg1::DirHandle.3 \
|
|
Net::FTPServer::DBeg1::FileHandle.3 \
|
|
Net::FTPServer::DBeg1::IOBlob.3 \
|
|
Net::FTPServer::DBeg1::Server.3 \
|
|
Net::FTPServer::DirHandle.3 \
|
|
Net::FTPServer::FileHandle.3 \
|
|
Net::FTPServer::Full::DirHandle.3 \
|
|
Net::FTPServer::Full::FileHandle.3 \
|
|
Net::FTPServer::Full::Server.3 \
|
|
Net::FTPServer::Handle.3 \
|
|
Net::FTPServer::InMem::DirHandle.3 \
|
|
Net::FTPServer::InMem::FileHandle.3 \
|
|
Net::FTPServer::InMem::Server.3 \
|
|
Net::FTPServer::RO::DirHandle.3 \
|
|
Net::FTPServer::RO::FileHandle.3 \
|
|
Net::FTPServer::RO::Server.3
|
|
|
|
DOCS= FAQ README TODO doc/*
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s/root,root/root,wheel/" \
|
|
-e "s,/usr/sbin,${PREFIX}/sbin," \
|
|
${WRKSRC}/Net-FTPServer.spec.PL
|
|
@${REINPLACE_CMD} -e "s/-g root/-g wheel/" \
|
|
-e "s,$$.PREFIX./sbin,${PREFIX}/sbin," \
|
|
-e "s,$$.SITEPREFIX./sbin,${PREFIX}/sbin," \
|
|
${WRKSRC}/Makefile.PL
|
|
|
|
post-install:
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/ftpd.conf ${EXAMPLESDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
|
.endif
|
|
@${PERL} -p -e 's,PREFIX,${PREFIX},g' ${PKGDIR}/pkg-message > ${PKGMESSAGE}
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/IO/Dir.pm:${PORTSDIR}/devel/p5-IO
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/IO/Dir.pm:${PORTSDIR}/devel/p5-IO
|
|
.else
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|