mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
network/nginx: Updated for version 1.0.4.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
faf8a35f7c
commit
7f0b8674e8
4 changed files with 11 additions and 30 deletions
|
@ -1,12 +0,0 @@
|
||||||
diff -Nur nginx-0.8.53.orig//auto/lib/perl/conf nginx-0.8.53//auto/lib/perl/conf
|
|
||||||
--- nginx-0.8.53.orig//auto/lib/perl/conf 2006-12-24 12:23:11.000000000 -0600
|
|
||||||
+++ nginx-0.8.53//auto/lib/perl/conf 2010-12-11 17:01:03.152535901 -0600
|
|
||||||
@@ -47,7 +47,7 @@
|
|
||||||
if test -n "$NGX_PERL_MODULES"; then
|
|
||||||
have=NGX_PERL_MODULES value="(u_char *) \"$NGX_PERL_MODULES\""
|
|
||||||
. auto/define
|
|
||||||
- NGX_PERL_MODULES_MAN=$NGX_PERL_MODULES/man3
|
|
||||||
+ NGX_PERL_MODULES_MAN=/usr/man/man3
|
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
|
|
@ -22,10 +22,10 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
# Modified by Max Miorim <miorimmax@gmail.com>
|
# Modified by Diogo Leal <diogo@diogoleal.com>
|
||||||
|
|
||||||
PRGNAM=nginx
|
PRGNAM=nginx
|
||||||
VERSION=${VERSION:-0.8.54}
|
VERSION=${VERSION:-1.0.4}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -73,9 +73,6 @@ find . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
# patch to install the perl man pages in /usr/man/man3
|
|
||||||
patch -p1 --verbose < $CWD/fix_perl_man_path.patch
|
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
|
@ -123,8 +120,6 @@ find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | \
|
||||||
find $PKG -perm 444 -exec chmod 0644 {} \;
|
find $PKG -perm 444 -exec chmod 0644 {} \;
|
||||||
find $PKG -perm 555 -exec chmod 0755 {} \;
|
find $PKG -perm 555 -exec chmod 0755 {} \;
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
|
||||||
|
|
||||||
# Remove some other empty and/or unnecessary directories from the package
|
# Remove some other empty and/or unnecessary directories from the package
|
||||||
eval $(perl '-V:archlib')
|
eval $(perl '-V:archlib')
|
||||||
rm -rf $PKG/$archlib $PKG/usr/html $PKG/var
|
rm -rf $PKG/$archlib $PKG/usr/html $PKG/var
|
||||||
|
@ -155,13 +150,11 @@ EOF
|
||||||
|
|
||||||
# Let's not clobber config files on upgrade
|
# Let's not clobber config files on upgrade
|
||||||
( cd $PKG/etc/nginx
|
( cd $PKG/etc/nginx
|
||||||
for i in * ; do
|
for i in fastcgi_params mime.types nginx.conf koi-utf koi-win win-utf; do
|
||||||
if ! echo "$i" | grep -q '.default' ; then
|
|
||||||
mv $i $i.new;
|
mv $i $i.new;
|
||||||
echo "config etc/nginx/$i.new" >> $PKG/install/doinst.sh;
|
echo "config etc/nginx/$i.new" >> $PKG/install/doinst.sh;
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
)
|
)
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -p -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="nginx"
|
PRGNAM="nginx"
|
||||||
VERSION="0.8.54"
|
VERSION="1.0.4"
|
||||||
HOMEPAGE="http://nginx.org/"
|
HOMEPAGE="http://nginx.org/"
|
||||||
DOWNLOAD="http://nginx.org/download/nginx-0.8.54.tar.gz"
|
DOWNLOAD="http://nginx.org/download/nginx-1.0.4.tar.gz"
|
||||||
MD5SUM="44df4eb6a22d725021288c570789046f"
|
MD5SUM="d23f6e6b07b57ac061e790b1ed64bb98"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Diogo Leal"
|
MAINTAINER="Diogo Leal"
|
||||||
EMAIL="diogo@diogoleal.com"
|
EMAIL="diogo@diogoleal.com"
|
||||||
APPROVED="rworkman"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in a new issue