From 5e5e88dff21902f70fdca1a040d3f851055550a6 Mon Sep 17 00:00:00 2001 From: norvegh <vegh@norvegh.com> Date: Thu, 14 May 2015 21:27:31 +0200 Subject: [PATCH 1/5] New package: bftpd-4.4 --- srcpkgs/bftpd/files/bftpd/run | 2 ++ srcpkgs/bftpd/files/sum | 1 + srcpkgs/bftpd/template | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100755 srcpkgs/bftpd/files/bftpd/run create mode 100644 srcpkgs/bftpd/files/sum create mode 100644 srcpkgs/bftpd/template diff --git a/srcpkgs/bftpd/files/bftpd/run b/srcpkgs/bftpd/files/bftpd/run new file mode 100755 index 0000000000..a20f54a933 --- /dev/null +++ b/srcpkgs/bftpd/files/bftpd/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec bftpd -D diff --git a/srcpkgs/bftpd/files/sum b/srcpkgs/bftpd/files/sum new file mode 100644 index 0000000000..efa5333004 --- /dev/null +++ b/srcpkgs/bftpd/files/sum @@ -0,0 +1 @@ +b805ebbdd3de993ca14d733ad9ad007ac342a1646b257d91a53ec87a36c7f741 download diff --git a/srcpkgs/bftpd/template b/srcpkgs/bftpd/template new file mode 100644 index 0000000000..36fa64f23e --- /dev/null +++ b/srcpkgs/bftpd/template @@ -0,0 +1,33 @@ +# Template file for 'bftpd' +pkgname=bftpd +version=4.4 +revision=1 +short_desc="A simple FTP server" +maintainer="Norbert Vegh <vegh@norvegh.com>" +license="GPL-2" +homepage="http://bftpd.sourceforge.net/" +checksum=b805ebbdd3de993ca14d733ad9ad007ac342a1646b257d91a53ec87a36c7f741 +hostmakedepends="wget" + +do_fetch() +{ + rm -f download + wget http://sourceforge.net/projects/bftpd/files/bftpd/bftpd-${version}/bftpd-${version}.tar.gz/download + if ! sha256sum -c $FILESDIR/sum; then + echo "INVALID CHECKSUM" + rm -f download + return -1 + fi + tar xvfz download + rm download + mv bftpd bftpd-${version} +} + +build_style=configure +configure_args="--mandir=/usr/share/man" + +post_install() +{ + vsv bftpd + vcopy bftpd.conf "etc" +} From 20ed464a23f90628b12c2ee06e34d2fafd188809 Mon Sep 17 00:00:00 2001 From: norvegh <vegh@norvegh.com> Date: Fri, 15 May 2015 09:26:09 +0200 Subject: [PATCH 2/5] bftpd: get rid of wget --- srcpkgs/bftpd/template | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/srcpkgs/bftpd/template b/srcpkgs/bftpd/template index 36fa64f23e..4bc03d9a71 100644 --- a/srcpkgs/bftpd/template +++ b/srcpkgs/bftpd/template @@ -7,19 +7,11 @@ maintainer="Norbert Vegh <vegh@norvegh.com>" license="GPL-2" homepage="http://bftpd.sourceforge.net/" checksum=b805ebbdd3de993ca14d733ad9ad007ac342a1646b257d91a53ec87a36c7f741 -hostmakedepends="wget" +distfiles=http://${SOURCEFORGE_SITE}/bftpd/bftpd-${version}.tar.gz -do_fetch() +post_extract() { - rm -f download - wget http://sourceforge.net/projects/bftpd/files/bftpd/bftpd-${version}/bftpd-${version}.tar.gz/download - if ! sha256sum -c $FILESDIR/sum; then - echo "INVALID CHECKSUM" - rm -f download - return -1 - fi - tar xvfz download - rm download + cd ${XBPS_BUILDDIR} mv bftpd bftpd-${version} } @@ -29,5 +21,5 @@ configure_args="--mandir=/usr/share/man" post_install() { vsv bftpd - vcopy bftpd.conf "etc" + vconf bftpd.conf } From ff72a1940566a29a177bf1be6cf68972e103923f Mon Sep 17 00:00:00 2001 From: norvegh <vegh@norvegh.com> Date: Fri, 15 May 2015 09:42:59 +0200 Subject: [PATCH 3/5] bftpd: removed extra http: tag --- srcpkgs/bftpd/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/bftpd/template b/srcpkgs/bftpd/template index 4bc03d9a71..f7a1168071 100644 --- a/srcpkgs/bftpd/template +++ b/srcpkgs/bftpd/template @@ -7,7 +7,7 @@ maintainer="Norbert Vegh <vegh@norvegh.com>" license="GPL-2" homepage="http://bftpd.sourceforge.net/" checksum=b805ebbdd3de993ca14d733ad9ad007ac342a1646b257d91a53ec87a36c7f741 -distfiles=http://${SOURCEFORGE_SITE}/bftpd/bftpd-${version}.tar.gz +distfiles=${SOURCEFORGE_SITE}/bftpd/bftpd-${version}.tar.gz post_extract() { From 855b5dd8507d0f51a800c80535db52a9c017b403 Mon Sep 17 00:00:00 2001 From: norvegh <vegh@norvegh.com> Date: Tue, 19 May 2015 10:24:40 +0200 Subject: [PATCH 4/5] bdftp: removed post_install and sum file, use gnu-configure --- srcpkgs/bftpd/files/sum | 1 - srcpkgs/bftpd/template | 12 +++--------- 2 files changed, 3 insertions(+), 10 deletions(-) delete mode 100644 srcpkgs/bftpd/files/sum diff --git a/srcpkgs/bftpd/files/sum b/srcpkgs/bftpd/files/sum deleted file mode 100644 index efa5333004..0000000000 --- a/srcpkgs/bftpd/files/sum +++ /dev/null @@ -1 +0,0 @@ -b805ebbdd3de993ca14d733ad9ad007ac342a1646b257d91a53ec87a36c7f741 download diff --git a/srcpkgs/bftpd/template b/srcpkgs/bftpd/template index f7a1168071..b0bb58bc27 100644 --- a/srcpkgs/bftpd/template +++ b/srcpkgs/bftpd/template @@ -8,15 +8,9 @@ license="GPL-2" homepage="http://bftpd.sourceforge.net/" checksum=b805ebbdd3de993ca14d733ad9ad007ac342a1646b257d91a53ec87a36c7f741 distfiles=${SOURCEFORGE_SITE}/bftpd/bftpd-${version}.tar.gz - -post_extract() -{ - cd ${XBPS_BUILDDIR} - mv bftpd bftpd-${version} -} - -build_style=configure -configure_args="--mandir=/usr/share/man" +wrksrc=bftpd +build_style=gnu-configure +#configure_args="--mandir=/usr/share/man" post_install() { From c3316a6225588e3c9211c9cb56cfdd2c0f9e554d Mon Sep 17 00:00:00 2001 From: norvegh <vegh@norvegh.com> Date: Tue, 19 May 2015 10:25:27 +0200 Subject: [PATCH 5/5] bftpd: removed comment --- srcpkgs/bftpd/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/bftpd/template b/srcpkgs/bftpd/template index b0bb58bc27..00a28ea84b 100644 --- a/srcpkgs/bftpd/template +++ b/srcpkgs/bftpd/template @@ -10,7 +10,7 @@ checksum=b805ebbdd3de993ca14d733ad9ad007ac342a1646b257d91a53ec87a36c7f741 distfiles=${SOURCEFORGE_SITE}/bftpd/bftpd-${version}.tar.gz wrksrc=bftpd build_style=gnu-configure -#configure_args="--mandir=/usr/share/man" + post_install() {