From 3297b4aa1d52651a2fdf415ce02d307cc0639ec8 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Mon, 20 Aug 2018 07:10:25 +0700 Subject: [PATCH] sbopkg: Added logrotate support. Signed-off-by: Willy Sudiarto Raharjo --- src/etc/logrotate.d/sbopkg | 6 ++++++ tools/ChangeLog-latest.txt | 4 +++- tools/sbopkg.SlackBuild | 5 +++-- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 src/etc/logrotate.d/sbopkg diff --git a/src/etc/logrotate.d/sbopkg b/src/etc/logrotate.d/sbopkg new file mode 100644 index 0000000..2721174 --- /dev/null +++ b/src/etc/logrotate.d/sbopkg @@ -0,0 +1,6 @@ +/var/log/sbopkg/sbopkg-build-log { + monthly + notifempty + missingok + compress +} diff --git a/tools/ChangeLog-latest.txt b/tools/ChangeLog-latest.txt index f7887b9..d861d83 100644 --- a/tools/ChangeLog-latest.txt +++ b/tools/ChangeLog-latest.txt @@ -1,6 +1,6 @@ SBOPKG NEWS -sbopkg-dev (2018-08-13 22:53:29 UTC) +sbopkg-dev (2018-08-20 00:09:56 UTC) FEATURES * sqg: Parallelize building of single and all packages by option -j. Patch by Marcel Saegebarth. @@ -24,6 +24,8 @@ sbopkg-dev (2018-08-13 22:53:29 UTC) Patch by Yaroslav Shmelev. * sbopkg: Add optional sandbox support. Initial patch by Orbea (#49). + * sbopkg: Add logrotate support. + Feature Request by wronguser (#50). MODIFICATIONS * bash-completion: Complete -i and -b when git repo is used diff --git a/tools/sbopkg.SlackBuild b/tools/sbopkg.SlackBuild index 30d376f..5d17fab 100644 --- a/tools/sbopkg.SlackBuild +++ b/tools/sbopkg.SlackBuild @@ -9,7 +9,7 @@ # Based on the SlackBuilds.org template. PRGNAM=sbopkg -VERSION=${VERSION:-0.38.1} +VERSION=${VERSION:-0.38.2} ARCH=${ARCH:-noarch} BUILD=${BUILD:-1} TAG=${TAG:-_wsr} @@ -35,8 +35,9 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir -p $PKG/etc/sbopkg +mkdir -p $PKG/etc/sbopkg $PKG/etc/logrotate.d/ cp -a etc/sbopkg/* $PKG/etc/sbopkg +cp -a etc/logrotate.d/sbopkg $PKG/etc/logrotate.d/ mv $PKG/etc/sbopkg/sbopkg.conf $PKG/etc/sbopkg/sbopkg.conf.new mv $PKG/etc/sbopkg/blacklist $PKG/etc/sbopkg/blacklist.new