Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7a36f09482b70e2e8a9fc9f61986389ae0026fe9

commit 7a36f09482b70e2e8a9fc9f61986389ae0026fe9
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sun Feb 27 10:30:15 2011 +0100

pacman-tools-1.2.6-1-i686

- version bump

diff --git a/source/devel/pacman-tools/FrugalBuild 
b/source/devel/pacman-tools/FrugalBuild
index abae4cf..2121a9b 100644
--- a/source/devel/pacman-tools/FrugalBuild
+++ b/source/devel/pacman-tools/FrugalBuild
@@ -4,9 +4,9 @@
USE_DEVEL=${USE_DEVEL:-"n"}

pkgname=pacman-tools
-pkgver=1.2.5
+pkgver=1.2.6
Fuse $USE_DEVEL && pkgver=1.1.7.13.g544f9ab
-pkgrel=2
+pkgrel=1
pkgdesc="Tools for developers for managing packages"
url="http://ftp.frugalware.org/pub/other/pacman-tools";
depends=('bash' 'perl>=5.10.0-8' 'pacman-g2>=3.7.0-4' 'wget>=1.11.4-2'
@@ -17,13 +17,20 @@ archs=('i686' 'x86_64' 'ppc')
backup=(etc/repoman.conf etc/syncpkg{cd/c,d/d,d/ctl}config.py)
up2date="Flasttar $url"
if ! Fuse $USE_DEVEL; then
-       source=($url/$pkgname-$pkgver.tar.gz \
-               http://git.frugalware.org/patches/pacman-tools/554e74b.patch)
-       signatures=(${source[0]}.asc '')
+       source=($url/$pkgname-$pkgver.tar.gz)
+       signatures=(${source[0]}.asc)
else
_F_scm_type="git"
_F_scm_url="git://git.frugalware.org/pub/other/pacman-tools/pacman-tools"
Finclude scm
fi
options=('scriptlet')
+
+build()
+{
+       Fbuild
+       Fmkdir /etc/sudoers.d
+       echo "syncpkgd ALL=(ALL) NOPASSWD: /usr/bin/makepkg" >> 
$Fdestdir/etc/sudoers.d/pacman-tools
+}
+
# optimization OK
diff --git a/source/devel/pacman-tools/pacman-tools.install 
b/source/devel/pacman-tools/pacman-tools.install
index 2f66bf7..adcc82d 100644
--- a/source/devel/pacman-tools/pacman-tools.install
+++ b/source/devel/pacman-tools/pacman-tools.install
@@ -1,11 +1,6 @@
post_install()
{
getent passwd syncpkgd >/dev/null || /usr/sbin/useradd -g 2 -u 12 syncpkgd
-       if [ -e /etc/sudoers ]; then
-               if ! grep -q syncpkgd /etc/sudoers; then
-                       echo "syncpkgd ALL=(ALL) NOPASSWD: /usr/bin/makepkg" 
>>/etc/sudoers
-               fi
-       fi
}

post_upgrade()
@@ -16,9 +11,6 @@ post_upgrade()
pre_remove()
{
userdel syncpkgd
-       if [ -e /etc/sudoers ]; then
-               sed -i '/syncpkgd ALL=(ALL) NOPASSWD: \/usr\/bin\/makepkg/d' 
/etc/sudoers
-       fi
}

op=$1
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to