proftpd: previous recipe was no good; fixed it; this one is without pam and might...
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Thu, 12 Mar 2009 16:23:24 +0000 (17:23 +0100)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Thu, 12 Mar 2009 16:23:24 +0000 (17:23 +0100)
packages/proftpd/proftpd_1.3.2.bb

index 13442b1..04ffaca 100644 (file)
@@ -1,8 +1,34 @@
 DESCRIPTION = "Secure ftp daemon"
 SECTION = "console/network"
 LICENSE = "GPL"
-PR = "r0"
+PR = "r1"
 
 SRC_URI = "ftp://ftp.nl.uu.net/pub/unix/ftp/proftpd/ftp/distrib/source/${PN}-${PV}.tar.gz \
+       file://make.patch;patch=1 \
        "
 
+
+EXTRA_OECONF = "ac_cv_func_setpgrp_void=yes ac_cv_func_setgrent_void=yes"
+LDFLAGS += "-Llib"
+PARALLEL_MAKE = ""
+
+do_configure () {
+        ./configure \
+                  --disable-auth-pam \
+                   --build=${BUILD_SYS} \
+                   --host=${HOST_SYS} \
+                   --target=${TARGET_SYS} \
+                   --prefix=${D} \
+                   --includedir=/usr/include \
+                    ${EXTRA_OECONF} \
+                    $@;
+}
+
+do_install () {
+       oe_runmake DESTDIR=${D} install
+}
+
+pkg_postinst () {
+       # more chown's might be needed
+        chown root:root /usr/sbin/proftpd
+}