]> rtime.felk.cvut.cz Git - sojka/duhome.git/commitdiff
Debian packging works
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 5 Feb 2013 17:29:11 +0000 (18:29 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 5 Feb 2013 17:29:11 +0000 (18:29 +0100)
12 files changed:
Makefile [new file with mode: 0644]
cron.daily [new file with mode: 0644]
debian/README [new file with mode: 0644]
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/postinst [new file with mode: 0755]
debian/postrm [new file with mode: 0755]
debian/rules [new file with mode: 0755]
debian/source/format [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 (file)
index 0000000..63a7527
--- /dev/null
@@ -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 (file)
index 0000000..b930944
--- /dev/null
@@ -0,0 +1,6 @@
+The Debian Package duhome
+----------------------------
+
+Comments regarding the Package
+
+ -- Michal Sojka <sojkam1@fel.cvut.cz>  Tue, 05 Feb 2013 18:05:19 +0100
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..eb533f1
--- /dev/null
@@ -0,0 +1,5 @@
+duhome (20130205) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Michal Sojka <sojkam1@fel.cvut.cz>  Tue, 05 Feb 2013 18:05:19 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..45a4fb7
--- /dev/null
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..af9999c
--- /dev/null
@@ -0,0 +1,18 @@
+Source: duhome
+Section: admin
+Priority: extra
+Maintainer: Michal Sojka <sojkam1@fel.cvut.cz>
+Build-Depends: debhelper (>= 8.0.0)
+Standards-Version: 3.9.3
+#Homepage: <insert the upstream URL, if relevant>
+#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 (file)
index 0000000..3afe51a
--- /dev/null
@@ -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 <sojkam1@fel.cvut.cz>
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2013 Michal Sojka <sojkam1@fel.cvut.cz>
+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 <http://www.gnu.org/licenses/>.
+ .
+ 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 (file)
index 0000000..e69de29
diff --git a/debian/postinst b/debian/postinst
new file mode 100755 (executable)
index 0000000..8d6404d
--- /dev/null
@@ -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 (executable)
index 0000000..41feaaa
--- /dev/null
@@ -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 (executable)
index 0000000..b760bee
--- /dev/null
@@ -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 (file)
index 0000000..89ae9db
--- /dev/null
@@ -0,0 +1 @@
+3.0 (native)