[arch-commits] Commit in krb5/trunk (PKGBUILD)
Stéphane Gaudreault
stephane at archlinux.org
Thu Apr 28 20:02:45 UTC 2011
Date: Thursday, April 28, 2011 @ 16:02:45
Author: stephane
Revision: 121054
upgpkg: krb5 1.9-1
Initial build
Modified:
krb5/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-04-28 16:04:00 UTC (rev 121053)
+++ PKGBUILD 2011-04-28 20:02:45 UTC (rev 121054)
@@ -32,7 +32,7 @@
build() {
tar zxvf ${pkgname}-${pkgver}.tar.gz
- cd "${srcdir}/${pkgname}-${pkgver}/src"
+ cd "${srcdir}/${pkgname}-${pkgver}/src"
patch -Np2 -i ../../CVE-2010-4022.patch
patch -Np2 -i ../../CVE-2011-0281.0282.0283.patch
@@ -40,8 +40,8 @@
patch -Np2 -i ../../CVE-2011-0285.patch
export CFLAGS+=" -fPIC -fno-strict-aliasing -fstack-protector-all"
- export CPPFLAGS+=" -I/usr/include/et"
- ./configure --prefix=/usr \
+ export CPPFLAGS+=" -I/usr/include/et"
+ ./configure --prefix=/usr \
--sysconfdir=/etc/krb5 \
--mandir=/usr/share/man \
--localstatedir=/var/lib \
@@ -56,8 +56,14 @@
make
}
+check() {
+ # We can't do this in the build directory.
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make -C src check
+}
+
package() {
- cd "${srcdir}/${pkgname}-${pkgver}/src"
+ cd "${srcdir}/${pkgname}-${pkgver}/src"
make DESTDIR="${pkgdir}" EXAMPLEDIR="/usr/share/doc/${pkgname}/examples" install
install -D -m 644 config-files/kdc.conf "${pkgdir}"/etc/krb5/kdc.conf
@@ -65,5 +71,5 @@
install -D -m 755 ../../krb5-kdc.rc "${pkgdir}"/etc/rc.d
install -D -m 755 ../../kadmind.rc "${pkgdir}"/etc/rc.d
- install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/NOTICE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+ install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/NOTICE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
More information about the arch-commits
mailing list