aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordai9ah <dai9ah@protonmail.com>2018-02-24 14:08:29 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-02-27 17:57:48 +0000
commit20697e1c32e6166e6e377e3e343e1730aafa08b5 (patch)
tree37d3a9c17dfb2fd079f59c5ed00aeb7e129b3c85
parent61818fd63b50c0c30c320b6e7624184120b42b7e (diff)
downloadaports-20697e1c32e6166e6e377e3e343e1730aafa08b5.tar.bz2
aports-20697e1c32e6166e6e377e3e343e1730aafa08b5.tar.xz
testing/pure-ftpd: upgrade to 1.0.47, fix license, modernize
-rw-r--r--testing/pure-ftpd/APKBUILD49
1 files changed, 18 insertions, 31 deletions
diff --git a/testing/pure-ftpd/APKBUILD b/testing/pure-ftpd/APKBUILD
index 5c99ef8843..fb6e5f9e43 100644
--- a/testing/pure-ftpd/APKBUILD
+++ b/testing/pure-ftpd/APKBUILD
@@ -1,55 +1,42 @@
# Contributor: Douglas Haber <me@douglashaber.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pure-ftpd
-pkgver=1.0.46
-pkgrel=1
+pkgver=1.0.47
+pkgrel=0
pkgdesc="Pure FTPD FTP daemon"
url="http://pureftpd.org"
arch="all"
-license="GPL"
-depends=
+license="BSD"
depends_dev=libressl-dev
makedepends="$depends_dev"
-install=""
subpackages="$pkgname-doc"
source="http://download.pureftpd.org/pub/pure-ftpd/releases/$pkgname-$pkgver.tar.gz
pure-ftpd.initd
- pure-ftpd.confd"
-
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
-
+ pure-ftpd.confd
+ "
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
- ./configure --prefix=/usr \
- --without-humor \
+ cd "$builddir"
+ ./configure \
+ --prefix=/usr \
--without-unicode \
--with-minimal \
--with-throttling \
--with-puredb \
- --with-tls \
- || return 1
- make || return 1
+ --with-tls
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
- install -m755 -D ../$pkgname.initd \
- "$pkgdir"/etc/init.d/$pkgname || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ install -Dm755 ../$pkgname.initd \
+ "$pkgdir/etc/init.d/$pkgname"
- install -m644 -D ../$pkgname.confd \
- "$pkgdir"/etc/conf.d/$pkgname || return 1
+ install -Dm644 ../$pkgname.confd \
+ "$pkgdir/etc/conf.d/$pkgname"
}
-sha512sums="90579cad52028fa9e7f8d3f3f8d7f8194b21942f86ae17b026317ef410c48fc712d68b8990d14fe309fa9e88ec57b53e622d0f13bf8a395a2a3964ce5a32d80a pure-ftpd-1.0.46.tar.gz
+sha512sums="ed2b08334e72c171706287fba28686a8c41dde91a38d135d4e80afb307e9891ab7d74c571d2035c07d214dba0ee73926a8d23a6fbabd4c9dc208c8a6bf5160a5 pure-ftpd-1.0.47.tar.gz
fde2e979410779cc0044e1190b88fe2f0956166b68e2d7fb94520bc0803a3ec85814f66e09a7fdae4ebead872c9a48d973cf7ef3d2818f2298b22ac629cfcf25 pure-ftpd.initd
a5cc8e59178a5d0f7b5909d09009ef6ace1f8e6874bd733e21bc30f4899447e70b020a0369077132751ceb28afa971588efedcce3dea83e9b043b1545caf3393 pure-ftpd.confd"