diff options
Diffstat (limited to 'main/tlsdate/APKBUILD')
-rw-r--r-- | main/tlsdate/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/main/tlsdate/APKBUILD b/main/tlsdate/APKBUILD new file mode 100644 index 0000000000..e7333a466d --- /dev/null +++ b/main/tlsdate/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: +# Maintainer: +pkgname=tlsdate +pkgver=0.0.1 +pkgrel=0 +pkgdesc="secure parasitic rdate replacement" +url="https://github.com/ioerror/tlsdate" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="autoconf automake libtool openssl-dev" +install="" +subpackages="$pkgname-doc" +source="saveas-https://github.com/ioerror/tlsdate/tarball/tlsdate-${pkgver}/tlsdate-${pkgver}.tar.gz" + +_builddir="$srcdir/tlsdate-${pkgver}" +prepare() { + local i + mv $srcdir/ioerror-tlsdate-* "$srcdir/tlsdate-${pkgver}" + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + autoreconf --install + ./configure --prefix=/usr \ + --sysconfdir=/etc || return 1 + make CFLAGS+="-DUNPRIV_GROUP='\"nobody\"'" || return 1 +} + +package() { + cd "$_builddir" + make install DESTDIR="$pkgdir" || return 1 +} + +md5sums="1ecbb47785db7de0151a7f7a6238228e tlsdate-0.0.1.tar.gz" |