Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/web
In directory vz-cvs-3.sog:/tmp/cvs-serv23716
Added Files:
javascript-common.info
Log Message:
New package to help add commonly installed javascript
--- NEW FILE: javascript-common.info ---
Package: javascript-common
Version: 7
Revision: 1
###
Suggests: apache2
###
Source: none
###
PatchScript: <<
#!/bin/sh -ev
cat >javascript-common.conf <<EOF
Alias /javascript %p/share/javascript/
<Directory "%p/share/javascript/">
Options FollowSymLinks MultiViews
</Directory>
EOF
<<
CompileScript: echo
InstallScript: <<
install -d -m755 %i/etc/javascript-common
install -d -m755 %i/share/javascript
install -m644 %b/javascript-common.conf %i/etc/javascript-common
<<
###
PostInstScript: <<
set -e
case "${1}" in
configure)
mkdir -p %p/etc/apache2/conf.d
if [ ! -e %p/etc/apache2/conf.d/javascript-common.conf ]
then
ln -s %p/etc/javascript-common/javascript-common.conf
%p/etc/apache2/conf.d/javascript-common.conf
fi
if which apache2ctl >/dev/null 2>&1
then
apache2ctl restart
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
exit 0
<<
###
PostRmScript: <<
set -e
if [ -L %p/etc/apache2/conf.d/javascript-common.conf ]
then
rm -f %p/etc/apache2/conf.d/javascript-common.conf
fi
if which apache2ctl >/dev/null 2>&1
then
apache2ctl restart
fi
exit 0
<<
###
Description: Base support for javascript library packages
DescDetail: <<
Web applications that use JavaScript need to distribute it through HTTP. Using
a common path for every script avoids the need to enable this path in the HTTP
server for every package.
.
This is a helper package that creates %p/share/javascript and enables it in
the Apache webserver.
<<
###
License: GPL
Homepage: http://packages.qa.debian.org/j/javascript-common.html
Maintainer: Justin F. Hallett <[email protected]>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs