[Pkg-shadow-commits] r477 - branches/experimental/debian/patches
Christine Spang
christine-guest at costa.debian.org
Fri Aug 26 05:31:08 UTC 2005
Author: christine-guest
Date: 2005-08-26 05:31:06 +0000 (Fri, 26 Aug 2005)
New Revision: 477
Modified:
branches/experimental/debian/patches/999-2_build_using_cdbs
Log:
Fix stuff not getting chmod'd +s that should be in cdbs build.
Modified: branches/experimental/debian/patches/999-2_build_using_cdbs
===================================================================
--- branches/experimental/debian/patches/999-2_build_using_cdbs 2005-08-25 20:34:25 UTC (rev 476)
+++ branches/experimental/debian/patches/999-2_build_using_cdbs 2005-08-26 05:31:06 UTC (rev 477)
@@ -1,239 +1,6 @@
-Index: shadow-4.0.12/debian/rules
-===================================================================
---- shadow-4.0.12.orig/debian/rules 2005-08-21 22:02:15.000000000 -0400
-+++ shadow-4.0.12/debian/rules 2005-08-21 22:03:30.000000000 -0400
-@@ -1,8 +1,27 @@
- #!/usr/bin/make -f
-+# -*- mode: makefile; coding: utf-8 -*-
-+
-+include /usr/share/cdbs/1/rules/debhelper.mk
-+# Specify where dh_install will find the files that it needs to move:
-+DEB_DH_INSTALL_SOURCEDIR=debian/tmp
-+DH_COMPAT = 4
-+
-+include /usr/share/cdbs/1/class/autotools.mk
-+# Automatically update autoconf, etc.
-+DEB_AUTO_UPDATE_ACLOCAL = 1.7
-+DEB_AUTO_UPDATE_AUTOCONF = 1.7
-+#DEB_AUTO_UPDATE_LIBTOOL = "pre"
-+DEB_AUTO_UPDATE_AUTOMAKE = 1.7
-+
-+# Adds extra options when calling the configure script:
-+DEB_CONFIGURE_EXTRA_FLAGS := --disable-shared --without-libcrack --mandir=/usr/share/man --with-libpam --enable-shadowgrp
-+ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-+ DEB_CONFIGURE_EXTRA_FLAGS += --host=$(DEB_HOST_GNU_TYPE)
-+endif
-+
-+# Automatically controls patching at build time:
-+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
-
--# This is the debhelper compatibility version to use.
--export DH_COMPAT=4
--
- CFLAGS = -g -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
- ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-@@ -11,91 +30,25 @@
- endif
- export CFLAGS
-
--config_options := --disable-shared --without-libcrack --mandir=/usr/share/man --with-libpam --enable-shadowgrp
--
--DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
--DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
--DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
--ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
-- config_options += --host=$(DEB_HOST_GNU_TYPE)
--endif
--
--# see /usr/share/doc/autotools-dev/README.Debian.gz
--export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
--export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
--
--# FOR AUTOCONF 2.52 AND NEWER ONLY
--ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
-- confflags += --build $(DEB_HOST_GNU_TYPE)
--else
-- confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
--endif
--
--export DH_COMPAT=3
-+binary-install/login::
-+ ln -sf newgrp debian/login/usr/bin/sg
-+ # PAM
-+ install -d debian/login/etc/pam.d
-+ install -c -m 444 debian/pam.d/login debian/login/etc/pam.d/login
-+ install -c -m 444 debian/pam.d/su debian/login/etc/pam.d/su
-+ install -c -m 444 debian/login.defs debian/login/etc/login.defs
-+ install -c -m 444 debian/securetty.$(DEB_HOST_ARCH_OS) debian/login/etc/securetty
-+ # Lintian and Linda overrides
-+ install -c -m 444 debian/login.lintian-overrides debian/login/usr/share/lintian/overrides/login
-+ install -c -m 444 debian/login.linda-overrides debian/login/usr/share/linda/overrides/login
-+ # No real need for login to be setuid root
-+ # chmod u+s debian/login/bin/login
-+ chmod u+s debian/login/bin/su
-+ chmod u+s debian/login/usr/bin/newgrp
-
--# The autotools target adds forced build-time dependencies on
--# autotools-dev (for /usr/share/misc/config.*) and devscripts (for dch)
--# It's also a .PHONY make target.
--autotools:
-- chmod u+x config.sub
-- chmod u+x config.guess
-- OLDDATESUB=`./config.sub -t | tr -d -` ;\
-- OLDDATEGUESS=`./config.guess -t | tr -d -` ;\
-- NEWDATESUB=`/usr/share/misc/config.sub -t | tr -d -` ;\
-- NEWDATEGUESS=`/usr/share/misc/config.guess -t | tr -d -` ;\
-- if [ $$OLDDATESUB -lt $$NEWDATESUB -o \
-- $$OLDDATEGUESS -lt $$NEWDATEGUESS ]; then \
-- cp -f /usr/share/misc/config.sub config.sub ;\
-- cp -f /usr/share/misc/config.guess config.guess ;\
-- echo WARNING: GNU config scripts updated from master copies 1>&2 ;\
-- fi
--
--configure-stamp: patch autotools
-- dh_testdir
-- touch configure-stamp
--
--
--build: configure-stamp build-stamp
--build-stamp:
-- dh_testdir
-- aclocal-1.7
-- autoconf
-- automake-1.7
-- ./configure $(config_options)
-- $(MAKE)
-- touch build-stamp
--
--install: install-stamp
--install-stamp: build-stamp
-- dh_testdir
-- dh_testroot
-- rm -rf debian/tmp
-- mkdir debian/tmp
-- $(MAKE) DESTDIR=$$(pwd)/debian/tmp install
-- touch install-stamp
--
--clean: clean-patched unpatch
--
--clean-patched: autotools
-- rm -f build-stamp install-stamp configure-stamp
-- $(checkdir)
-- -$(MAKE) distclean
-- dh_clean
-- rm -rf debian/tmp debian/login debian/passwd
-- rm -f build install debian/*~ debian/substvars # debian/files*
-- # Thanks, lintian
-- rm -f config.log
--
--binary-indep:
--
--binary-arch: build install
-- dh_testdir
-- dh_testroot
-- dh_movefiles
-- dh_installdirs
-+binary-install/passwd::
- ln -sf vipw debian/passwd/usr/sbin/vigr
- ln -sf cppw debian/passwd/usr/sbin/cpgr
-- ln -sf newgrp debian/login/usr/bin/sg
- # Bug #288106. This used to be renamed to limits.conf.5
- # but does not reflect what we do in Debian
- # so we'd better forget about that man page
-@@ -104,15 +57,11 @@
- install -c -m 444 man/ja/shadowconfig.8 debian/passwd/usr/share/man/ja/man8
- install -c -m 444 man/pl/shadowconfig.8 debian/passwd/usr/share/man/pl/man8
- install -c -m 444 man/fr/shadowconfig.8 debian/passwd/usr/share/man/fr/man8
-- install -d debian/login/etc/pam.d
-- install -c -m 444 debian/pam.d/login debian/login/etc/pam.d/login
-- install -c -m 444 debian/pam.d/su debian/login/etc/pam.d/su
-+ # PAM
- install -d debian/passwd/etc/pam.d
- install -c -m 444 debian/pam.d/chfn debian/passwd/etc/pam.d/chfn
- install -c -m 444 debian/pam.d/chsh debian/passwd/etc/pam.d/chsh
- install -c -m 444 debian/pam.d/passwd debian/passwd/etc/pam.d/passwd
-- install -c -m 444 debian/login.defs debian/login/etc/login.defs
-- install -c -m 444 debian/securetty.$(DEB_HOST_ARCH_OS) debian/login/etc/securetty
- install -d debian/passwd/usr/share/passwd
- install -c -m 444 debian/shells debian/passwd/usr/share/passwd/shells
- install -d debian/passwd/sbin
-@@ -124,71 +73,15 @@
- install -c -m 444 debian/cpgr.8 debian/passwd/usr/share/man/man8
- install -c -m 444 debian/cppw.8 debian/passwd/usr/share/man/man8
- # Lintian overrides files
-- install -c -m 444 debian/login.lintian-overrides debian/login/usr/share/lintian/overrides/login
- install -c -m 444 debian/passwd.lintian-overrides debian/passwd/usr/share/lintian/overrides/passwd
- # Linda overrides files
-- install -c -m 444 debian/login.linda-overrides debian/login/usr/share/linda/overrides/login
- install -c -m 444 debian/passwd.linda-overrides debian/passwd/usr/share/linda/overrides/passwd
--
-- dh_installdocs
-- dh_installexamples
-- dh_compress
-- dh_installchangelogs
-- dh_fixperms
-+ # suid files
- chmod u+s debian/passwd/usr/bin/chfn
- chmod u+s debian/passwd/usr/bin/chsh
- chmod u+s debian/passwd/usr/bin/gpasswd
- chmod u+s debian/passwd/usr/bin/passwd
-- # No real need for login to be setuid root
-- # chmod u+s debian/login/bin/login
-- chmod u+s debian/login/bin/su
-- chmod u+s debian/login/usr/bin/newgrp
- chgrp shadow debian/passwd/usr/bin/chage
- chgrp shadow debian/passwd/usr/bin/expiry
- chmod g+s debian/passwd/usr/bin/chage
- chmod g+s debian/passwd/usr/bin/expiry
-- dh_strip
-- dh_compress
-- dh_shlibdeps
-- dh_installdebconf
--ifneq ($(DEB_HOST_ARCH_OS),hurd)
-- echo "loginpam=login (>= 970502-1), libpam-modules (>= 0.72-5)" >> debian/passwd.substvars
--else
-- echo "loginpam=login, libpam-modules (>= 0.72-5)" >> debian/passwd.substvars
--endif
-- dh_installdeb
-- dh_gencontrol
-- dh_md5sums
-- dh_builddeb
--
--binary: binary-indep binary-arch
--
--.PHONY: autotools build clean checkroot binary-indep binary-arch patch unpatch
--
--
--
--####
--#### The following is the exact content of /usr/share/quilt/quilt.make
--#### but this file was added only in "quilt (<= 0.40)", which is not in sarge.
--#### If we do build-dep on this version one day, we could remplace this by:
--#### include /usr/share/quilt/quilt.make
--#### But I prefer to keep buildable in sarge for now.
--####
--
--# QUILT_STAMPFN: stamp file to use
--QUILT_STAMPFN ?= stamp-patched
--
--# QUILT_PATCH_DIR: where the patches live
--QUILT_PATCH_DIR ?= debian/patches
--
--patch: $(QUILT_STAMPFN)
--$(QUILT_STAMPFN):
-- # quilt exits with 2 as return when there was nothing to do.
-- # That's not an error here (but it's usefull to break loops in crude scripts)
-- QUILT_PATCHES=$(QUILT_PATCH_DIR) quilt push -a || test $$? = 2
-- touch debian/$(QUILT_STAMPFN)
--
--unpatch:
-- QUILT_PATCHES=$(QUILT_PATCH_DIR) quilt pop -a -R || test $$? = 2
-- rm -rf .pc debian/$(QUILT_STAMPFN)
--
Index: shadow-4.0.12/debian/login.files
===================================================================
---- shadow-4.0.12.orig/debian/login.files 2005-08-21 21:35:48.000000000 -0400
+--- shadow-4.0.12.orig/debian/login.files 2005-08-26 01:15:13.000000000 -0400
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,22 +0,0 @@
-usr/share/locale/*/LC_MESSAGES/shadow.mo
@@ -261,7 +28,7 @@
Index: shadow-4.0.12/debian/login.install
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ shadow-4.0.12/debian/login.install 2005-08-21 22:02:16.000000000 -0400
++++ shadow-4.0.12/debian/login.install 2005-08-26 01:15:24.000000000 -0400
@@ -0,0 +1,22 @@
+usr/share/locale/*/LC_MESSAGES/shadow.mo
+usr/share/man/*/man1/login.1
@@ -287,7 +54,7 @@
+bin/su
Index: shadow-4.0.12/debian/passwd.files
===================================================================
---- shadow-4.0.12.orig/debian/passwd.files 2005-08-21 22:02:15.000000000 -0400
+--- shadow-4.0.12.orig/debian/passwd.files 2005-08-26 01:15:13.000000000 -0400
+++ /dev/null 1970-01-01 00:00:00.000000000 +0000
@@ -1,77 +0,0 @@
-usr/bin/chage
@@ -370,7 +137,7 @@
Index: shadow-4.0.12/debian/passwd.install
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
-+++ shadow-4.0.12/debian/passwd.install 2005-08-21 22:02:16.000000000 -0400
++++ shadow-4.0.12/debian/passwd.install 2005-08-26 01:15:24.000000000 -0400
@@ -0,0 +1,77 @@
+usr/bin/chage
+usr/bin/chfn
More information about the Pkg-shadow-commits
mailing list