+++ /dev/null
-#!/bin/sh -e
-
-. /usr/share/debconf/confmodule
-
-if [ ! -e /etc/shadow ]; then
- db_input medium lsb/shadowconfig || true
-fi
-db_go
Priority: extra
Maintainer: Debian LSB Team <debian-lsb@lists.debian.org>
Uploaders: Didier Raboud <odyx@debian.org>
-Build-Depends: debhelper (>> 7),
+Build-Depends: debhelper (>> 7.0.50~),
po-debconf (>= 0.5.0),
dpkg-dev (>= 1.10),
python-support, python-all-dev
+++ /dev/null
-usr/lib/lsb
-var/lib/lsb
-etc/profile.d
--- /dev/null
+init-functions /lib/lsb
--- /dev/null
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+if [ ! -e /etc/shadow ]; then
+ db_input medium lsb/shadowconfig || true
+fi
+db_go
--- /dev/null
+usr/lib/lsb
+var/lib/lsb
+etc/profile.d
--- /dev/null
+test/init-skeleton
--- /dev/null
+initdutils.py /usr/lib/lsb
+install_initd /usr/lib/lsb
+remove_initd /usr/lib/lsb
+lsbinstall /usr/lib/lsb
--- /dev/null
+#!/bin/sh -e
+
+setup_ldso_symlink () {
+ ARCH=`dpkg --print-architecture`
+ case "$ARCH" in
+ s390|ppc64|sparc|sparc64|alpha|hppa|m68k|mipsel)
+ ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.1
+ ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.2
+ ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.3
+ ;;
+ powerpc)
+ ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.1
+ ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.2
+ ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.3
+ ;;
+ i386)
+ ln -sf ld-linux.so.2 /lib/ld-lsb.so.1
+ ln -sf ld-linux.so.2 /lib/ld-lsb.so.2
+ ln -sf ld-linux.so.2 /lib/ld-lsb.so.3
+ ;;
+ amd64)
+ ln -sf ld-linux.so.2 /lib/ld-lsb.so.1
+ ln -sf ld-linux.so.2 /lib/ld-lsb.so.2
+ ln -sf ld-linux.so.2 /lib/ld-lsb.so.3
+ ln -sf ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.2
+ ln -sf ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3
+ [ -L /lib/ld-lsb-x86-64.so.2 ] && rm /lib/ld-lsb-x86-64.so.2 || true
+ [ -L /lib/ld-lsb-x86-64.so.3 ] && rm /lib/ld-lsb-x86-64.so.3 || true
+ ;;
+ ia64)
+ ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.1
+ ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.2
+ ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.3
+ ;;
+ *)
+ echo "ld-lsb-*.so.1 symlink for $ARCH is unknown!"
+ ;;
+ esac
+}
+
+PATH=/sbin:/usr/sbin:$PATH
+export PATH
+
+. /usr/share/debconf/confmodule
+
+case "$1" in
+ configure)
+ if [ ! -e /etc/shadow ]; then
+ db_get lsb/shadowconfig
+ if [ "$RET" = "true" ]; then
+ shadowconfig on >&2 || true
+ fi
+ fi
+ setup_ldso_symlink
+ ;;
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
--- /dev/null
+#!/bin/sh -e
+
+remove_ldso_symlink () {
+ ARCH=`dpkg --print-architecture`
+ case "$ARCH" in
+ s390|ia64|ppc64|sparc|sparc64|alpha|hppa|m68k|mipsel)
+ rm -f /lib/ld-lsb-$ARCH.so.[123]
+ ;;
+ powerpc)
+ rm -f /lib/ld-lsb-ppc32.so.[123]
+ ;;
+ i386)
+ rm -f /lib/ld-lsb.so.[123]
+ ;;
+ amd64)
+ rm -f /lib/ld-lsb.so.[123] /lib64/ld-lsb-x86-64.so.[23] /lib/ld-lsb-x86-64.so.[23]
+ ;;
+ *)
+ echo "ld-lsb-*.so.1 symlink for $ARCH is unknown; not removed."
+ ;;
+ esac
+}
+
+PATH=/sbin:/usr/sbin:$PATH
+export PATH
+
+case "$1" in
+ remove)
+ remove_ldso_symlink
+ rm -f /var/lib/lsb/facilities
+ rm -f /var/lib/lsb/depends
+ ;;
+ failed-upgrade|upgrade|deconfigure)
+ ;;
+ *)
+ echo "prerm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+
+#DEBHELPER#
--- /dev/null
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# for an advice to debian-l10n-english@lists.debian.org
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+Template: lsb/shadowconfig
+Type: boolean
+Default: true
+_Description: Enable shadow passwords?
+ The Linux Standard Base requires that certain features of adduser(8)
+ be available to conforming applications (such as password
+ aging). These features are only provided when shadow passwords are
+ enabled, while this system has them disabled.
+ .
+ Most LSB applications will work fine with either setting, but complete
+ conformance requires shadow passwords to be enabled.
+ .
+ Generally speaking, it is considered good practice to enable shadow
+ passwords. However, there are some situations in which shadow passwords
+ may not work properly (most notably, if non-root users need to
+ check passwords against /etc/passwd).
--- /dev/null
+#!/bin/sh
+echo 'lsb_release output' >& 3
+echo '-*- -*- -*- -*- -*-'>&3
+lsb_release -a >& 3
+echo '-*- -*- -*- -*- -*-'>&3
+echo ' Apt policy' >&3
+echo '-*- -*- -*- -*- -*-'>&3
+apt-cache policy >&3
+echo '-*- -*- -*- -*- -*-'>&3
+echo ' sources.list' >&3
+echo '-*- -*- -*- -*- -*-'>&3
+if [ -f /etc/apt/sources.list ]; then
+ cat /etc/apt/sources.list | grep -v '^\s*#' | grep -v '^\s*$' >&3
+else
+ echo '- none' >&3
+fi
+echo '-*- -*- -*- -*- -*-'>&3
+echo ' /etc/lsb_release' >&3
+echo '-*- -*- -*- -*- -*-'>&3
+if [ -f /etc/lsb_release ]; then
+ cat /etc/lsb_release >&3
+else
+ echo '- none' >&3
+fi
+++ /dev/null
-#!/bin/sh
-echo 'lsb_release output' >& 3
-echo '-*- -*- -*- -*- -*-'>&3
-lsb_release -a >& 3
-echo '-*- -*- -*- -*- -*-'>&3
-echo ' Apt policy' >&3
-echo '-*- -*- -*- -*- -*-'>&3
-apt-cache policy >&3
-echo '-*- -*- -*- -*- -*-'>&3
-echo ' sources.list' >&3
-echo '-*- -*- -*- -*- -*-'>&3
-if [ -f /etc/apt/sources.list ]; then
- cat /etc/apt/sources.list | grep -v '^\s*#' | grep -v '^\s*$' >&3
-else
- echo '- none' >&3
-fi
-echo '-*- -*- -*- -*- -*-'>&3
-echo ' /etc/lsb_release' >&3
-echo '-*- -*- -*- -*- -*-'>&3
-if [ -f /etc/lsb_release ]; then
- cat /etc/lsb_release >&3
-else
- echo '- none' >&3
-fi
--- /dev/null
+lsb_release /usr/bin
+lsb_release.py /usr/share/python-support/lsb-release
-[type: gettext/rfc822deb] templates
+[type: gettext/rfc822deb] lsb-core.templates
+++ /dev/null
-#!/bin/sh -e
-
-setup_ldso_symlink () {
- ARCH=`dpkg --print-architecture`
- case "$ARCH" in
- s390|ppc64|sparc|sparc64|alpha|hppa|m68k|mipsel)
- ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.1
- ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.2
- ln -sf ld.so.1 /lib/ld-lsb-$ARCH.so.3
- ;;
- powerpc)
- ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.1
- ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.2
- ln -sf ld.so.1 /lib/ld-lsb-ppc32.so.3
- ;;
- i386)
- ln -sf ld-linux.so.2 /lib/ld-lsb.so.1
- ln -sf ld-linux.so.2 /lib/ld-lsb.so.2
- ln -sf ld-linux.so.2 /lib/ld-lsb.so.3
- ;;
- amd64)
- ln -sf ld-linux.so.2 /lib/ld-lsb.so.1
- ln -sf ld-linux.so.2 /lib/ld-lsb.so.2
- ln -sf ld-linux.so.2 /lib/ld-lsb.so.3
- ln -sf ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.2
- ln -sf ld-linux-x86-64.so.2 /lib64/ld-lsb-x86-64.so.3
- [ -L /lib/ld-lsb-x86-64.so.2 ] && rm /lib/ld-lsb-x86-64.so.2 || true
- [ -L /lib/ld-lsb-x86-64.so.3 ] && rm /lib/ld-lsb-x86-64.so.3 || true
- ;;
- ia64)
- ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.1
- ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.2
- ln -sf ld-linux-ia64.so.2 /lib/ld-lsb-ia64.so.3
- ;;
- *)
- echo "ld-lsb-*.so.1 symlink for $ARCH is unknown!"
- ;;
- esac
-}
-
-PATH=/sbin:/usr/sbin:$PATH
-export PATH
-
-. /usr/share/debconf/confmodule
-
-case "$1" in
- configure)
- if [ ! -e /etc/shadow ]; then
- db_get lsb/shadowconfig
- if [ "$RET" = "true" ]; then
- shadowconfig on >&2 || true
- fi
- fi
- setup_ldso_symlink
- ;;
- abort-upgrade|abort-remove|abort-deconfigure)
- ;;
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-#DEBHELPER#
+++ /dev/null
-#!/bin/sh -e
-
-remove_ldso_symlink () {
- ARCH=`dpkg --print-architecture`
- case "$ARCH" in
- s390|ia64|ppc64|sparc|sparc64|alpha|hppa|m68k|mipsel)
- rm -f /lib/ld-lsb-$ARCH.so.[123]
- ;;
- powerpc)
- rm -f /lib/ld-lsb-ppc32.so.[123]
- ;;
- i386)
- rm -f /lib/ld-lsb.so.[123]
- ;;
- amd64)
- rm -f /lib/ld-lsb.so.[123] /lib64/ld-lsb-x86-64.so.[23] /lib/ld-lsb-x86-64.so.[23]
- ;;
- *)
- echo "ld-lsb-*.so.1 symlink for $ARCH is unknown; not removed."
- ;;
- esac
-}
-
-PATH=/sbin:/usr/sbin:$PATH
-export PATH
-
-case "$1" in
- remove)
- remove_ldso_symlink
- rm -f /var/lib/lsb/facilities
- rm -f /var/lib/lsb/depends
- ;;
- failed-upgrade|upgrade|deconfigure)
- ;;
- *)
- echo "prerm called with unknown argument \`$1'" >&2
- exit 1
- ;;
-esac
-
-
-#DEBHELPER#
#!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+ dh $@
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
-
# Map Debian architectures to LSB architectures
lsbarch=${DEB_HOST_ARCH}
ifeq (${lsbarch}, i386)
LIBC=libc6.1 (>> 2.3.5)
endif
-configure: configure-stamp
-configure-stamp:
- dh_testdir
- # Add here commands to configure the package.
-
- touch configure-stamp
-
-build: build-stamp
-
-build-stamp: configure-stamp
- dh_testdir
-
- # Add here commands to compile the package.
- #$(MAKE)
- #/usr/bin/docbook-to-man debian/lsb.sgml > lsb.1
-
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp *.py[co] debian/lsb*substvars
-
- # Add here commands to clean up after the build process.
-
+override_dh_clean:
dh_clean
+ rm -f *.py[co]
-install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
-
- # Add here commands to install the package into debian/lsb.
- #$(MAKE) install DESTDIR=$(CURDIR)/debian/lsb
- cp -p initdutils.py install_initd remove_initd lsbinstall debian/lsb-core/usr/lib/lsb
- cp -p init-functions debian/lsb-base/lib/lsb
- cp -p lsb_release debian/lsb-release/usr/bin
- cp -p lsb_release.py debian/lsb-release/usr/share/python-support/lsb-release
- cp -p debian/lsb-release.bugscript debian/lsb-release/usr/share/bug/lsb-release
-
-# Build architecture-independent files here.
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installdebconf -i
- dh_installdocs -i
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
-# dh_installinit
- dh_installcron -i
- dh_installman -i
- dh_installinfo -i
-# dh_undocumented
- dh_installchangelogs -i
- dh_link -i
- dh_strip -i
- dh_compress -i
- dh_fixperms -i
-# dh_makeshlibs
-# dh_perl
- dh_pysupport -i
-# dh_python
- dh_installdeb -i
- dh_shlibdeps -i
- dh_gencontrol -i
- dh_md5sums -i
- dh_builddeb -i
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installdebconf -a
- dh_installdocs -a
- dh_installexamples -a test/init-skeleton
- dh_installmenu -a
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
-# dh_installinit
- dh_installcron -a
- dh_installman -a
- dh_installinfo -a
-# dh_undocumented
- dh_installchangelogs -a
+override_dh_gencontrol:
@echo >> debian/lsb-core.substvars "glibc=${LIBC}"
# @[ ${DEB_HOST_GNU_TYPE} != 'arm-linux-gnueabi' ] && echo >> debian/lsb-cxx.substvars "depends=libstdc++5" || true
@echo >> debian/lsb-core.substvars "provides=lsb-core-${lsbarch}"
@echo >> debian/lsb-printing.substvars "provides=lsb-printing-${lsbarch}"
@[ ${DEB_HOST_ARCH} = 'amd64' ] && echo >> debian/lsb-core.substvars "depends=libc6-i386, lib32z1" || true
@[ ${DEB_HOST_ARCH} = 'kfreebsd-amd64' ] && echo >> debian/lsb-core.substvars "depends=libc0.1-i386, lib32z1" || true
- dh_link -a
- dh_strip -a
- dh_compress -a
- dh_fixperms -a
- dh_pysupport -a
-# dh_makeshlibs
- dh_installdeb -a
-# dh_perl
- dh_shlibdeps -a
- dh_gencontrol -a
- dh_md5sums -a
- dh_builddeb -a
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+ dh_gencontrol
+++ /dev/null
-# These templates have been reviewed by the debian-l10n-english
-# team
-#
-# If modifications/additions/rewording are needed, please ask
-# for an advice to debian-l10n-english@lists.debian.org
-#
-# Even minor modifications require translation updates and such
-# changes should be coordinated with translators and reviewers.
-
-Template: lsb/shadowconfig
-Type: boolean
-Default: true
-_Description: Enable shadow passwords?
- The Linux Standard Base requires that certain features of adduser(8)
- be available to conforming applications (such as password
- aging). These features are only provided when shadow passwords are
- enabled, while this system has them disabled.
- .
- Most LSB applications will work fine with either setting, but complete
- conformance requires shadow passwords to be enabled.
- .
- Generally speaking, it is considered good practice to enable shadow
- passwords. However, there are some situations in which shadow passwords
- may not work properly (most notably, if non-root users need to
- check passwords against /etc/passwd).