summaryrefslogtreecommitdiff
path: root/community/fcron/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-09-03 16:10:12 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-09-03 16:10:12 -0300
commit037bcb846a6662420bd0f5d1edaad58bda4c86a7 (patch)
tree82494884d013c7b2cc9cd5df16c54cae0712d472 /community/fcron/PKGBUILD
parent830afd54d0d990fdb982292bed4c97f577dc195d (diff)
parent3aa73e2018f321c9ccff8eca801b1c2fa9f18fa8 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/darkhttpd/PKGBUILD community/gnome-panel/PKGBUILD community/gpicview/PKGBUILD community/iftop/PKGBUILD community/lazarus/PKGBUILD community/netsurf/PKGBUILD community/polkit-gnome/PKGBUILD community/texvc/PKGBUILD community/unbound/PKGBUILD community/xfmedia/PKGBUILD core/glibc/PKGBUILD extra/arora/PKGBUILD extra/cairo/PKGBUILD extra/graphviz/PKGBUILD extra/libmng/PKGBUILD extra/mesa/PKGBUILD extra/nx/PKGBUILD extra/qt4/PKGBUILD extra/qt5/PKGBUILD extra/sqlite/PKGBUILD libre/midori-libre/PKGBUILD ~fauno/distccd-zeroconf/PKGBUILD ~fauno/kyotocabinet/PKGBUILD ~fauno/kyototycoon/PKGBUILD
Diffstat (limited to 'community/fcron/PKGBUILD')
-rw-r--r--community/fcron/PKGBUILD25
1 files changed, 14 insertions, 11 deletions
diff --git a/community/fcron/PKGBUILD b/community/fcron/PKGBUILD
index cf512694c..a7fe33a33 100644
--- a/community/fcron/PKGBUILD
+++ b/community/fcron/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 91897 2013-05-29 00:39:11Z seblu $
+# $Id: PKGBUILD 96423 2013-08-28 15:04:05Z seblu $
# Contributor: Giorgio Lando <lando at imap dot cc>
# Contributor: Sergej Pupykin
# Contributor: Thomas Bächler
@@ -7,13 +7,17 @@
pkgname=fcron
pkgver=3.1.2
-pkgrel=7
+pkgrel=8
pkgdesc='Feature-rich cron implementation'
arch=(i686 x86_64 mips64el)
url='http://fcron.free.fr'
license=('GPL')
depends=('pam' 'run-parts')
-makedepends=('smtp-forwarder' 'vi')
+makedepends=('smtp-forwarder' 'vi' 'fcron')
+# use fcron as recursive deps to have user fcron installed during installation
+# else add the following in build chroot
+# groupadd -g 23 fcron
+# useradd -r -d /var/spool/fcron -u 23 -g 23 fcron
optdepends=('smtp-forwarder: to send mails from cron jobs'
'vi: default editor for fcrontab')
provides=('cron')
@@ -30,13 +34,14 @@ md5sums=('36bf213e15f3a480f2274f8e46cced0a'
build() {
cd $pkgname-$pkgver
+ # Don't use --username=root and --groupname=root, this completly break
+ # fcron security and allow local root escalation.
+ # Thanks to Anh K. Huynh <kyanh@theslinux.org> for reporting it.
./configure --prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc/fcron \
--with-answer-all=no \
--with-boot-install=no \
- --with-username=root \
- --with-groupname=root \
--datarootdir=/usr/share \
--datadir=/usr/share \
--with-docdir=/usr/share/doc \
@@ -44,22 +49,20 @@ build() {
--with-systemdsystemunitdir=/usr/lib/systemd/system \
--with-piddir=/run \
--with-editor=/usr/bin/vi \
- --with-sendmail=/usr/sbin/sendmail
+ --with-sendmail=/usr/bin/sendmail
make
}
package() {
cd $pkgname-$pkgver
-
make DESTDIR="$pkgdir/" install
- install -D -m644 "$srcdir/$pkgname-$pkgver/files/fcron.pam" "$pkgdir/etc/pam.d/fcron"
-
- install -D -m644 "$srcdir/$pkgname-$pkgver/files/fcrontab.pam" "$pkgdir/etc/pam.d/fcrontab"
+ install -Dm644 files/fcron.pam "$pkgdir/etc/pam.d/fcron"
+ install -Dm644 files/fcrontab.pam "$pkgdir/etc/pam.d/fcrontab"
# Install a default fcrontab so that fcron can completely replace dcron
# We doesn't use binary format which is incompatible between arch and may cause crash
# We regenerate the binary format at each update
- install -D -m640 "$srcdir/systab.orig" "$pkgdir/var/spool/fcron/systab.orig"
+ install -Dm640 "$srcdir/systab.orig" "$pkgdir/var/spool/fcron/systab.orig"
# Add cron.* directories
install -d -m755 "$pkgdir/etc/cron.daily"