mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 05:47:13 +08:00
39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
|
|
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/openresolv
|
|
|
|
pkgname=openresolv
|
|
pkgver=3.5.6
|
|
pkgrel=1
|
|
pkgdesc="resolv.conf management framework (resolvconf)"
|
|
arch=(any)
|
|
url="http://roy.marples.name/projects/openresolv"
|
|
license=('custom:BSD')
|
|
backup=(etc/resolvconf.conf)
|
|
provides=(resolvconf)
|
|
depends=(bash)
|
|
makedepends=(systemd)
|
|
source=("http://roy.marples.name/downloads/openresolv/${pkgname}-${pkgver}.tar.bz2"
|
|
fix-dnsmasq.patch)
|
|
md5sums=('ac03b7a52cf0f2040cc70df641f1baff'
|
|
'f2e6207621b284d1879bd004f8784b1e')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -Np1 -i ../fix-dnsmasq.patch
|
|
sed -n '2,25{s:^# \?::;p}' resolvconf.in >LICENSE
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/resolvconf \
|
|
--sbindir=/usr/bin
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|