1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/ftp/p5-Net-FTPServer/Makefile
Mathieu Arnold f6d56007b9 Remove all := from BUILD_DEPENDS, here are never needed.
While there, cleanup, and sort depends.

When build and run dependencies are the same, there are three ways to
avoid duplicating the list while not adding the framework added
BUILD_DEPENDS to the RUN_DEPENDS.  In order of preference, they are:

1) use RUN_DEPENDS to set BUILD_DEPENDS:

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	foo:bar/baz

2) create another variable and use it:

MY_DEPENDS= foo:bar/baz
BUILD_DEPENDS=	${MY_DEPENDS}
RUN_DEPENDS=	${MY_DEPENDS}

3) use BUILD_DEPENDS to set RUN_DEPENDS and force evaluation:

BUILD_DEPENDS=	foo:bar/baz
RUN_DEPENDS:=	${BUILD_DEPENDS}

Sponsored by:	Absolight
2018-07-09 08:40:17 +00:00

52 lines
1.2 KiB
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= Net-FTPServer
PORTVERSION= 1.125
PORTREVISION= 1
CATEGORIES= ftp perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Full-featured, secure, extensible, and configurable Perl FTP server
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= p5-Archive-Zip>=0:archivers/p5-Archive-Zip \
p5-Authen-PAM>=0:security/p5-Authen-PAM \
p5-BSD-Resource>=0:devel/p5-BSD-Resource \
p5-DBI>=0:databases/p5-DBI \
p5-File-Sync>=0:devel/p5-File-Sync \
p5-IO-stringy>=1.126:devel/p5-IO-stringy
MAKE_ENV+= NOCONF=1
USES= perl5
USE_PERL5= configure
SUB_FILES= pkg-message
DOCS= README TODO doc/*
PORTDOCS= *
PORTEXAMPLES= ftpd.conf
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e "s/root,root/root,wheel/" \
-e "s,/usr/sbin,${PREFIX}/sbin," \
${WRKSRC}/package/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} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/etc/ftpd.conf ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>