summaryrefslogblamecommitdiff
path: root/system/fcron/APKBUILD
blob: 1cb61786442bd9c05d1fe0d8dc27cee227bfa71f (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                       

            
                        
                           


                                       
                          

                           

                 





                                                                     




                                            
                                                    











                                                  







                                                                                  
                                                                                                                                                                    
                                                                                                                                             
                                                                                                                                              
# Contributor: Diaz Devera Victor <vitronic2@gmail.com>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=fcron
pkgver=3.3.1
pkgrel=0
pkgdesc="Task scheduler"
url="http://fcron.free.fr/"
arch="all"
options="suid !check"  # No test suite.
license="GPL"
depends="cmd:sendmail vim"
makedepends="perl"
install="fcron.pre-install"
pkgusers="fcron"
pkggroups="fcron"
subpackages="$pkgname-doc $pkgname-openrc"
source="http://fcron.free.fr/archives/${pkgname}-${pkgver}.src.tar.gz
	systab.orig
	fcron.initd"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--with-editor=/usr/bin/vim \
		--with-sendmail=/usr/sbin/sendmail \
		--with-spooldir=/var/spool/fcron \
		--sysconfdir=/etc/fcron \
		--with-answer-all=no \
		--with-boot-install=no \
		--localstatedir=/var \
		--with-piddir=/run \
		--with-selinux=no \
		--with-systemdsystemunitdir=no
	make
}

package() {
	make DESTDIR="$pkgdir/" install
	install -Dm775 "$srcdir"/fcron.initd "$pkgdir"/etc/init.d/fcron
	rm -r "$pkgdir"/var/run
	install -Dm640 "$srcdir"/systab.orig "$pkgdir"/var/spool/fcron/systab.orig
	install -Dm644 files/fcron.pam "$pkgdir"/etc/pam.d/fcron
	install -Dm644 files/fcrontab.pam "$pkgdir"/etc/pam.d/fcrontab
}

sha512sums="b9c5066bdf8588a6b8d811ccc0d49f1d41a17dabf898a280997a8136dc449c2a505c46868abf732f86184ff0720d51f17442691909acae8fb26edcd180cff281  fcron-3.3.1.src.tar.gz
7516c9a51b1f6c29f1256c4697028b47f7883bf5fb08ccc585cf49e4edc7598a9730a225a03aaf3749698a94b9d01dda76cd3f352c0c868960fd09374df44199  systab.orig
8674743ca9080e3cc1e4ebc610dfe362f9d6bd5525447f1f1aa2066a6746d3323ce23ba1fae2e49b222ed0418f9492bbb3a3c73c8239631c5d6ead4b9259630f  fcron.initd"