From: Michal Sojka Date: Tue, 5 Feb 2013 17:29:11 +0000 (+0100) Subject: Debian packging works X-Git-Tag: debian/20130214~1 X-Git-Url: https://rtime.felk.cvut.cz/gitweb/sojka/duhome.git/commitdiff_plain/3481b410e7315878148e958964e1410e0f2d427c?hp=9976ce421410bc87563b58f20c324d48614e4656 Debian packging works --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9e18a9d --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +all: + +install: + install -d $(DESTDIR)/usr/bin $(DESTDIR)/etc/cron.daily + install duhome $(DESTDIR)/usr/bin + install cron.daily $(DESTDIR)/etc/cron.daily/duhome diff --git a/cron.daily b/cron.daily new file mode 100644 index 0000000..63a7527 --- /dev/null +++ b/cron.daily @@ -0,0 +1,4 @@ +#!/bin/sh +set -x +duhome save +duhome commit --quiet diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..b930944 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package duhome +---------------------------- + +Comments regarding the Package + + -- Michal Sojka Tue, 05 Feb 2013 18:05:19 +0100 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..eb533f1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +duhome (20130205) unstable; urgency=low + + * Initial Release. + + -- Michal Sojka Tue, 05 Feb 2013 18:05:19 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..af9999c --- /dev/null +++ b/debian/control @@ -0,0 +1,18 @@ +Source: duhome +Section: admin +Priority: extra +Maintainer: Michal Sojka +Build-Depends: debhelper (>= 8.0.0) +Standards-Version: 3.9.3 +#Homepage: +#Vcs-Git: git://git.debian.org/collab-maint/duhome.git +#Vcs-Browser: http://git.debian.org/?p=collab-maint/duhome.git;a=summary + +Package: duhome +Architecture: all +Depends: git, ${misc:Depends} +Description: Tool to keep tack of home directory sizes + A daily cron job is set up to store the sizes of home directories in + a git repository. Administrator can easily display the last saved + usage and find the largest home directories. Additionally history of + home directory sizes is available. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..3afe51a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: duhome +Source: https://rtime.felk.cvut.cz/~sojka/ + +Files: * +Copyright: 2013 Michal Sojka +License: GPL-3.0+ + +Files: debian/* +Copyright: 2013 Michal Sojka +License: GPL-3.0+ + +License: GPL-3.0+ + 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 3 of the License, or + (at your option) any later version. + . + This package 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, see . + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..e69de29 diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..8d6404d --- /dev/null +++ b/debian/postinst @@ -0,0 +1,22 @@ +#!/bin/sh +# postinst script for duhome + +set -e + +case "$1" in + configure) + duhome init + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/postrm b/debian/postrm new file mode 100755 index 0000000..41feaaa --- /dev/null +++ b/debian/postrm @@ -0,0 +1,21 @@ +#!/bin/sh +# postrm script for duhome + +set -e + +case "$1" in + purge) + rm -irf /var/lib/duhome + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b760bee --- /dev/null +++ b/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@ diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native)