sbopkg: Added logrotate support.

Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
Willy Sudiarto Raharjo 2018-08-20 07:10:25 +07:00
parent 90a58646aa
commit 3297b4aa1d
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
3 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,6 @@
/var/log/sbopkg/sbopkg-build-log {
monthly
notifempty
missingok
compress
}

View File

@ -1,6 +1,6 @@
SBOPKG NEWS SBOPKG NEWS
sbopkg-dev (2018-08-13 22:53:29 UTC) sbopkg-dev (2018-08-20 00:09:56 UTC)
FEATURES FEATURES
* sqg: Parallelize building of single and all packages by option -j. * sqg: Parallelize building of single and all packages by option -j.
Patch by Marcel Saegebarth. Patch by Marcel Saegebarth.
@ -24,6 +24,8 @@ sbopkg-dev (2018-08-13 22:53:29 UTC)
Patch by Yaroslav Shmelev. Patch by Yaroslav Shmelev.
* sbopkg: Add optional sandbox support. * sbopkg: Add optional sandbox support.
Initial patch by Orbea (#49). Initial patch by Orbea (#49).
* sbopkg: Add logrotate support.
Feature Request by wronguser (#50).
MODIFICATIONS MODIFICATIONS
* bash-completion: Complete -i and -b when git repo is used * bash-completion: Complete -i and -b when git repo is used

View File

@ -9,7 +9,7 @@
# Based on the SlackBuilds.org template. # Based on the SlackBuilds.org template.
PRGNAM=sbopkg PRGNAM=sbopkg
VERSION=${VERSION:-0.38.1} VERSION=${VERSION:-0.38.2}
ARCH=${ARCH:-noarch} ARCH=${ARCH:-noarch}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_wsr} TAG=${TAG:-_wsr}
@ -35,8 +35,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -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/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/sbopkg.conf $PKG/etc/sbopkg/sbopkg.conf.new
mv $PKG/etc/sbopkg/blacklist $PKG/etc/sbopkg/blacklist.new mv $PKG/etc/sbopkg/blacklist $PKG/etc/sbopkg/blacklist.new