diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-27 12:50:20 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-27 12:50:20 +0100 |
| commit | 475ca77785db30a8b208f7057cf448a421d3fc13 (patch) | |
| tree | 2ce7896547198bdfdb8267d86f1adb100a87e2bd | |
| parent | 8be53a7b5a51798e40ac75bbc1542f165d7d1ea2 (diff) | |
initial debian package version
| -rw-r--r-- | COPYING | 7 | ||||
| -rw-r--r-- | Makefile | 52 | ||||
| -rw-r--r-- | debian/README | 7 | ||||
| -rw-r--r-- | debian/changelog | 5 | ||||
| -rw-r--r-- | debian/compat | 1 | ||||
| -rw-r--r-- | debian/control | 15 | ||||
| -rw-r--r-- | debian/copyright | 28 | ||||
| -rw-r--r-- | debian/files | 1 | ||||
| -rw-r--r-- | debian/photoalbum.debhelper.log | 45 | ||||
| -rw-r--r-- | debian/photoalbum.manpages | 1 | ||||
| -rw-r--r-- | debian/photoalbum.substvars | 1 | ||||
| -rwxr-xr-x | debian/rules | 13 | ||||
| -rw-r--r-- | docs/README (renamed from README) | 0 | ||||
| -rw-r--r-- | docs/photoalbum.pod | 22 | ||||
| -rw-r--r-- | share/templates/footer.tmpl (renamed from templates/footer.tmpl) | 0 | ||||
| -rw-r--r-- | share/templates/header-first-add.tmpl (renamed from templates/header-first-add.tmpl) | 0 | ||||
| -rw-r--r-- | share/templates/header.tmpl (renamed from templates/header.tmpl) | 0 | ||||
| -rw-r--r-- | share/templates/index.tmpl (renamed from templates/index.tmpl) | 0 | ||||
| -rw-r--r-- | share/templates/next.tmpl (renamed from templates/next.tmpl) | 0 | ||||
| -rw-r--r-- | share/templates/prev.tmpl (renamed from templates/prev.tmpl) | 0 | ||||
| -rw-r--r-- | share/templates/preview.tmpl (renamed from templates/preview.tmpl) | 0 | ||||
| -rw-r--r-- | share/templates/redirect.tmpl (renamed from templates/redirect.tmpl) | 0 | ||||
| -rw-r--r-- | share/templates/view.tmpl (renamed from templates/view.tmpl) | 0 | ||||
| -rwxr-xr-x | src/photoalbum (renamed from photoalbum.sh) | 2 | ||||
| -rw-r--r-- | src/photoalbum.default.conf (renamed from photoalbum.conf) | 0 |
25 files changed, 184 insertions, 16 deletions
diff --git a/COPYING b/COPYING deleted file mode 100644 index 5335487..0000000 --- a/COPYING +++ /dev/null @@ -1,7 +0,0 @@ -photoalbum (c) 2011, 2012, 2013 Paul Buetow - - E-Mail: photoalbum@dev.buetow.org - WWW: http://photoalbum.buetow.org - -Photoalbum is licensed under the GNU Gerneral Public License Version 3 or later. - @@ -1,10 +1,44 @@ -all: generate dist -generate: - ./photoalbum.sh +NAME=photoalbum +all: version documentation build +build: + test ! -d ./bin && mkdir ./bin || exit 0 + sed "s/PHOTOALBUMVERSION/$$(cat .version)/" src/$(NAME) > ./bin/$(NAME) + chmod 0755 ./bin/$(NAME) +install: + test ! -d $(DESTDIR)/usr/bin && mkdir -p $(DESTDIR)/usr/bin || exit 0 + cp ./bin/* $(DESTDIR)/usr/bin + test ! -d $(DESTDIR)/usr/share/photoalbum/templates && mkdir -p $(DESTDIR)/usr/share/photoalbum/templates || exit 0 + cp ./share/templates/* $(DESTDIR)/usr/share/photoalbum/templates + test ! -d $(DESTDIR)/etc/default && mkdir -p $(DESTDIR)/usr/etc/default || exit 0 + cp ./src/photoalbum.default.conf $(DESTDIR)/etc/default/photoalbum +deinstall: + test ! -z "$(DESTDIR)" && test -f $(DESTDIR)/usr/bin/$(NAME) && rm $(DESTDIR)/usr/bin/$(NAME) || exit 0 + test ! -z "$(DESTDIR)" && test -d $(DESTDIR)/usr/share/$(NAME) && rm -r $(DESTDIR)/usr/share/$(NAME) || exit 0 + test ! -z "$(DESTDIR)" && test -f $(DESTDIR)/etc/default/photoalbum && rm $(DESTDIR)/etc/default/photoalbum || exit 0 clean: - rm -Rf dist photos -dist: - rm -Rf dist 2>/dev/null - mkdir dist - mv thumbs html photos dist - mv index.html ./dist + test -d ./bin && rm -Rf ./bin || exit 0 + test -d ./debian/photoalbum && rm -Rf ./debian/photoalbum || exit 0 +version: + cut -d' ' -f2 debian/changelog | head -n 1 | sed 's/(//;s/)//' > .version +# Builds the documentation into a manpage +documentation: + pod2man --release="$(NAME) $$(cat .version)" \ + --center="User Commands" ./docs/$(NAME).pod > ./docs/$(NAME).1 + pod2text ./docs/$(NAME).pod > ./docs/$(NAME).txt +deb: all + dpkg-buildpackage +dch: + dch -i +dput: + dput -u wheezy-buetowdotorg ../$(NAME)_$$(cat ./.version)_amd64.changes +release: dch deb dput + bash -c "git tag $$(cat .version)" + git push --tags + git commit -a -m 'New release' + git push origin master +clean-top: + rm ../$(NAME)_*.tar.gz + rm ../$(NAME)_*.dsc + rm ../$(NAME)_*.changes + rm ../$(NAME)_*.deb + diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..b0eda5d --- /dev/null +++ b/debian/README @@ -0,0 +1,7 @@ +The Debian Package photoalbum +---------------------------- + +This is just a hobby project. Not sure if everything meets the debian +policy though. + + -- Paul Buetow <paul@buetow.org> Fri, 27 Dec 2013 15:23:53 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..17e3d77 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +photoalbum (0.0.0) stable; urgency=low + + * Initial Debian package of photoalbum. + + -- Paul Buetow <paul@buetow.org> Fri, 26 Jul 2013 23:08:54 +0200 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..00e5296 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: photoalbum +Section: utils +Priority: optional +Maintainer: Paul Buetow <paul@buetow.org> +Build-Depends: perl, make +Standards-Version: 3.9.2 +Homepage: http://photoalbum.buetow.org +Vcs-Git: git://git.buetow.org/photoalbum +Vcs-Browser: http://web.buetow.org/git/?p=photoalbum.git;a=summary + +Package: photoalbum +Architecture: all +Depends: ${shlibs:Depends} +Description: A tiny Bash script to build a static photo album. + Simple. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..9f32793 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,28 @@ +Format: http://dep.debian.net/deps/dep5 +Upstream-Name: photoalbum +Source: http://photoalbum.buetow.org + +Files: * +Copyright: 2012 Paul Buetow <paul@buetow.org> +License: GPL-3.0+ + +Files: debian/* +Copyright: 2012 Paul Buetow <paul@buetow.org> +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/files b/debian/files new file mode 100644 index 0000000..6e55682 --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +photoalbum_1.0.0_all.deb net optional diff --git a/debian/photoalbum.debhelper.log b/debian/photoalbum.debhelper.log new file mode 100644 index 0000000..545a50f --- /dev/null +++ b/debian/photoalbum.debhelper.log @@ -0,0 +1,45 @@ +dh_auto_configure +dh_auto_build +dh_auto_test +dh_prep +dh_installdirs +dh_auto_install +dh_install +dh_installdocs +dh_installchangelogs +dh_installexamples +dh_installman +dh_installcatalogs +dh_installcron +dh_installdebconf +dh_installemacsen +dh_installifupdown +dh_installinfo +dh_pysupport +dh_installinit +dh_installmenu +dh_installmime +dh_installmodules +dh_installlogcheck +dh_installlogrotate +dh_installpam +dh_installppp +dh_installudev +dh_installwm +dh_installxfonts +dh_installgsettings +dh_bugfiles +dh_ucf +dh_lintian +dh_gconf +dh_icons +dh_perl +dh_usrlocal +dh_link +dh_compress +dh_fixperms +dh_installdeb +dh_gencontrol +dh_md5sums +dh_builddeb +dh_builddeb diff --git a/debian/photoalbum.manpages b/debian/photoalbum.manpages new file mode 100644 index 0000000..e232aca --- /dev/null +++ b/debian/photoalbum.manpages @@ -0,0 +1 @@ +docs/photoalbum.1 diff --git a/debian/photoalbum.substvars b/debian/photoalbum.substvars new file mode 100644 index 0000000..d30da04 --- /dev/null +++ b/debian/photoalbum.substvars @@ -0,0 +1 @@ +misc:Depends=imagemagick 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/docs/photoalbum.pod b/docs/photoalbum.pod new file mode 100644 index 0000000..63ccb43 --- /dev/null +++ b/docs/photoalbum.pod @@ -0,0 +1,22 @@ +=head1 NAME + +cpuinfo - A small and humble tool to print out CPU data + +=head1 SYNOPSIS + +cpuinfo + +=head2 How this works? + +This just invokes AWK to parse /proc/cpuinfo and prints out some stuff but +human readable. + +=head1 LICENSE + +See package description or project website. + +=head1 AUTHOR + +Paul Buetow - <http://cpuinfo.buetow.org> + +=cut diff --git a/templates/footer.tmpl b/share/templates/footer.tmpl index f917970..f917970 100644 --- a/templates/footer.tmpl +++ b/share/templates/footer.tmpl diff --git a/templates/header-first-add.tmpl b/share/templates/header-first-add.tmpl index c6eed3a..c6eed3a 100644 --- a/templates/header-first-add.tmpl +++ b/share/templates/header-first-add.tmpl diff --git a/templates/header.tmpl b/share/templates/header.tmpl index b21a200..b21a200 100644 --- a/templates/header.tmpl +++ b/share/templates/header.tmpl diff --git a/templates/index.tmpl b/share/templates/index.tmpl index 2ec99d7..2ec99d7 100644 --- a/templates/index.tmpl +++ b/share/templates/index.tmpl diff --git a/templates/next.tmpl b/share/templates/next.tmpl index a7f7c76..a7f7c76 100644 --- a/templates/next.tmpl +++ b/share/templates/next.tmpl diff --git a/templates/prev.tmpl b/share/templates/prev.tmpl index bdabae2..bdabae2 100644 --- a/templates/prev.tmpl +++ b/share/templates/prev.tmpl diff --git a/templates/preview.tmpl b/share/templates/preview.tmpl index a5e4bdc..a5e4bdc 100644 --- a/templates/preview.tmpl +++ b/share/templates/preview.tmpl diff --git a/templates/redirect.tmpl b/share/templates/redirect.tmpl index 8edfe1c..8edfe1c 100644 --- a/templates/redirect.tmpl +++ b/share/templates/redirect.tmpl diff --git a/templates/view.tmpl b/share/templates/view.tmpl index abf577a..abf577a 100644 --- a/templates/view.tmpl +++ b/share/templates/view.tmpl diff --git a/photoalbum.sh b/src/photoalbum index b4bd6b6..d020446 100755 --- a/photoalbum.sh +++ b/src/photoalbum @@ -2,6 +2,8 @@ source photoalbum.conf +declare -r VERSION='PHOTOALBUMVERSION' + function createdirs () { for dir in photos thumbs html; do [ -d ${dir} ] || mkdir -vp ${dir} diff --git a/photoalbum.conf b/src/photoalbum.default.conf index defd59e..defd59e 100644 --- a/photoalbum.conf +++ b/src/photoalbum.default.conf |
