mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
- Fixed Makefile
- Added patch - patch-getopt.c (Upgrades lib/getopt.c to version 1.4 - Bumped PORTREVISION PR: ports/107221 ports/107107 ports/105947 Submitted by: Beech Rintoul <beech@alaskaparadise.com> (maintainer) Johan Svensson<johan@loxley.se> Matus UHLAR - fantomas<uhlar@fantomas.sk>
This commit is contained in:
parent
8268353b67
commit
843cda5ba3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=181106
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= proftpd
|
||||
DISTVERSION= 1.3.1rc1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
|
||||
ftp://ftp.fastorama.com/mirrors/ftp.proftpd.org/distrib/source/ \
|
||||
@ -54,11 +55,10 @@ OPTIONS= IPV6 "Use IPv6" off \
|
||||
WRAP "Include mod_wrap2" on \
|
||||
WRAP_FILE "include mod_wrap2_file" off \
|
||||
WRAP_SQL "include mod_wrap2_sql" off \
|
||||
LANG "include mod_lang" off \
|
||||
RADIUS "Include mod_radius" off \
|
||||
QUOTATAB_RADIUS "include mod_quotatab_radius" off \
|
||||
BAN "include mod_ban (Requires CTRLS)" off \
|
||||
NLS "Use nls" off
|
||||
NLS "Use nls-builds mod_lang" off
|
||||
|
||||
MODULES?=
|
||||
LIBDIRS?=
|
||||
@ -109,10 +109,6 @@ MODULES:=${MODULES}:mod_radius
|
||||
MODULES:=${MODULES}:mod_quotatab_radius
|
||||
.endif
|
||||
|
||||
.if defined(WITH_LANG)
|
||||
MODULES:=${MODULES}:mod_lang
|
||||
.endif
|
||||
|
||||
.if defined(WITH_BAN)
|
||||
MODULES:=${MODULES}:mod_ban
|
||||
.endif
|
||||
@ -137,10 +133,13 @@ CONFIGURE_ARGS+= --disable-ipv6
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
CONFIGURE_ARGS+= --enable-nls
|
||||
USE_GETTEXT=yes
|
||||
PROFTPD_LIBS+= -lintl -L${LOCALBASE}/lib
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-nls-Makefile.in
|
||||
.endif
|
||||
|
||||
#allow user to override
|
||||
MODULES?= mod_ratio:mod_readme:mod_rewrite:mod_wrap:mod_ifsession
|
||||
MODULES?= mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_ifsession
|
||||
|
||||
INCLUDEDIRS?=
|
||||
LIBDIRS?=
|
||||
|
15
ftp/proftpd-devel/files/extra-patch-nls-Makefile.in
Normal file
15
ftp/proftpd-devel/files/extra-patch-nls-Makefile.in
Normal file
@ -0,0 +1,15 @@
|
||||
--- Makefile.in Fri Dec 29 09:19:12 2006
|
||||
+++ Makefile.in.new Fri Dec 29 09:19:22 2006
|
||||
@@ -63,10 +63,10 @@
|
||||
$(CC) $(LDFLAGS) -o $@ $(BUILD_FTPSHUT_OBJS)
|
||||
|
||||
ftptop$(EXEEXT): lib utils
|
||||
- $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPTOP_OBJS) $(CURSES_LIBS) -lsupp
|
||||
+ $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPTOP_OBJS) $(CURSES_LIBS) -lsupp -lintl
|
||||
|
||||
ftpwho$(EXEEXT): lib utils
|
||||
- $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPWHO_OBJS) -lsupp
|
||||
+ $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPWHO_OBJS) -lsupp -lintl
|
||||
|
||||
|
||||
# BSD install -d doesn't work, so ...
|
11
ftp/proftpd-devel/files/patch-contrib-mod_wrap2-Makefile.in
Normal file
11
ftp/proftpd-devel/files/patch-contrib-mod_wrap2-Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- contrib/mod_wrap2/Makefile.in.orig Wed Sep 6 15:11:47 2006
|
||||
+++ contrib/mod_wrap2/Makefile.in Thu Dec 28 11:41:24 2006
|
||||
@@ -13,7 +13,7 @@
|
||||
MODULE_NAME=mod_wrap2
|
||||
|
||||
# Necessary redefinitions
|
||||
-INCLUDES=-I. -I../.. -I../../include
|
||||
+INCLUDES=-I. -I../.. -I../../include -I/usr/local/include
|
||||
CPPFLAGS= -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES)
|
||||
LDFLAGS=-L../../lib
|
||||
|
20
ftp/proftpd-devel/files/patch-getopt.c
Normal file
20
ftp/proftpd-devel/files/patch-getopt.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- lib/getopt.c.orig Thu Feb 28 10:30:01 2002
|
||||
+++ lib/getopt.c Tue Dec 26 13:39:53 2006
|
||||
@@ -76,7 +76,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
-#ifndef _
|
||||
+#if defined(PR_USE_NLS) && !defined(_)
|
||||
/* This is for other GNU distributions with internationalized messages.
|
||||
When compiling libc, the _ macro is predefined. */
|
||||
# ifdef HAVE_LIBINTL_H
|
||||
@@ -85,6 +85,8 @@
|
||||
# else
|
||||
# define _(msgid) (msgid)
|
||||
# endif
|
||||
+#else
|
||||
+# define _(msgid) (msgid)
|
||||
#endif
|
||||
|
||||
/* This version of `getopt' appears to the caller like standard Unix `getopt'
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= proftpd
|
||||
DISTVERSION= 1.3.1rc1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
|
||||
ftp://ftp.fastorama.com/mirrors/ftp.proftpd.org/distrib/source/ \
|
||||
@ -54,11 +55,10 @@ OPTIONS= IPV6 "Use IPv6" off \
|
||||
WRAP "Include mod_wrap2" on \
|
||||
WRAP_FILE "include mod_wrap2_file" off \
|
||||
WRAP_SQL "include mod_wrap2_sql" off \
|
||||
LANG "include mod_lang" off \
|
||||
RADIUS "Include mod_radius" off \
|
||||
QUOTATAB_RADIUS "include mod_quotatab_radius" off \
|
||||
BAN "include mod_ban (Requires CTRLS)" off \
|
||||
NLS "Use nls" off
|
||||
NLS "Use nls-builds mod_lang" off
|
||||
|
||||
MODULES?=
|
||||
LIBDIRS?=
|
||||
@ -109,10 +109,6 @@ MODULES:=${MODULES}:mod_radius
|
||||
MODULES:=${MODULES}:mod_quotatab_radius
|
||||
.endif
|
||||
|
||||
.if defined(WITH_LANG)
|
||||
MODULES:=${MODULES}:mod_lang
|
||||
.endif
|
||||
|
||||
.if defined(WITH_BAN)
|
||||
MODULES:=${MODULES}:mod_ban
|
||||
.endif
|
||||
@ -137,10 +133,13 @@ CONFIGURE_ARGS+= --disable-ipv6
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
|
||||
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
|
||||
CONFIGURE_ARGS+= --enable-nls
|
||||
USE_GETTEXT=yes
|
||||
PROFTPD_LIBS+= -lintl -L${LOCALBASE}/lib
|
||||
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-nls-Makefile.in
|
||||
.endif
|
||||
|
||||
#allow user to override
|
||||
MODULES?= mod_ratio:mod_readme:mod_rewrite:mod_wrap:mod_ifsession
|
||||
MODULES?= mod_ratio:mod_readme:mod_rewrite:mod_wrap2:mod_ifsession
|
||||
|
||||
INCLUDEDIRS?=
|
||||
LIBDIRS?=
|
||||
|
15
ftp/proftpd/files/extra-patch-nls-Makefile.in
Normal file
15
ftp/proftpd/files/extra-patch-nls-Makefile.in
Normal file
@ -0,0 +1,15 @@
|
||||
--- Makefile.in Fri Dec 29 09:19:12 2006
|
||||
+++ Makefile.in.new Fri Dec 29 09:19:22 2006
|
||||
@@ -63,10 +63,10 @@
|
||||
$(CC) $(LDFLAGS) -o $@ $(BUILD_FTPSHUT_OBJS)
|
||||
|
||||
ftptop$(EXEEXT): lib utils
|
||||
- $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPTOP_OBJS) $(CURSES_LIBS) -lsupp
|
||||
+ $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPTOP_OBJS) $(CURSES_LIBS) -lsupp -lintl
|
||||
|
||||
ftpwho$(EXEEXT): lib utils
|
||||
- $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPWHO_OBJS) -lsupp
|
||||
+ $(CC) $(LDFLAGS) -o $@ $(BUILD_FTPWHO_OBJS) -lsupp -lintl
|
||||
|
||||
|
||||
# BSD install -d doesn't work, so ...
|
11
ftp/proftpd/files/patch-contrib-mod_wrap2-Makefile.in
Normal file
11
ftp/proftpd/files/patch-contrib-mod_wrap2-Makefile.in
Normal file
@ -0,0 +1,11 @@
|
||||
--- contrib/mod_wrap2/Makefile.in.orig Wed Sep 6 15:11:47 2006
|
||||
+++ contrib/mod_wrap2/Makefile.in Thu Dec 28 11:41:24 2006
|
||||
@@ -13,7 +13,7 @@
|
||||
MODULE_NAME=mod_wrap2
|
||||
|
||||
# Necessary redefinitions
|
||||
-INCLUDES=-I. -I../.. -I../../include
|
||||
+INCLUDES=-I. -I../.. -I../../include -I/usr/local/include
|
||||
CPPFLAGS= -DHAVE_CONFIG_H $(DEFAULT_PATHS) $(PLATFORM) $(INCLUDES)
|
||||
LDFLAGS=-L../../lib
|
||||
|
20
ftp/proftpd/files/patch-getopt.c
Normal file
20
ftp/proftpd/files/patch-getopt.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- lib/getopt.c.orig Thu Feb 28 10:30:01 2002
|
||||
+++ lib/getopt.c Tue Dec 26 13:39:53 2006
|
||||
@@ -76,7 +76,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
-#ifndef _
|
||||
+#if defined(PR_USE_NLS) && !defined(_)
|
||||
/* This is for other GNU distributions with internationalized messages.
|
||||
When compiling libc, the _ macro is predefined. */
|
||||
# ifdef HAVE_LIBINTL_H
|
||||
@@ -85,6 +85,8 @@
|
||||
# else
|
||||
# define _(msgid) (msgid)
|
||||
# endif
|
||||
+#else
|
||||
+# define _(msgid) (msgid)
|
||||
#endif
|
||||
|
||||
/* This version of `getopt' appears to the caller like standard Unix `getopt'
|
Loading…
Reference in New Issue
Block a user