mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
vsftpd: move from meta-oe to meta-networking and tweak
* Fix stripped file QA warning * Add proper headers to patches (and split makefile.patch into two parts, one of which may be upstreamable) * Use PV in SRC_URI instead of hardcoded version * Move SRC_URI checksums up next to SRC_URI * Set SUMMARY instead of DESCRIPTION Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
b2aa32edd3
commit
21adc5d117
+11
-14
@@ -1,17 +1,14 @@
|
|||||||
diff -ur vsftpd-2.0.1_org/Makefile vsftpd-2.0.1_patch/Makefile
|
Use DESTDIR within install to allow installing under a prefix
|
||||||
--- vsftpd-2.0.1_org/Makefile 2004-06-06 18:21:27.000000000 +0200
|
|
||||||
+++ vsftpd-2.0.1_patch/Makefile 2004-07-21 09:50:25.245576352 +0200
|
Upstream-Status: Pending
|
||||||
@@ -5,7 +5,7 @@
|
|
||||||
#CFLAGS = -g
|
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
|
||||||
CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
-LIBS = `./vsf_findlibs.sh`
|
--- a/Makefile
|
||||||
+LIBS = -lssl -lcrypto -lnsl -lresolv
|
+++ b/Makefile
|
||||||
LINK = -Wl,-s
|
@@ -24,21 +24,21 @@ vsftpd: $(OBJS)
|
||||||
|
$(CC) -o vsftpd $(OBJS) $(LINK) $(LIBS) $(LDFLAGS)
|
||||||
OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
|
|
||||||
@@ -24,21 +24,21 @@
|
|
||||||
$(CC) -o vsftpd $(OBJS) $(LINK) $(LIBS)
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- if [ -x /usr/local/sbin ]; then \
|
- if [ -x /usr/local/sbin ]; then \
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
Hardcode LIBS instead of using a script to determine available libs
|
||||||
|
|
||||||
|
We want to avoid this dynamic detection so we have a deterministic
|
||||||
|
build.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [config]
|
||||||
|
|
||||||
|
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -5,7 +5,7 @@ IFLAGS = -idirafter dummyinc
|
||||||
|
#CFLAGS = -g
|
||||||
|
CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
|
||||||
|
|
||||||
|
-LIBS = `./vsf_findlibs.sh`
|
||||||
|
+LIBS = -lssl -lcrypto -lnsl -lresolv
|
||||||
|
LINK = -Wl,-s
|
||||||
|
|
||||||
|
OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
Disable stripping at link time
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [config]
|
||||||
|
|
||||||
|
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -6,7 +6,6 @@ IFLAGS = -idirafter dummyinc
|
||||||
|
CFLAGS = -O2 -Wall -W -Wshadow #-pedantic -Werror -Wconversion
|
||||||
|
|
||||||
|
LIBS = -lssl -lcrypto -lnsl -lresolv
|
||||||
|
-LINK = -Wl,-s
|
||||||
|
|
||||||
|
OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \
|
||||||
|
tunables.o ftpdataio.o secbuf.o ls.o \
|
||||||
+4
@@ -1,3 +1,7 @@
|
|||||||
|
Disable PAM
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate [config]
|
||||||
|
|
||||||
diff -ur vsftpd-2.0.1_org/builddefs.h vsftpd-2.0.1_patch/builddefs.h
|
diff -ur vsftpd-2.0.1_org/builddefs.h vsftpd-2.0.1_patch/builddefs.h
|
||||||
--- vsftpd-2.0.1_org/builddefs.h 2004-07-02 16:36:59.000000000 +0200
|
--- vsftpd-2.0.1_org/builddefs.h 2004-07-02 16:36:59.000000000 +0200
|
||||||
+++ vsftpd-2.0.1_patch/builddefs.h 2004-07-21 09:34:49.044900488 +0200
|
+++ vsftpd-2.0.1_patch/builddefs.h 2004-07-21 09:34:49.044900488 +0200
|
||||||
+10
-7
@@ -1,17 +1,22 @@
|
|||||||
DESCRIPTION = "Secure ftp server"
|
SUMMARY = "Very Secure FTP server"
|
||||||
HOMEPAGE="https://security.appspot.com/vsftpd.html"
|
HOMEPAGE = "https://security.appspot.com/vsftpd.html"
|
||||||
SECTION = "network"
|
SECTION = "network"
|
||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271"
|
||||||
|
|
||||||
DEPENDS = "libcap"
|
DEPENDS = "libcap"
|
||||||
|
|
||||||
SRC_URI = "https://security.appspot.com/downloads/vsftpd-2.3.5.tar.gz \
|
SRC_URI = "https://security.appspot.com/downloads/vsftpd-${PV}.tar.gz \
|
||||||
file://makefile.patch \
|
file://makefile-destdir.patch \
|
||||||
|
file://makefile-libs.patch \
|
||||||
|
file://makefile-strip.patch \
|
||||||
file://nopam.patch \
|
file://nopam.patch \
|
||||||
file://init \
|
file://init \
|
||||||
file://vsftpd.conf"
|
file://vsftpd.conf"
|
||||||
|
|
||||||
|
SRC_URI[md5sum] = "01398a5bef8e85b6cf2c213a4b011eca"
|
||||||
|
SRC_URI[sha256sum] = "d87ee2987df8f03e1dbe294905f7907b2798deb89c67ca965f6e2f60879e54f1"
|
||||||
|
|
||||||
inherit update-rc.d useradd
|
inherit update-rc.d useradd
|
||||||
|
|
||||||
CONFFILES_${PN} = "${sysconfdir}/vsftpd.conf"
|
CONFFILES_${PN} = "${sysconfdir}/vsftpd.conf"
|
||||||
@@ -43,6 +48,4 @@ USERADD_PACKAGES = "${PN}"
|
|||||||
USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ftp --no-create-home -g ftp \
|
USERADD_PARAM_${PN} = "--system --home-dir /var/lib/ftp --no-create-home -g ftp \
|
||||||
--shell /bin/false ftp "
|
--shell /bin/false ftp "
|
||||||
GROUPADD_PARAM_${PN} = "-r ftp"
|
GROUPADD_PARAM_${PN} = "-r ftp"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "01398a5bef8e85b6cf2c213a4b011eca"
|
|
||||||
SRC_URI[sha256sum] = "d87ee2987df8f03e1dbe294905f7907b2798deb89c67ca965f6e2f60879e54f1"
|
|
||||||
Reference in New Issue
Block a user