javascript-common/0000700000000000000000000000000012175310712011365 5ustar javascript-common/90-javascript-alias.conf0000644000000000000000000000007012175310712015726 0ustar alias.url += ("/javascript" => "/usr/share/javascript") javascript-common/debian/0000700000000000000000000000000012175477541012625 5ustar javascript-common/debian/rules0000755000000000000000000000005712175310712013703 0ustar #!/usr/bin/make -f %: dh ${@} --with apache2 javascript-common/debian/source/0000755000000000000000000000000012164360116014122 5ustar javascript-common/debian/source/format0000644000000000000000000000001512164360116015331 0ustar 3.0 (native) javascript-common/debian/copyright0000644000000000000000000000202212175310712014550 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Author: Marcelo Jorge Vieira Files: * Copyright: (C) 2008 Marcelo Jorge Vieira License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. javascript-common/debian/javascript-common.apache20000644000000000000000000000004512175310712017501 0ustar conf javascript-common.conf lighttpd javascript-common/debian/javascript-common.maintscript0000644000000000000000000000054612175310712020541 0ustar mv_conffile /etc/javascript-common/javascript-common.conf /etc/apache2/conf-available/javascript-common.conf 8 mv_conffile /etc/javascript-common/lighttpd.conf /etc/lighttpd/conf-available/90-javascript-alias.conf 8 # This will trigger a message: # warning: unable to delete old directory '/etc/javascript-common': Directory not empty # see dpkg bug #584185 javascript-common/debian/javascript-common.lintian-overrides0000644000000000000000000000011212164360116021630 0ustar javascript-common: package-contains-empty-directory usr/share/javascript/ javascript-common/debian/javascript-common.dirs0000644000000000000000000000002612164360116017137 0ustar /usr/share/javascript javascript-common/debian/javascript-common.install0000644000000000000000000000015712175310712017650 0ustar javascript-common.conf /etc/apache2/conf-available/ 90-javascript-alias.conf /etc/lighttpd/conf-available/ javascript-common/debian/javascript-common.postrm0000644000000000000000000000224212175310712017523 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "${1}" in purge) if [ -d /etc/lighttpd/conf-enabled/ ] then rmdir --ignore-fail-on-non-empty /etc/lighttpd/conf-enabled/ fi # /etc/javascript-common/lighttpd_disabled_by_user is NOT a conffile: if [ -e /etc/javascript-common/lighttpd_disabled_by_user ] then rm /etc/javascript-common/lighttpd_disabled_by_user fi if [ -d /etc/javascript-common/ ] then rmdir --ignore-fail-on-non-empty /etc/javascript-common/ fi ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 javascript-common/debian/compat0000644000000000000000000000000212175310712014017 0ustar 9 javascript-common/debian/control0000644000000000000000000000162312175320667014240 0ustar Source: javascript-common Section: web Priority: optional Maintainer: Debian Javascript Maintainers Uploaders: Marcelo Jorge Vieira (metal) Build-Depends: debhelper (>= 9), dh-apache2 Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-javascript/javascript-common.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/javascript-common.git Package: javascript-common Architecture: all Depends: ${misc:Depends} Suggests: apache2 (>= 2.4.6~) | lighttpd | httpd Description: Base support for JavaScript library packages 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 /usr/share/javascript and enables it in the Apache and Lighttpd webserver. javascript-common/debian/README.lighttpd_removal0000644000000000000000000000275112175310712017051 0ustar This files describes the mechanism used to enable or not lighttpd conf file on configure. Rationale ========= When a package is removed, its links in conf-enabled must be deleted. Not doing so will usually result in the use of removed data, and might cause httpd start failure. Note that in the case of javascript-common, we could have decided to disable /javascript on purge rather that on removal, but that would have made package usage inconsistent with common practice. The problem is that the user might disable the module by just deleting the link, for example by using lighttpd-disable-mod command. We must not recreate that link if that's the case. A missing link should be considered as local user configuration choice. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474913#33 A basic solution might be not to recreate it on updates testing "$2" is empty in postinst. But then if the package is uninstalled and not purged the information is lost. The complete solution consists in storing inside the configuration, meaning in /etc, the fact during uninstall, that the link was aleady removed. Implementation ============== prerm remove|upgrade: If conf-enabled link was removed, create a file /etc/javascript-common/lighttpd_disabled_by_user postinst configure: Enable on fresh installs and old upgrades. On other upgrades, check file lighttpd_disabled_by_user to enable or not. That file is not a conffile, we don't want the user to be bugged during upgrades about a change he did not make. javascript-common/debian/javascript-common.README.Debian0000644000000000000000000000065012164360116020317 0ustar javascript-common for Debian ---------------------------- Packages installed in /usr/share/javascript/ are exposed to Apache in http://localhost/javascript and can be used by through the following lines in your html headers: -- Marcelo Jorge Vieira (metal) Tue, 12 Feb 2008 16:16:52 -0200 javascript-common/debian/javascript-common.prerm0000644000000000000000000000330212175310712017322 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package disabled_file_content() { echo << EOS This file has been automatically generated by javascript-common during its uninstallation in order to keep track that you choose to disabled javascript-alias from lighttpd. It will disappear if you reinstall javascript-common or if you purge it. EOS } case "${1}" in remove) # disable our lighttpd conf as soon as possible, hence in prerm if [ -L /etc/lighttpd/conf-enabled/90-javascript-alias.conf ] then rm -f /etc/lighttpd/conf-enabled/90-javascript-alias.conf if which invoke-rc.d > /dev/null && [ -x /etc/init.d/lighttpd ] then invoke-rc.d lighttpd reload || true fi else # Already disabled! # Keep track of conf disabled by user mkdir -p /etc/javascript-common disabled_file_content > /etc/javascript-common/lighttpd_disabled_by_user fi ;; upgrade) if [ ! -L /etc/lighttpd/conf-enabled/90-javascript-alias.conf ] then # Keep track of conf disabled by user mkdir -p /etc/javascript-common disabled_file_content > /etc/javascript-common/lighttpd_disabled_by_user fi ;; failed-upgrade|deconfigure) ;; *) echo "prerm called with unknown argument \`${1}'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 javascript-common/debian/javascript-common.postinst0000644000000000000000000000407512175476062020103 0ustar #!/bin/sh set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package lighttpd_setup() { mkdir -p /etc/lighttpd/conf-enabled if [ ! -e /etc/lighttpd/conf-enabled/90-javascript-alias.conf ] then ln -s ../conf-available/90-javascript-alias.conf /etc/lighttpd/conf-enabled/90-javascript-alias.conf if which invoke-rc.d > /dev/null && [ -x /etc/init.d/lighttpd ] then invoke-rc.d lighttpd reload || true fi fi } case "${1}" in configure) if dpkg --compare-versions "$2" lt 9 then # Fresh install or most-recently-configured-version < 9 lighttpd_setup else if [ -e /etc/javascript-common/lighttpd_disabled_by_user ] then rm /etc/javascript-common/lighttpd_disabled_by_user rmdir --ignore-fail-on-non-empty /etc/javascript-common # Do not reenable javascript/ in lighttpd echo javascript-alias was disabled in lighttpd. >&2 echo Hint: Use \"lighttpd-enable-mod javascript-alias\" to re-enable. >&2 else lighttpd_setup fi fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`${1}'" >&2 exit 1 ;; esac #DEBHELPER# # Will make piupart more happy on upgrades if [ "$1" = "configure" ] && dpkg --compare-versions "$2" lt-nl "9" then # Remove old /etc/apache2/conf.d if empty and not already removed by user: if [ -d /etc/apache2/conf.d ] then rmdir --ignore-fail-on-non-empty /etc/apache2/conf.d fi # This is a work around bug #584185: if [ -d /etc/javascript-common ] then rmdir --ignore-fail-on-non-empty /etc/javascript-common fi fi exit 0 javascript-common/debian/changelog0000644000000000000000000001263012175477477014523 0ustar javascript-common (11) unstable; urgency=low * Test if obsolete /etc/apache2/conf.d/ was removed by user before touching it (Closes: #718249); Thanks Jean-Michel Vourgère. * Improving clean up for fresh installs. -- Marcelo Jorge Vieira (metal) Mon, 29 Jul 2013 11:36:13 -0300 javascript-common (10) unstable; urgency=low * Downgrading webservers relation from 'recommends' to 'suggests' -- Marcelo Jorge Vieira (metal) Sun, 28 Jul 2013 19:46:24 -0300 javascript-common (9) unstable; urgency=low [ Jean-Michel Vourgère ] * Fixed lighttpd test of preexisting link. (Closes: #712072) * Reload apache2/lighttpd ourself, drop dependency on wwwconfig-common. (Closes: #638200) * Make lintian happy: . Bumped standard to 3.9.4 (no change required). . Canonicalize control vcs-fields. * Make piuparts happy: (Closes: #603205) . Remove conf-enabled/ on postrm if empty. . Remove obsolete dir conf.d/ if empty on configure. * Moved /etc/javascript-common conffiles into their final conf-available locations. conf-enabled/ and conf.d files are now proper links on conf-available ones. . New maintscript. . Renamed source file lighttpd.conf into 90-javascript-alias.conf. . Bumped to compat level 9. . Adjusted Depends on debhelper >= 9 * Add copyright format version. * Changed set up for apache2.4 (Closes: #710475) . Build-Depends on dh-apache2. . New debian/apache2 file with dh_apache2 settings. . Added --with apache2 to debian/rules. . Changed Suggests: into Recommends: http. * Disable lighttpd conf in prerm remove. Temporarily store the fact that user manually disabled our configuration. In that case, do not reinstall link on configure. See README.lighttpd_removal. (Downgrades #474913) [ Marcelo Jorge Vieira ] * Removed Steve Kemp from Uploaders -- Marcelo Jorge Vieira (metal) Sun, 28 Jul 2013 18:10:52 -0300 javascript-common (8) unstable; urgency=low * Upgranding Standards-Version to 3.9.1 (no changes); * Changing my email for Debian address; * Changed "javascript" from lowercase to CamelCase in short description (Closes: #570675); * Removed DM-Upload-Allowed field; * Adding configuration for lighttpd (Closes: #594953) Thanks Rogério Brito ; * Switch to dpkg-source 3.0 (quilt) format. -- Marcelo Jorge Vieira (metal) Mon, 27 Sep 2010 14:47:35 -0300 javascript-common (7) unstable; urgency=low * Removing myself from uploaders. * Updating package to standards version 3.8.3. * Minimizing rules file. * Wrapping uploaders field. -- Daniel Baumann Wed, 26 Aug 2009 17:23:45 +0200 javascript-common (6) unstable; urgency=low [ Marcelo Jorge Vieira ] * Updated Standards-Version to 3.8.1 * Removed the Indexes option from Apache configuration (Closes: #529708) * Added DM-Upload-Allowed control field * Fixed my name in debian/control [ Daniel Baumann ] * Prefixing debhelper files with package name -- Marcelo Jorge Vieira (metal) Mon, 25 May 2009 00:46:00 -0300 javascript-common (5) unstable; urgency=high * Conditionally call wwwconfig-common/restart.sh in postrm script (Closes: #499362). -- Daniel Baumann Thu, 18 Sep 2008 11:11:00 +0200 javascript-common (4) unstable; urgency=medium * Downgrading relation to 'apache2 | httpd' from recommends to suggests (Closes: #496259). -- Daniel Baumann Wed, 27 Aug 2008 13:20:00 +0200 javascript-common (3) unstable; urgency=medium * Adding httpd alternative to apache2 recommends, thanks to Gregory Colpart (Closes: #485211). * Removing superfluous lintian override from debhelper install file, this is already taken care of by the lintian debhelper. * Using lintian debhelper to install lintian overrides. * Updating package to debhelper 7. * Updating to standards 3.8.0. -- Daniel Baumann Mon, 9 Jun 2008 16:32:00 +0200 javascript-common (2) unstable; urgency=low [ Steve Kemp ] * Added myself to the uploaders [ Daniel Baumann ] * Downgrading relation to apache2 from depends to recommends (Closes: #477475). * Rewrapping copyright file. * Removing double-whitespaces. * Updating vcs fields in control file. * Setting maintainer field to javascript group. -- Daniel Baumann Sat, 10 May 2008 19:28:00 +0200 javascript-common (1) unstable; urgency=low [ Marcelo Jorge Vieira ] * Initial Release. [ Daniel Baumann ] * Adding vcs fields in control. * Adding myself as comaintainer. * Removing some empty line seperators from maintainer scripts again which I have added before. * Rewrapping debhelper install file. * Creating javascript directory through debhelper dirs file. * Installing lintian override through debhelper install file. * Simplyfing, rewrapping and improving language in README.Debian. * Removing doublette of README.Debian. * Rewriting and simplyfing maintainer scripts. * Rewriting copyright in machine-interpretable format. * Rewrapping package description. * Removing shlibs depends, this package is arch all. * Replacing cdbs based rules with plain debhelper. * Bumping package to debhelper 6. * Switching order of directory options to apache default. -- Daniel Baumann Sun, 30 Mar 2008 00:33:00 +0100 javascript-common/javascript-common.conf0000644000000000000000000000017712164360115015707 0ustar Alias /javascript /usr/share/javascript/ Options FollowSymLinks MultiViews