aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-10-25 04:26:34 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-02 19:28:41 +0700
commitc123d191027c4c8a6d5d7d06ed33d2144757aa6f (patch)
treec3a79a6eb617fdbb6b219884179d4bdb7b637112 /development
parentc913c971a25016146f619f9fcbfd9920693dc3c7 (diff)
development/cgit: Bump BUILD, update README.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/cgit/README5
-rw-r--r--development/cgit/cgit.SlackBuild16
2 files changed, 9 insertions, 12 deletions
diff --git a/development/cgit/README b/development/cgit/README
index dea69479f959..1f531470afe9 100644
--- a/development/cgit/README
+++ b/development/cgit/README
@@ -5,9 +5,8 @@ The folder /var/cache/cgit, must be owned by your webserver user.
A sample /etc/cgitrc (you must provide one) is in the docs folder,
and so are some example configuration files for apache and lighttpd.
-luacrypto or lua-md5 are optional dependencies (for avatars support),
-but first you have to build this against lua (use lua, *NOT* lua52
-or lua53).
+Optional dependencies: lua, luacrypto, and lua-md5 (for avatars
+support).
If you want to use the email-libravatar-korg.lua filter or the
email-gravatar-sbo.lua one, have a look also to the suggested css
diff --git a/development/cgit/cgit.SlackBuild b/development/cgit/cgit.SlackBuild
index 3a3c0f8deadb..f717f77a3a48 100644
--- a/development/cgit/cgit.SlackBuild
+++ b/development/cgit/cgit.SlackBuild
@@ -21,11 +21,15 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20241025 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - bump BUILD to make people rebuild with the new lua.
+# - remove mention of lua52/lua53 from README.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cgit
VERSION=${VERSION:-1.2.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +43,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -82,11 +83,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/v$VERSION.tar.gz || tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
-\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
# prepare sources
sed -i Makefile \