Commit e90a4db5 authored by 杨文 陈's avatar 杨文 陈 Committed by Kevin Daudt

community/dante: move from testing

parent 575d2175
Pipeline #11495 canceled with stages
in 4 minutes and 36 seconds
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Paul Kilar <pkilar@gmail.com>
pkgname=dante
pkgver="1.4.2"
pkgver=1.4.2
pkgrel=3
pkgdesc="Dante is SOCKS server and a SOCKS client"
url="http://www.inet.no/dante/index.html"
url="https://www.inet.no/dante/"
arch="all"
license="BSD CMU"
depends=""
depends_dev=""
license="BSD-3-Clause"
makedepends="bison flex"
install="$pkgname-server.pre-install"
options="libtool"
subpackages="$pkgname-dev $pkgname-doc $pkgname-server"
source="http://www.inet.no/dante/files/$pkgname-$pkgver.tar.gz
ifdev.patch
sockd.initd
sockd.confd"
builddir="$srcdir"/$pkgname-$pkgver
source="http://www.inet.no/dante/files/dante-$pkgver.tar.gz
ifdev.patch
sockd.initd
sockd.confd
"
prepare() {
default_prepare || return 1
update_config_guess || return 1
default_prepare
update_config_guess
}
build() {
cd "$builddir"
subpackages="$pkgname-dev $pkgname-doc"
ac_cv_func_sched_setscheduler=no ./configure --prefix=/usr
make || return 1
make
}
package() {
cd "$builddir"
make install DESTDIR=$pkgdir || return 1
make install DESTDIR=$pkgdir
}
server() {
depends=
cd "$builddir"
install -D -m644 "example/sockd.conf" \
"$subpkgdir/etc/sockd.conf" || return 1
install -D -m644 "$srcdir"/sockd.confd \
"$subpkgdir"/etc/conf.d/sockd || return 1
install -D -m755 "$srcdir"/sockd.initd \
"$subpkgdir"/etc/init.d/sockd || return 1
install -D -m644 "example/sockd.conf" "$subpkgdir/etc/sockd.conf"
install -D -m644 "$srcdir"/sockd.confd "$subpkgdir"/etc/conf.d/sockd
install -D -m755 "$srcdir"/sockd.initd "$subpkgdir"/etc/init.d/sockd
install -d "$subpkgdir/usr/sbin"
mv "$pkgdir/usr/sbin/sockd" "$subpkgdir/usr/sbin/sockd"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment