From 7a77504f572d153a857f0fae677f5f4f326816f4 Mon Sep 17 00:00:00 2001 From: Vincent van Adrighem Date: Mon, 25 Oct 2004 13:44:20 +0000 Subject: [PATCH] Added a debian subdir for building debian packages. 2004-10-25 Vincent van Adrighem * debian/*: Added a debian subdir for building debian packages. --- ChangeLog | 5 +++++ debian/README.debian | 6 ++++++ debian/changelog | 5 +++++ debian/control | 12 +++++++++++ debian/copyright | 8 +++++++ debian/crontab.ex | 1 + debian/dirs | 2 ++ debian/diversions.ex | 1 + debian/inetd.conf.ex | 2 ++ debian/info.ex | 15 +++++++++++++ debian/init.d.ex | 51 ++++++++++++++++++++++++++++++++++++++++++++ debian/manpage.1.ex | 41 +++++++++++++++++++++++++++++++++++ debian/menu.ex | 2 ++ debian/rules | 50 +++++++++++++++++++++++++++++++++++++++++++ debian/watch.ex | 5 +++++ 15 files changed, 206 insertions(+) create mode 100644 debian/README.debian create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/crontab.ex create mode 100644 debian/dirs create mode 100644 debian/diversions.ex create mode 100644 debian/inetd.conf.ex create mode 100644 debian/info.ex create mode 100644 debian/init.d.ex create mode 100644 debian/manpage.1.ex create mode 100644 debian/menu.ex create mode 100755 debian/rules create mode 100644 debian/watch.ex diff --git a/ChangeLog b/ChangeLog index 0a3ac498..3197d81a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-10-25 Vincent van Adrighem + + * debian/*: Added a debian subdir. This dir contains buildscripts + for debian. + 2004-10-22 Bart Hakvoort * configure.in: bumped to version 0.0.6 diff --git a/debian/README.debian b/debian/README.debian new file mode 100644 index 00000000..6992c27c --- /dev/null +++ b/debian/README.debian @@ -0,0 +1,6 @@ +gparted for Debian +---------------------- + +Comments regarding the Package + +Vincent van Adrighem , Mon, 25 Oct 2004 15:08:08 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 00000000..c1884ce8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +gparted (0.0.6-1) unstable; urgency=low + + * Initial release. + + -- Vincent van Adrighem Mon, 25 Oct 2004 15:08:08 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 00000000..e2ac03ef --- /dev/null +++ b/debian/control @@ -0,0 +1,12 @@ +Source: gparted +Section: unknown +Priority: optional +Maintainer: Vincent van Adrighem +Standards-Version: 3.5.8 +Build-Depends: debmake + +Package: gparted +Architecture: any +Depends: ${shlibs:Depends} +Description: Missing + Missing diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 00000000..729c24c8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,8 @@ +This package was debianized by Vincent van Adrighem adrighem@gnome.org on +Mon, 25 Oct 2004 15:08:08 +0200. + +It was downloaded from + +Copyright: + + diff --git a/debian/crontab.ex b/debian/crontab.ex new file mode 100644 index 00000000..8ac316fe --- /dev/null +++ b/debian/crontab.ex @@ -0,0 +1 @@ +0 4 * * * root gparted_maintenance diff --git a/debian/dirs b/debian/dirs new file mode 100644 index 00000000..ca882bbb --- /dev/null +++ b/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin diff --git a/debian/diversions.ex b/debian/diversions.ex new file mode 100644 index 00000000..aebbbe5d --- /dev/null +++ b/debian/diversions.ex @@ -0,0 +1 @@ + diff --git a/debian/inetd.conf.ex b/debian/inetd.conf.ex new file mode 100644 index 00000000..9cb3fd9d --- /dev/null +++ b/debian/inetd.conf.ex @@ -0,0 +1,2 @@ +#:OTHER: +gparted stream tcp nowait root /usr/sbin/tcpd /usr/sbin/gparted diff --git a/debian/info.ex b/debian/info.ex new file mode 100644 index 00000000..702a18bf --- /dev/null +++ b/debian/info.ex @@ -0,0 +1,15 @@ +# This is a configuration files for installing a .info menu +# The Description to be placed into the directory +DESCR="Description" + +# The section this info file should be placed in (Regexp) followed by +# the new section name to be created if the Regexp does not match +# (Optional. If not given the .info will be appended to the directory) +#SECTION_MATCH="Regexp" +#SECTION_NAME="New Section Name" + +# The file referred to from the Info directory +FILE=gparted.info + +# Optional. The files to be copied to /usr/share/info +#FILES=*.info diff --git a/debian/init.d.ex b/debian/init.d.ex new file mode 100644 index 00000000..c465bd6e --- /dev/null +++ b/debian/init.d.ex @@ -0,0 +1,51 @@ +#!/bin/sh +# +# This file was automatically customized by debmake on Mon, 25 Oct 2004 15:08:08 +0200 +# +# Written by Miquel van Smoorenburg . +# Modified for Debian GNU/Linux by Ian Murdock . +# Modified for Debian by Christoph Lameter + +PATH=/bin:/usr/bin:/sbin:/usr/sbin +DAEMON=/usr/sbin/gparted +# The following value is extracted by debstd to figure out how to generate +# the postinst script. Edit the field to change the way the script is +# registered through update-rc.d (see the manpage for update-rc.d!) +FLAGS="defaults 50" + +test -f $DAEMON || exit 0 + +case "$1" in + start) + start-stop-daemon --start --verbose --exec $DAEMON + ;; + stop) + start-stop-daemon --stop --verbose --exec $DAEMON + ;; + #reload) + # + # If the daemon can reload its config files on the fly + # for example by sending it SIGHUP, do it here. + # + # If the daemon responds to changes in its config file + # directly anyway, make this a do-nothing entry. + # + # start-stop-daemon --stop --signal 1 --verbose --exec $DAEMON + # ;; + restart|force-reload) + # + # If the "reload" option is implemented, move the "force-reload" + # option to the "reload" entry above. If not, "force-reload" is + # just the same as "restart". + # + start-stop-daemon --stop --verbose --exec $DAEMON + sleep 1 + start-stop-daemon --start --verbose --exec $DAEMON + ;; + *) + echo "Usage: /etc/init.d/gparted {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex new file mode 100644 index 00000000..1d09061c --- /dev/null +++ b/debian/manpage.1.ex @@ -0,0 +1,41 @@ +.TH NAME SECTION +.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection +.\" other parms are allowed: see man(7), man(1) +.SH NAME +gparted \- programs to do something +.SH SYNOPSIS +.B gparted +.I "[options] files ..." +.br +.B bar +.I "[options] files ..." +.SH "DESCRIPTION" +This manual page documents briefly the +.BR gparted , +and +.B bar +commands. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. +Instead, it has documentation in the GNU Info format; see below. +.PP +.B gparted +is a program that... +.SH OPTIONS +The programs follow the usual GNU command line syntax, with long +options starting with two dashes (`-'). +A summary of options are included below. +For a complete description, see the Info files. +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.SH "SEE ALSO" +The programs are documented fully by +.IR "The Rise and Fall of a Fooish Bar" , +available via the Info system. +.SH AUTHOR +This manual page was written by Vincent van Adrighem , +for the Debian GNU/Linux system (but may be used by others). diff --git a/debian/menu.ex b/debian/menu.ex new file mode 100644 index 00000000..ad0ad673 --- /dev/null +++ b/debian/menu.ex @@ -0,0 +1,2 @@ +?package(gparted):needs=X11|text|vc|wm section=Apps/see-menu-manual\ + title="gparted" command="/usr/bin/gparted" diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..69f7226b --- /dev/null +++ b/debian/rules @@ -0,0 +1,50 @@ +#!/usr/bin/make -f +# Made with the aid of debmake, by Christoph Lameter, +# based on the sample debian/rules file for GNU hello by Ian Jackson. + +package=gparted + +build: + $(checkdir) + ./configure --prefix=/usr + $(MAKE) CFLAGS="-O2 -g -Wall" + touch build + +clean: + $(checkdir) + rm -f build + -$(MAKE) distclean + rm -f `find . -name "*~"` + rm -rf debian/tmp debian/files* core debian/substvars + +binary-indep: checkroot build + $(checkdir) +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: checkroot build + $(checkdir) + rm -rf debian/tmp + install -d debian/tmp + cd debian/tmp && install -d `cat ../dirs` + $(MAKE) install prefix=`pwd`/debian/tmp/usr +# Must have debmake installed for this to work. Otherwise please copy +# /usr/bin/debstd into the debian directory and change debstd to debian/debstd + debstd ChangeLog NEWS README + dpkg-gencontrol -isp + chown -R root:root debian/tmp + chmod -R go=rX debian/tmp + dpkg --build debian/tmp .. + +define checkdir + test -f debian/rules +endef + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot diff --git a/debian/watch.ex b/debian/watch.ex new file mode 100644 index 00000000..637dfc6d --- /dev/null +++ b/debian/watch.ex @@ -0,0 +1,5 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# Site Directory Pattern Version Script +metalab.unc.edu /pub/Linux/Incomingu gparted-(.*)\.tar\.gz debian uupdate