summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@debian.org>2005-06-21 12:11:05 +0000
committerRoger Leigh <rleigh@debian.org>2005-06-21 12:11:05 +0000
commit66b91461089ed3612e8d9f73a8bc4e0d42696c20 (patch)
treeedf4cc54a01b2b5d73cdef011075ba59e4ba31a6
parent311a7de44229955ef12d69c99450b9b005743de4 (diff)
downloadschroot-66b91461089ed3612e8d9f73a8bc4e0d42696c20.tar.gz
Summary:
Add initial Debian packaging Revision: schroot--mainline--0.1.0--patch-19 - Add debian directory and initial files. - Makefile.am: add debian to SUBDIRS.
-rw-r--r--Makefile.am2
-rw-r--r--debian/README.Debian19
-rw-r--r--debian/changelog6
-rw-r--r--debian/compat1
-rw-r--r--debian/conffiles1
-rw-r--r--debian/control21
-rw-r--r--debian/copyright22
-rw-r--r--debian/docs3
-rwxr-xr-xdebian/rules91
9 files changed, 166 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 4d325277..d5e11712 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,3 +25,5 @@ $(srcdir)/ChangeLog:
tla changelog >$@
.PHONY: ChangeLog
+
+EXTRA_DIST = debian
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 00000000..d795b143
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,19 @@
+schroot for Debian
+------------------
+
+Note that giving untrusted users root access to chroots is a bad idea.
+Although they will only have root access to files inside the chroot,
+in practice there are many obvious ways of breaking out of the chroot
+or distrupting services on the host system. As always, this boils
+down to trust. Don't give root access to chroots to users you would
+not trust with root access to the host system.
+
+Other alternative packages to schroot are dchroot and fakechroot.
+These serve different needs, and may be more appropriate. schroot
+should be a drop-in replacement for dchroot, and offers much more
+functionality. fakechroot may be more secure if users want to
+have some approximation of root access in a chroot, but you don't
+want to give them full root access.
+
+
+ -- Roger Leigh <rleigh@debian.org>, Sun, 19 Jun 2005 15:11:58 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 00000000..883f070f
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+schroot (0.1.0-1) unstable; urgency=low
+
+ * Initial release Closes: #nnnn (nnnn is the bug number of your ITP)
+
+ -- Roger Leigh <rleigh@debian.org> Sun, 19 Jun 2005 15:11:58 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 00000000..b8626c4c
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+4
diff --git a/debian/conffiles b/debian/conffiles
new file mode 100644
index 00000000..8c1f6d8b
--- /dev/null
+++ b/debian/conffiles
@@ -0,0 +1 @@
+/etc/schroot.conf
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..54df293c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,21 @@
+Source: schroot
+Section: admin
+Priority: optional
+Maintainer: Roger Leigh <rleigh@debian.org>
+Build-Depends: debhelper (>= 4.0.0), autotools-dev, libpam0g-dev, libglib2.0-dev
+Standards-Version: 3.6.1
+
+Package: schroot
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Execute commands in a chroot environment
+ schroot allows users to execute commands or interactive shells
+ in different chroots. Any number of named chroots may be
+ created, and access permissions given to each, including root
+ access for normal users, on a per-group basis. Additionally,
+ schroot can switch to a different user in the chroot, using PAM
+ for authentication and authorisation. All operations are logged
+ for security.
+ .
+ schroot shares most of its options with dchroot, but offers
+ vastly more functionality.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 00000000..6ff2b8c4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+This package was debianized by Roger Leigh <rleigh@debian.org> on
+Sun, 19 Jun 2005 15:11:58 +0100.
+
+It was downloaded from a local schroot arch repository.
+
+Copyright Holder: Roger Leigh <rleigh@debian.org>
+
+License: GPL
+
+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., 675 Mass Ave, Cambridge, MA 02139, USA.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 00000000..5502ed8f
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+NEWS
+README
+TODO
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..bc7a3746
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,91 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+config.status: configure
+ dh_testdir
+ # Add here commands to configure the package.
+ CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/schroot.sgml > schroot.1
+
+ touch build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+ cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+ cp -f /usr/share/misc/config.guess config.guess
+endif
+
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ # Add here commands to install the package into debian/schroot.
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/schroot
+ rm -rf $(CURDIR)/debian/schroot/usr/share/gtk-doc
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs ChangeLog
+ dh_installdocs
+ dh_installexamples
+ dh_installman
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ chmod 4755 $(CURDIR)/debian/schroot/usr/bin/schroot
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install