aboutsummaryrefslogblamecommitdiffstats
path: root/main/logrotate/APKBUILD
blob: 71818db620e226435917203a94f2625b57f93545 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                     
                                                   

                 
        


                                         
        
                           
                          

                                                                              


                                     
                        




                                            

                                                                           

                                                                                     

 

                                                                 
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=logrotate
pkgver=3.7.8
pkgrel=3
pkgdesc="Tool to rotate logfiles"
url="https://fedorahosted.org/logrotate/"
license="GPL"
depends=
makedepends="popt-dev wget"
subpackages="$pkgname-doc"
source="https://fedorahosted.org/releases/l/o/logrotate/logrotate-3.7.8.tar.gz
	logrotate.conf"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	install -d "$pkgdir"/etc/logrotate.d
	install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate
	install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8
	install -Dm644 ../logrotate.conf "$pkgdir"/etc/logrotate.conf
	install -Dm755 examples/logrotate.cron "$pkgdir"/etc/periodic/daily/logrotate
}

md5sums="b3589bea6d8d5afc8a84134fddaae973  logrotate-3.7.8.tar.gz
fef6415a79a6fede8cf9b9b6b8410090  logrotate.conf"