mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
network/haproxy: Shorten CHANGELOG.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
2c84163c7a
commit
99238ce754
1 changed files with 10 additions and 2 deletions
|
@ -29,7 +29,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=haproxy
|
||||
VERSION=${VERSION:-2.5.7}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -132,9 +132,17 @@ 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 CHANGELOG CONTRIBUTING LICENSE MAINTAINERS README ROADMAP SUBVERS VERDATE VERSION examples \
|
||||
cp -a CONTRIBUTING LICENSE MAINTAINERS README ROADMAP 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
|
||||
fi
|
||||
|
||||
cp $CWD/{syslog.example,logrotate.example} $PKG/usr/doc/$PRGNAM-$VERSION/examples/
|
||||
|
||||
mkdir -p $PKG/etc/haproxy
|
||||
|
|
Loading…
Reference in a new issue