From 4b9e61d68abadc606200f26632ec1397fb603e28 Mon Sep 17 00:00:00 2001 From: bougyman Date: Fri, 10 Apr 2015 08:57:05 -0500 Subject: [PATCH] New package: twoftpd-1.43_1 --- srcpkgs/twoftpd/files/twoftpd-anon/env/CHROOT | 1 + srcpkgs/twoftpd/files/twoftpd-anon/env/HOME | 3 ++ srcpkgs/twoftpd/files/twoftpd-anon/log/run | 1 + srcpkgs/twoftpd/files/twoftpd-anon/run | 7 ++++ srcpkgs/twoftpd/template | 33 +++++++++++++++++++ 5 files changed, 45 insertions(+) create mode 100644 srcpkgs/twoftpd/files/twoftpd-anon/env/CHROOT create mode 100644 srcpkgs/twoftpd/files/twoftpd-anon/env/HOME create mode 120000 srcpkgs/twoftpd/files/twoftpd-anon/log/run create mode 100755 srcpkgs/twoftpd/files/twoftpd-anon/run create mode 100644 srcpkgs/twoftpd/template diff --git a/srcpkgs/twoftpd/files/twoftpd-anon/env/CHROOT b/srcpkgs/twoftpd/files/twoftpd-anon/env/CHROOT new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/srcpkgs/twoftpd/files/twoftpd-anon/env/CHROOT @@ -0,0 +1 @@ +1 diff --git a/srcpkgs/twoftpd/files/twoftpd-anon/env/HOME b/srcpkgs/twoftpd/files/twoftpd-anon/env/HOME new file mode 100644 index 0000000000..0d6d631889 --- /dev/null +++ b/srcpkgs/twoftpd/files/twoftpd-anon/env/HOME @@ -0,0 +1,3 @@ +/var/lib/ftp/anon + + diff --git a/srcpkgs/twoftpd/files/twoftpd-anon/log/run b/srcpkgs/twoftpd/files/twoftpd-anon/log/run new file mode 120000 index 0000000000..914853dd4f --- /dev/null +++ b/srcpkgs/twoftpd/files/twoftpd-anon/log/run @@ -0,0 +1 @@ +/usr/bin/rsvlog \ No newline at end of file diff --git a/srcpkgs/twoftpd/files/twoftpd-anon/run b/srcpkgs/twoftpd/files/twoftpd-anon/run new file mode 100755 index 0000000000..5618bd69b9 --- /dev/null +++ b/srcpkgs/twoftpd/files/twoftpd-anon/run @@ -0,0 +1,7 @@ +#!/bin/sh +UID=$(id -u ftp) +GID=$(id -g ftp) +echo $UID > ./env/UID +echo $GID > ./env/GID +mkdir -p $(<./env/HOME) +exec chpst -e ./env tcpserver -DHRv 0 ftp twoftpd-anon 2>&1 diff --git a/srcpkgs/twoftpd/template b/srcpkgs/twoftpd/template new file mode 100644 index 0000000000..13a96a9965 --- /dev/null +++ b/srcpkgs/twoftpd/template @@ -0,0 +1,33 @@ +# Template file for 'twoftpd' +pkgname=twoftpd +version=1.43 +revision=1 +nocross=yes +build_style=gnu-makefile +depends="sv-helper ucspi-tcp" +makedepends="bglibs-devel cvm-devel" +short_desc="Simple secure efficient FTP server" +maintainer="bougyman " +license="GPL-2" +homepage="http://untroubled.org/twoftpd/" +distfiles="http://untroubled.org/twoftpd/twoftpd-1.43.tar.gz" +checksum=ed77d2f3020bdbbe1a0a7d9a84780f3525431300e5000901e95a982873e24dc3 +system_accounts="ftp" +ftp_pgroup="nogroup" + +pre_build() { + echo '/usr/bin' > conf-bin + echo '/usr/share/man' > conf-man + echo '/usr/include' > conf-include + echo '/usr/lib' > conf-lib + sed -i -e 's|/usr/local/include|/usr/include|' conf-cc +} + +do_install() { + make install install_prefix=${DESTDIR} + vsv twoftpd-anon + vlicense COPYING + vdoc README + vdoc NEWS + vdoc ANNOUNCEMENT +}