mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 19:57:14 +08:00
38 lines
1.0 KiB
Bash
38 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.6.1
|
|
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"
|
|
fs33801.patch)
|
|
md5sums=('f385e26ec0f9cd06d8ccd45fc219002e'
|
|
'b6d3c06bd806de87497cb249bea954d0')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
patch -Np1 -i ../fs33801.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"
|
|
}
|