M7350/oe-core/meta-msm/recipes/vsftpd/vsftpd_3.0.0.bb
2024-09-09 08:52:07 +00:00

44 lines
1.7 KiB
BlitzBasic

DESCRIPTION = "Very Secure FTP server 3.0.0 for storage sharing"
HOMEPAGE = "https://security.appspot.com/vsftpd.html"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=a6067ad950b28336613aed9dd47b1271"
SRC_URI = " \
https://security.appspot.com/downloads/vsftpd-${PV}.tar.gz \
file://start_vsftpd \
file://stop_vsftpd \
file://vsftpd_anon_ro.conf \
file://vsftpd_anon_rw.conf \
file://vsftpd_signed_rw.conf \
file://vsftpd_3.0.0.patch \
"
S="${WORKDIR}/${PN}-${PV}"
DEPENDS = "libcap openssl"
PACKAGECONFIG ??= "tcp-wrappers"
PACKAGECONFIG[tcp-wrappers] = ",,tcp-wrappers"
LDFLAGS_append =" -lcrypt -lcap"
do_compile() {
oe_runmake "LIBS=-L${STAGING_LIBDIR} -lcrypt -ldl -lnsl -lssl -lresolv -lutil -lcap -lrt -lcrypto -lssl -lresolv"
}
do_install() {
install -d ${D}${sbindir} ${D}${bindir} ${D}${sysconfdir}/config/vsftpd ${D}${sysconfdir}/default_config/vsftpd
install -d ${D}${mandir}/man8
install -d ${D}${mandir}/man5
oe_runmake 'DESTDIR=${D}' install
install -m 0755 ${WORKDIR}/vsftpd_anon_ro.conf ${D}${sysconfdir}/config/vsftpd
install -m 0755 ${WORKDIR}/vsftpd_anon_rw.conf ${D}${sysconfdir}/config/vsftpd
install -m 0755 ${WORKDIR}/vsftpd_signed_rw.conf ${D}${sysconfdir}/config/vsftpd
install -m 0755 ${WORKDIR}/vsftpd_anon_ro.conf ${D}${sysconfdir}/default_config/vsftpd
install -m 0755 ${WORKDIR}/vsftpd_anon_rw.conf ${D}${sysconfdir}/default_config/vsftpd
install -m 0755 ${WORKDIR}/vsftpd_signed_rw.conf ${D}${sysconfdir}/default_config/vsftpd
install -m 0755 ${WORKDIR}/start_vsftpd ${D}${bindir}/start_vsftpd
install -m 0755 ${WORKDIR}/stop_vsftpd ${D}${bindir}/stop_vsftpd
}