# # Chakra Packages for Chakra, part of chakra-project.org # # maintainer (i686): Phil Miller # maintainer (x86_64): Manuel Tortosa # include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=sudo pkgver="1.8.3p2" 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') options=('!libtool' '!makeflags') source=("ftp://ftp.sudo.ws/pub/sudo/${pkgname}-${pkgver}.tar.gz" 'sudo.pam') md5sums=('6d4282a1530c541f7900fa8dfcf2a882' '4e7ad4ec8f2fe6a40e12bcb2c0b256e3') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr \ --with-pam \ --libexecdir=/usr/lib \ --with-env-editor \ --with-all-insults \ --with-logfac=auth make } package() { cd "${srcdir}/${pkgname}-${pkgver}" # This is to ensure consistency with the permissions specified # in the 'filesystem' package. install -d -m755 "${pkgdir}/var/lib" make DESTDIR="${pkgdir}" install install -D -m644 "${srcdir}/sudo.pam" "${pkgdir}/etc/pam.d/sudo" install -D -m644 doc/LICENSE "${pkgdir}/usr/share/licenses/sudo/LICENSE" } # vim:set ts=2 sw=2 et: