### this file is sourced not run
PKGVER=3.16.0
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=logrotate-$PKGVER.tar.xz
MD5SUM=faf729e0e24bfaafaa677bc6deb46ed8
SRC_URL=https://github.com/logrotate/logrotate/releases/download/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ=
SLACKDESC="logrotate: logrotate $PKGVER (Log file management)
logrotate: 
logrotate: The logrotate utility is designed to simplify the administration of 
logrotate: log files on a system which generates a lot of log files. Logrotate 
logrotate: allows for the automatic rotation compression, removal and mailing of 
logrotate: log files. Logrotate can be set to handle a log file hourly, daily, 
logrotate: weekly, monthly or when the log file gets to a certain size.
logrotate: 
logrotate: https://github.com/logrotate/logrotate
logrotate: 
logrotate: 
"

# Note: this tool requires /bin/mail.
# /bin/mail does not exist by default but some packages provides it,
# e.g mailutils, bsd-mailx, s-nail. They need to be symlink-ed
# to /bin/mail; or logrotate must be called with the -m switch.

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	pkg_build_autoconf &&
	pkg_build_slackdesc &&

	# install examples
	install -dm755 /usr/share/logrotate/examples &&
	install -m644 examples/* /usr/share/logrotate/examples &&

	true
}
