summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-daemons/proftpd/files/build_fixup.patch')
-rw-r--r--meta-networking/recipes-daemons/proftpd/files/build_fixup.patch69
1 files changed, 28 insertions, 41 deletions
diff --git a/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch b/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch
index 9816d4d22a..d888dd8263 100644
--- a/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch
+++ b/meta-networking/recipes-daemons/proftpd/files/build_fixup.patch
@@ -9,10 +9,10 @@ redefine PR_RUN_DIR as ${localstatedir}/run
9Signed-off-By: Armin Kuster <akuster808@gmail.com> 9Signed-off-By: Armin Kuster <akuster808@gmail.com>
10 10
11 11
12Index: proftpd-1.3.6/Make.rules.in 12diff --git a/Make.rules.in b/Make.rules.in
13=================================================================== 13index a5028ac..ccd7807 100644
14--- proftpd-1.3.6.orig/Make.rules.in 14--- a/Make.rules.in
15+++ proftpd-1.3.6/Make.rules.in 15+++ b/Make.rules.in
16@@ -30,9 +30,9 @@ INSTALL=@INSTALL@ 16@@ -30,9 +30,9 @@ INSTALL=@INSTALL@
17 INSTALL_STRIP=@INSTALL_STRIP@ 17 INSTALL_STRIP=@INSTALL_STRIP@
18 INSTALL_USER=@install_user@ 18 INSTALL_USER=@install_user@
@@ -26,11 +26,11 @@ Index: proftpd-1.3.6/Make.rules.in
26 26
27 RM=rm -f 27 RM=rm -f
28 SHELL=@CONFIG_SHELL@ 28 SHELL=@CONFIG_SHELL@
29Index: proftpd-1.3.6/Makefile.in 29diff --git a/Makefile.in b/Makefile.in
30=================================================================== 30index 9434cbd..13f2e16 100644
31--- proftpd-1.3.6.orig/Makefile.in 31--- a/Makefile.in
32+++ proftpd-1.3.6/Makefile.in 32+++ b/Makefile.in
33@@ -105,7 +105,6 @@ check: proftpd$(EXEEXT) 33@@ -123,7 +123,6 @@ check: proftpd$(EXEEXT)
34 $(DESTDIR)$(localedir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir)/proftpd $(DESTDIR)$(libdir) $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(libdir)/proftpd $(DESTDIR)$(libexecdir) $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8: 34 $(DESTDIR)$(localedir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir)/proftpd $(DESTDIR)$(libdir) $(DESTDIR)$(pkgconfigdir) $(DESTDIR)$(libdir)/proftpd $(DESTDIR)$(libexecdir) $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8:
35 @if [ ! -d $@ ]; then \ 35 @if [ ! -d $@ ]; then \
36 mkdir -p $@; \ 36 mkdir -p $@; \
@@ -38,20 +38,20 @@ Index: proftpd-1.3.6/Makefile.in
38 chmod 0755 $@; \ 38 chmod 0755 $@; \
39 fi 39 fi
40 40
41@@ -115,7 +114,6 @@ install-proftpd: proftpd $(DESTDIR)$(inc 41@@ -133,7 +132,6 @@ install-proftpd: proftpd$(EXEEXT) $(DESTDIR)$(includedir) $(DESTDIR)$(localstate
42 rm -f $(DESTDIR)$(sbindir)/in.proftpd ; \ 42 rm -f $(DESTDIR)$(sbindir)/in.proftpd ; \
43 fi 43 fi
44 ln -s proftpd $(DESTDIR)$(sbindir)/in.proftpd 44 ln -s $(top_builddir)/proftpd $(DESTDIR)$(sbindir)/in.proftpd
45- -chown -h $(INSTALL_USER):$(INSTALL_GROUP) $(DESTDIR)$(sbindir)/in.proftpd 45- -chown -h $(INSTALL_USER):$(INSTALL_GROUP) $(DESTDIR)$(sbindir)/in.proftpd
46 46
47 install-libs: $(DESTDIR)$(libdir)/proftpd 47 install-libs: $(DESTDIR)$(libdir)/proftpd
48 cd lib/ && $(MAKE) install 48 cd lib/ && $(MAKE) install
49@@ -152,11 +150,11 @@ install-utils: $(DESTDIR)$(sbindir) $(DE 49@@ -170,11 +168,11 @@ install-utils: $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir)
50 $(INSTALL_SBIN) ftpshut $(DESTDIR)$(sbindir)/ftpshut 50 $(INSTALL_SBIN) $(top_builddir)/ftpshut $(DESTDIR)$(sbindir)/ftpshut
51 $(INSTALL_BIN) ftptop $(DESTDIR)$(bindir)/ftptop 51 $(INSTALL_BIN) $(top_builddir)/ftptop $(DESTDIR)$(bindir)/ftptop
52 $(INSTALL_BIN) ftpwho $(DESTDIR)$(bindir)/ftpwho 52 $(INSTALL_BIN) $(top_builddir)/ftpwho $(DESTDIR)$(bindir)/ftpwho
53- $(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0755 src/prxs $(DESTDIR)$(bindir)/prxs 53- $(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0755 $(top_builddir)/src/prxs $(DESTDIR)$(bindir)/prxs
54+ $(INSTALL) -m 0755 src/prxs $(DESTDIR)$(bindir)/prxs 54+ $(INSTALL) -m 0755 $(top_builddir)/src/prxs $(DESTDIR)$(bindir)/prxs
55 55
56 install-conf: $(DESTDIR)$(sysconfdir) 56 install-conf: $(DESTDIR)$(sysconfdir)
57 if [ ! -f $(DESTDIR)$(sysconfdir)/proftpd.conf ] ; then \ 57 if [ ! -f $(DESTDIR)$(sysconfdir)/proftpd.conf ] ; then \
@@ -60,11 +60,11 @@ Index: proftpd-1.3.6/Makefile.in
60 $(top_srcdir)/sample-configurations/basic.conf \ 60 $(top_srcdir)/sample-configurations/basic.conf \
61 $(DESTDIR)$(sysconfdir)/proftpd.conf ; \ 61 $(DESTDIR)$(sysconfdir)/proftpd.conf ; \
62 fi 62 fi
63Index: proftpd-1.3.6/configure 63diff --git a/configure b/configure
64=================================================================== 64index 0a51670..69fa130 100755
65--- proftpd-1.3.6.orig/configure 65--- a/configure
66+++ proftpd-1.3.6/configure 66+++ b/configure
67@@ -41777,7 +41777,7 @@ _ACEOF 67@@ -25116,7 +25116,7 @@ _ACEOF
68 68
69 69
70 cat >>confdefs.h <<_ACEOF 70 cat >>confdefs.h <<_ACEOF
@@ -73,7 +73,7 @@ Index: proftpd-1.3.6/configure
73 _ACEOF 73 _ACEOF
74 74
75 75
76@@ -41787,7 +41787,7 @@ _ACEOF 76@@ -25126,7 +25126,7 @@ _ACEOF
77 77
78 78
79 cat >>confdefs.h <<_ACEOF 79 cat >>confdefs.h <<_ACEOF
@@ -82,11 +82,11 @@ Index: proftpd-1.3.6/configure
82 _ACEOF 82 _ACEOF
83 83
84 84
85Index: proftpd-1.3.6/configure.in 85diff --git a/configure.in b/configure.in
86=================================================================== 86index 50561de..93cad3f 100644
87--- proftpd-1.3.6.orig/configure.in 87--- a/configure.in
88+++ proftpd-1.3.6/configure.in 88+++ b/configure.in
89@@ -3833,8 +3833,8 @@ locale_dir="`eval echo ${locale_dir}`" 89@@ -4059,8 +4059,8 @@ locale_dir="`eval echo ${locale_dir}`"
90 AC_DEFINE_UNQUOTED(PR_LOCALE_DIR, "`eval echo "${locale_dir}"`", [Define the locale directory]) 90 AC_DEFINE_UNQUOTED(PR_LOCALE_DIR, "`eval echo "${locale_dir}"`", [Define the locale directory])
91 91
92 AC_DEFINE_UNQUOTED(PR_RUN_DIR, "`eval echo "${localstatedir}"`", [Define the run directory]) 92 AC_DEFINE_UNQUOTED(PR_RUN_DIR, "`eval echo "${localstatedir}"`", [Define the run directory])
@@ -97,16 +97,3 @@ Index: proftpd-1.3.6/configure.in
97 97
98 prefix="$pr_saved_prefix" 98 prefix="$pr_saved_prefix"
99 exec_prefix="$pr_saved_exec_prefix" 99 exec_prefix="$pr_saved_exec_prefix"
100Index: proftpd-1.3.6/lib/libcap/Makefile
101===================================================================
102--- proftpd-1.3.6.orig/lib/libcap/Makefile
103+++ proftpd-1.3.6/lib/libcap/Makefile
104@@ -26,7 +26,7 @@ OBJS=$(addsuffix .o, $(FILES))
105 all: $(LIBNAME)
106
107 _makenames: _makenames.c cap_names.sed
108- $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@
109+ $(BUILD_CC) $(CFLAGS) $(LDFLAGS) $< -o $@
110
111 cap_names.h: _makenames
112 ./_makenames > cap_names.h