mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- Create ${localstatedir}/run/proftpd on install [1]
- Add patches for FreeBSD 8 and 9 [2] - Bump PORTREVISION PR: ports/145253 [1] Submitted by: Svyatoslav Lempert <svyatoslav.lempert@gmail.com> [1] Reported by: Gunnar Beutner <gunnar.beutner@hetzner.de> [2]
This commit is contained in:
parent
a6007af90e
commit
8883e7bcc0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=252444
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= proftpd
|
||||
PORTVERSION= 1.3.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES?= ftp
|
||||
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
|
||||
ftp://ftp.fastorama.com/mirrors/ftp.proftpd.org/distrib/source/ \
|
||||
@ -42,7 +43,9 @@ CONFLICTS= proftpd-devel-1.[0-9].*
|
||||
|
||||
USE_RC_SUBR= proftpd
|
||||
|
||||
CONFIGURE_ARGS= --localstatedir=/var/run \
|
||||
LOCALSTATEDIR?= /var/run
|
||||
|
||||
CONFIGURE_ARGS= --localstatedir=${LOCALSTATEDIR} \
|
||||
--with-pkgconfig=libdata/pkgconfig \
|
||||
--sysconfdir=${PREFIX}/etc \
|
||||
--disable-sendfile
|
||||
@ -93,6 +96,8 @@ MODULES?=
|
||||
LIBDIRS?=
|
||||
INCLUDEDIRS?=
|
||||
|
||||
PLIST_SUB+= LOCALSTATEDIR="${LOCALSTATEDIR}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(WITHOUT_RATIO)
|
||||
@ -397,6 +402,7 @@ post-configure:
|
||||
|
||||
post-install:
|
||||
@cd ${PREFIX}/etc/ && ${CP} -n proftpd.conf.sample proftpd.conf
|
||||
@${MKDIR} ${LOCALSTATEDIR}/proftpd
|
||||
.if defined(WITH_SFTP)
|
||||
@cd ${PREFIX}/etc/proftpd && ${CP} -n dhparams.pem.sample dhparams.pem
|
||||
@cd ${PREFIX}/etc/proftpd && ${CP} -n blacklist.dat.sample blacklist.dat
|
||||
|
10
ftp/proftpd/files/patch-contrib-mod_ban.c
Normal file
10
ftp/proftpd/files/patch-contrib-mod_ban.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- contrib/mod_ban.c.orig 2010-04-08 16:31:51.305526124 +0200
|
||||
+++ contrib/mod_ban.c 2010-04-08 16:32:29.115825094 +0200
|
||||
@@ -1117,6 +1117,7 @@
|
||||
|
||||
#if defined(FREEBSD4) || defined(FREEBSD5) || \
|
||||
defined(FREEBSD6) || defined(FREEBSD7) || \
|
||||
+ defined(FREEBSD8) || defined(FREEBSD9) || \
|
||||
defined(DARWIN7) || defined(DARWIN8) || defined(DARWIN9)
|
||||
optreset = 1;
|
||||
opterr = 1;
|
11
ftp/proftpd/files/patch-contrib-mod_sftp-scp.c
Normal file
11
ftp/proftpd/files/patch-contrib-mod_sftp-scp.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- contrib/mod_sftp/scp.c.orig 2010-04-08 16:50:19.950294512 +0200
|
||||
+++ contrib/mod_sftp/scp.c 2010-04-08 16:50:34.925959239 +0200
|
||||
@@ -1772,7 +1772,7 @@
|
||||
*/
|
||||
|
||||
#if defined(FREEBSD4) || defined(FREEBSD5) || defined(FREEBSD6) || \
|
||||
- defined(FREEBSD7) || \
|
||||
+ defined(FREEBSD7) || defined(FREEBSD8) || defined(FREEBSD9) || \
|
||||
defined(DARWIN7) || defined(DARWIN8) || defined(DARWIN9)
|
||||
optreset = 1;
|
||||
opterr = 1;
|
10
ftp/proftpd/files/patch-contrib-mod_tls.c
Normal file
10
ftp/proftpd/files/patch-contrib-mod_tls.c
Normal file
@ -0,0 +1,10 @@
|
||||
--- contrib/mod_tls.c.orig 2010-04-08 16:31:45.943822175 +0200
|
||||
+++ contrib/mod_tls.c 2010-04-08 16:32:44.490058910 +0200
|
||||
@@ -4812,6 +4812,7 @@
|
||||
/* All the fun portability of resetting getopt(3). */
|
||||
#if defined(FREEBSD4) || defined(FREEBSD5) || \
|
||||
defined(FREEBSD6) || defined(FREEBSD7) || \
|
||||
+ defined(FREEBSD8) || defined(FREEBSD9) || \
|
||||
defined(DARWIN7) || defined(DARWIN8) || defined(DARWIN9)
|
||||
optreset = 1;
|
||||
opterr = 1;
|
22
ftp/proftpd/files/patch-src-inet.c
Normal file
22
ftp/proftpd/files/patch-src-inet.c
Normal file
@ -0,0 +1,22 @@
|
||||
--- src/inet.c.orig 2010-04-08 16:31:54.398256052 +0200
|
||||
+++ src/inet.c 2010-04-08 16:33:21.513206951 +0200
|
||||
@@ -226,7 +226,8 @@
|
||||
|
||||
#if defined(SOLARIS2) || defined(FREEBSD2) || defined(FREEBSD3) || \
|
||||
defined(FREEBSD4) || defined(FREEBSD5) || defined(FREEBSD6) || \
|
||||
- defined(FREEBSD7) || defined(__OpenBSD__) || defined(__NetBSD__) || \
|
||||
+ defined(FREEBSD7) || defined(FREEBSD8) || defined(FREEBSD9) || \
|
||||
+ defined(__OpenBSD__) || defined(__NetBSD__) || \
|
||||
defined(DARWIN6) || defined(DARWIN7) || defined(DARWIN8) || defined(DARWIN9) || defined(DARWIN10) || \
|
||||
defined(SCO3) || defined(CYGWIN) || defined(SYSV4_2MP) || \
|
||||
defined(SYSV5SCO_SV6) || defined(SYSV5UNIXWARE7)
|
||||
@@ -244,7 +245,8 @@
|
||||
|
||||
#if defined(SOLARIS2) || defined(FREEBSD2) || defined(FREEBSD3) || \
|
||||
defined(FREEBSD4) || defined(FREEBSD5) || defined(FREEBSD6) || \
|
||||
- defined(FREEBSD7) || defined(__OpenBSD__) || defined(__NetBSD__) || \
|
||||
+ defined(FREEBSD7) || defined(FREEBSD8) || defined(FREEBSD9) || \
|
||||
+ defined(__OpenBSD__) || defined(__NetBSD__) || \
|
||||
defined(DARWIN6) || defined(DARWIN7) || defined(DARWIN8) || defined(DARWIN9) || defined(DARWIN10) || \
|
||||
defined(SCO3) || defined(CYGWIN) || defined(SYSV4_2MP) || \
|
||||
defined(SYSV5SCO_SV6) || defined(SYSV5UNIXWARE7)
|
@ -3,7 +3,6 @@ bin/ftpdctl
|
||||
bin/ftptop
|
||||
bin/ftpwho
|
||||
bin/prxs
|
||||
|
||||
@unexec if cmp -s %D/etc/proftpd.conf %D/etc/proftpd.conf.sample; then rm -f %D/etc/proftpd.conf; fi
|
||||
etc/proftpd.conf.sample
|
||||
@exec cp -n %D/%F %B/proftpd.conf
|
||||
@ -13,6 +12,7 @@ etc/proftpd.conf.sample
|
||||
%%SFTP%%@unexec if cmp -s %D/etc/proftpd/blacklist.dat %D/etc/proftpd/blacklist.dat.sample; then rm -f %D/etc/proftpd/blacklist.dat; fi
|
||||
%%SFTP%%etc/proftpd/blacklist.dat.sample
|
||||
%%SFTP%%@exec cp -n %D/%F %B/blacklist.dat
|
||||
@exec mkdir %%LOCALSTATEDIR%%/proftpd
|
||||
include/proftpd/auth.h
|
||||
include/proftpd/bindings.h
|
||||
include/proftpd/buildstamp.h
|
||||
@ -104,3 +104,4 @@ sbin/proftpd
|
||||
%%SFTP%%@dirrmtry etc/proftpd
|
||||
@dirrm include/proftpd
|
||||
@dirrmtry lib/proftpd
|
||||
@unexec rmdir %%LOCALSTATEDIR%%/proftpd 2>/dev/null || true
|
||||
|
Loading…
Reference in New Issue
Block a user