APKBUILD 3.12 KB
Newer Older
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
3
pkgname=logrotate
prymeroot's avatar
prymeroot committed
4 5
pkgver=3.8.5
pkgrel=0
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
6 7
pkgdesc="Tool to rotate logfiles"
url="https://fedorahosted.org/logrotate/"
8
arch="all"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
9
license="GPL"
10
depends=
11
makedepends="popt-dev wget"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
12
subpackages="$pkgname-doc"
13
source="https://fedorahosted.org/releases/l/o/logrotate/logrotate-$pkgver.tar.gz
14 15 16
	logrotate-3.7.9-atomic-create.patch
	logrotate-3.7.9-shred.patch
	logrotate-3.7.9-statefile.patch
17 18 19
	logrotate.cron
	logrotate.conf
	logrotate.confd"
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
20 21 22 23

build() {
	cd "$srcdir/$pkgname-$pkgver"
	make || return 1
24 25 26 27 28
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	install -d "$pkgdir"/etc/logrotate.d
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
29 30
	install -Dm755 logrotate "$pkgdir"/usr/sbin/logrotate
	install -Dm644 logrotate.8 "$pkgdir"/usr/share/man/man8/logrotate.8
31
	install -Dm644 ../logrotate.conf "$pkgdir"/etc/logrotate.conf
32 33 34 35
	install -Dm755 "$srcdir"/logrotate.cron \
		"$pkgdir"/etc/periodic/daily/logrotate || return 1
	install -Dm644 "$srcdir"/logrotate.confd  \
		"$pkgdir"/etc/conf.d/logrotate
Carlo Lanmdeter's avatar
Carlo Lanmdeter committed
36 37
}

prymeroot's avatar
prymeroot committed
38
md5sums="d3c13e2a963a55c584cfaa83e96b173d  logrotate-3.8.5.tar.gz
39 40 41
0273f868dc4208eed0a442759d86e77c  logrotate-3.7.9-atomic-create.patch
74216579397b03c44d1d85dd233306d8  logrotate-3.7.9-shred.patch
82ebd23da8a7f0650a4c80577dbdc739  logrotate-3.7.9-statefile.patch
42 43 44
7e9fad2c9b382a2370c11ef0c89f61c7  logrotate.cron
fef6415a79a6fede8cf9b9b6b8410090  logrotate.conf
e7e4b67d5c4bda49ff3c041834180c1e  logrotate.confd"
prymeroot's avatar
prymeroot committed
45
sha256sums="6b695bffeb54ed6f6c9a560780231a55c3548a24b96cb06f33b84f8cea600079  logrotate-3.8.5.tar.gz
46 47 48 49 50 51
6a4f4a325c49c9a7eaa4a5a9fb4a049cad5b3b7864a55135b42ed624d2a7cbdf  logrotate-3.7.9-atomic-create.patch
4c19c29b9be6bef70a34dd3af4903b2c901edd635f4b42be93731ac17ed8b38f  logrotate-3.7.9-shred.patch
014dd543785ccdd74e47084be3c77c78b22d240252197f88caa680a32e397549  logrotate-3.7.9-statefile.patch
ccbcf1785c754ce07a55b81223ae5b0c2caec1ccf9cdf865debb140052f9b363  logrotate.cron
c8fbf89e4f3afee4fc59ed5dff246eda9d1ea1cbce38bf9dbabfc3af2f01e951  logrotate.conf
814bea9082cfa3a9446e25f4f4fe4fe205130cea6ba15dc8286409c3d01a3973  logrotate.confd"
prymeroot's avatar
prymeroot committed
52
sha512sums="7548a8a1841eccb28272ca13d7305315c921563486d3a31bda6e53699d450fdaeb819e181c003200042de869f3526b5fdf162dd4a2fe435264027c197d3f5f1c  logrotate-3.8.5.tar.gz
53 54 55 56 57 58
9e75b33526d07fd83e3d2e636f656270366f67b164189d869b5bd35ef2ca7a78758bbcef5d2ccc841fc061df2b95624bd68d6c195177bc8ab30980f4c8ee407c  logrotate-3.7.9-atomic-create.patch
10ee86943466fbafa6736609330c00df51edaf13b278fc9a4a2ab7067d888d174d16b356bb7c17a24a421cb4047ed3f2beeeef66ee857af72dc13a2ed05c4b24  logrotate-3.7.9-shred.patch
5a7d3f84549cb7b3ceab034ea34fd425cbc0d3fe20f08298444f5569d608de086cd1a0fb243166e32cd99e54f56c4aa211b4444dff2a5efa8b97e8bbad8d542d  logrotate-3.7.9-statefile.patch
f4d708594fb2b240cfc2928f38a180d27c2cecb9867e048dc29a32c0147244db4d2f6d92e7bff27e1f2623537587db87b2f8fc9bb988f98eff0c98f79f5a5bf2  logrotate.cron
8d49880f2477c8e18b8ea4f6c17410635e761a819b0463c3e73447ee06d3f3649ae9ad16f239451ef5d8e308e74102ef8cf2da6a4c5890e8968dd4ecbf6d1e3b  logrotate.conf
be9f0043b594d26b4f64e07a2188d19c3c43af75ef726305e4d98f744fc16cee9f280227116858e2f5b781c0a7b58e0209d7e9ab1285dfa7ba55a9dfda700229  logrotate.confd"