wok-next annotate shell-detector/receipt @ rev 21338

OpenSSL 1.0.2t -> 1.0.2u: overflow bug CVE-2019-1551
author Erkan Yilmaz <erkan@slitaz.org>
date Sat Dec 21 08:55:46 2019 +0000 (2019-12-21)
parents d5aab818505e
children
rev   line source
pascal@13243 1 # SliTaz package receipt.
pascal@13243 2
pascal@13243 3 PACKAGE="shell-detector"
pascal@16041 4 VERSION="20140308"
pascal@13243 5 CATEGORY="network"
al@21020 6 SHORT_DESC="Web shell detection tool"
pascal@13243 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15593 8 LICENSE="MIT"
al@20909 9 WEB_SITE="https://www.emposha.com/security/php-shell-detector-web-shell-detection-tool.html"
al@21051 10 HOST_ARCH="any"
al@21020 11
pascal@13243 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@13243 13 #WGET_URL="https://github.com/emposha/PHP-Shell-Detector/tarball/master"
pascal@13243 14 WGET_URL="git|git://github.com/emposha/PHP-Shell-Detector.git"
pascal@13243 15
pascal@13243 16 BUILD_DEPENDS="git"
pascal@13243 17
al@21020 18 compile_rules() {
pascal@20564 19 mkdir -p $install/usr/share/$PACKAGE
pascal@20564 20 cp -a * $install/usr/share/$PACKAGE
pascal@20564 21 ln -s shelldetect.php $install/usr/share/$PACKAGE/index.php
pascal@20564 22 chown -R www.www $install/usr/share/$PACKAGE
pascal@13243 23 }
pascal@13243 24
al@21020 25 genpkg_rules() {
pascal@20564 26 cp -a $install/usr $fs
al@21020 27 DEPENDS="php"
pascal@13243 28 }
pascal@13243 29
al@21020 30 post_install() {
pascal@13243 31 # Configure lighttpd server
pascal@18730 32 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
pascal@18730 33 if ! grep -q /usr/share/phpsysinfo/ "$1/etc/lighttpd/lighttpd.conf"; then
pascal@18730 34 sed -e "s|.*\"/examples/\" => \"/usr/share/examples/\",| \"/examples/\" => \"/usr/share/examples/\",\\n \"/$PACKAGE/\" => \"/usr/share/$PACKAGE/\",|g" -i "$1/etc/lighttpd/lighttpd.conf"
pascal@13243 35 if [ -z "$1" ]; then
pascal@13243 36 # Start Web server.
pascal@13243 37 /etc/init.d/lighttpd stop
pascal@13243 38 /etc/init.d/lighttpd start
pascal@13243 39 fi
pascal@13243 40 fi
pascal@13243 41 fi
pascal@13243 42 # Configure apache server
pascal@18730 43 if [ -f "$1/etc/apache/httpd.conf" ]; then
pascal@18730 44 if [ ! -f "$1/etc/apache/conf.d/$PACKAGE" ]; then
pascal@18730 45 cat > "$1/etc/apache/conf.d/$PACKAGE" <<EOT
pascal@13243 46 <IfModule mod_alias.c>
pascal@13243 47 Alias /$PACKAGE /usr/share/$PACKAGE
pascal@13243 48 </IfModule>
pascal@13243 49 <DirectoryMatch /usr/share/$PACKAGE/>
pascal@13243 50 DirectoryIndex index.php
pascal@13243 51 Options +FollowSymLinks
pascal@13243 52 AllowOverride None
pascal@13243 53 Order allow,deny
pascal@13243 54 Allow from all
pascal@13243 55 </DirectoryMatch>
pascal@13243 56 EOT
pascal@13243 57 if [ -z "$1" ]; then
pascal@13243 58 # Start Web server.
pascal@13243 59 /etc/init.d/apache stop
pascal@13243 60 /etc/init.d/apache start
pascal@13243 61 fi
pascal@13243 62 fi
pascal@13243 63 fi
pascal@13243 64 }