diff options
author | Badchay <badchay@protonmail.com> | 2022-06-03 21:08:58 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-06-04 10:37:22 +0700 |
commit | 60f050d94b7fed262345fc4f36e11732f67235ec (patch) | |
tree | 2a29bc9ed6ef5800850e0f999329f0c706abcf03 /network/haproxy | |
parent | acd2861cbcfccec536ad3a2baa49f3b6a0cf89f3 (diff) |
network/haproxy: Updated for version 2.6.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/haproxy')
-rw-r--r-- | network/haproxy/README.SLACKWARE | 6 | ||||
-rw-r--r-- | network/haproxy/haproxy.SlackBuild | 11 | ||||
-rw-r--r-- | network/haproxy/haproxy.info | 6 | ||||
-rw-r--r-- | network/haproxy/logrotate.example | 2 |
4 files changed, 15 insertions, 10 deletions
diff --git a/network/haproxy/README.SLACKWARE b/network/haproxy/README.SLACKWARE index b83472439e73e..91d9ea2bf6d02 100644 --- a/network/haproxy/README.SLACKWARE +++ b/network/haproxy/README.SLACKWARE @@ -15,6 +15,12 @@ You might want to add something like this to your haproxy.cfg file: global log /dev/log local0 +Note that rotating logs does not require restarting HAProxy. +Instead, logrotate script should send a HUP signal to syslogger +when rotating. Example script is included in syslog.example. +Rotating has been tested with sysklogd (Slackware default) and +syslog-ng. + -------- Automatic starting/stopping upon system start/shutdown -------- diff --git a/network/haproxy/haproxy.SlackBuild b/network/haproxy/haproxy.SlackBuild index 4855f4d73de51..aabd8b84d0e5d 100644 --- a/network/haproxy/haproxy.SlackBuild +++ b/network/haproxy/haproxy.SlackBuild @@ -28,8 +28,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=haproxy -VERSION=${VERSION:-2.5.7} -BUILD=${BUILD:-2} +VERSION=${VERSION:-2.6.0} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -132,15 +132,14 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r install -D -m 0644 $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM.new -cp -a CONTRIBUTING LICENSE MAINTAINERS README ROADMAP SUBVERS VERDATE VERSION examples \ +cp -a CONTRIBUTING LICENSE MAINTAINERS README BRANCHES SUBVERS VERDATE VERSION examples \ $PKG/usr/doc/$PRGNAM-$VERSION # If there's a CHANGELOG, installing at least part of the recent history # is useful, but don't let it get totally out of control: if [ -r CHANGELOG ]; then - DOCSDIR=$(echo $PKG/usr/doc/${PRGNAM}-$VERSION) - cat CHANGELOG | head -n 1000 > $DOCSDIR/CHANGELOG - touch -r CHANGELOG $DOCSDIR/CHANGELOG + head -n 1000 CHANGELOG > $PKG/usr/doc/$PRGNAM-$VERSION/CHANGELOG + touch -r CHANGELOG $PKG/usr/doc/$PRGNAM-$VERSION/CHANGELOG fi cp $CWD/{syslog.example,logrotate.example} $PKG/usr/doc/$PRGNAM-$VERSION/examples/ diff --git a/network/haproxy/haproxy.info b/network/haproxy/haproxy.info index 8b6c7e29b0a5f..eff422323e83a 100644 --- a/network/haproxy/haproxy.info +++ b/network/haproxy/haproxy.info @@ -1,8 +1,8 @@ PRGNAM="haproxy" -VERSION="2.5.7" +VERSION="2.6.0" HOMEPAGE="https://www.haproxy.org/" -DOWNLOAD="https://www.haproxy.org/download/2.5/src/haproxy-2.5.7.tar.gz" -MD5SUM="5d36cd69c8eb55ae09213af7b144d56b" +DOWNLOAD="https://www.haproxy.org/download/2.6/src/haproxy-2.6.0.tar.gz" +MD5SUM="e51109f3f7cb3fb7e6cc95273a3820b9" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/network/haproxy/logrotate.example b/network/haproxy/logrotate.example index 2fd2924d9a729..7bc93f8e3395f 100644 --- a/network/haproxy/logrotate.example +++ b/network/haproxy/logrotate.example @@ -4,6 +4,6 @@ missingok rotate 4 postrotate - /etc/rc.d/rc.haproxy restart + /bin/kill -HUP `cat /var/run/syslogd.pid 2>/dev/null` 2>/dev/null || true endscript } |