mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-16 05:50:23 +08:00
41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=sudo
|
|
pkgver=1.7.4p2
|
|
pkgrel=1
|
|
pkgdesc="Give certain users the ability to run some commands as root"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.sudo.ws/sudo/"
|
|
license=('custom')
|
|
depends=('glibc' 'pam')
|
|
backup=('etc/sudoers' 'etc/pam.d/sudo')
|
|
source=(ftp://ftp.sudo.ws/pub/sudo/$pkgname-$pkgver.tar.gz
|
|
sudo.pam)
|
|
options=('!libtool' '!makeflags' 'force')
|
|
md5sums=('80f3a2506f0ec3e2d75e7d17d95f5341'
|
|
'4e7ad4ec8f2fe6a40e12bcb2c0b256e3')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver || return 1
|
|
|
|
./configure --prefix=/usr --with-pam --libexecdir=/usr/lib \
|
|
--with-env-editor --with-all-insults --with-logfac=auth || return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver || return 1
|
|
|
|
make DESTDIR=$pkgdir install || return 1
|
|
install -Dm644 $srcdir/sudo.pam $pkgdir/etc/pam.d/sudo || return 1
|
|
|
|
install -Dm644 LICENSE $pkgdir/usr/share/licenses/sudo/LICENSE || return 1
|
|
}
|