From ff96b34e47c81c7cf1afd39a0f2b19fcd96a25e5 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 4 Sep 2012 03:06:54 +0200 Subject: Prepare for debianification. --- Makefile | 12 ++++++++---- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 11 +++++++++++ debian/copyright | 27 +++++++++++++++++++++++++++ debian/files | 1 + debian/password-store/.keep | 0 debian/rules | 6 ++++++ debian/source/format | 1 + 9 files changed, 60 insertions(+), 4 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/files create mode 100644 debian/password-store/.keep create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/Makefile b/Makefile index 7c78ed3..050b6f6 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,14 @@ +PREFIX ?= /usr +DESTDIR ?= + all: @echo "Password store is a shell script, so there is nothing to do. Try \"make install\" instead." install: - @install -v src/password-store.sh /usr/bin/pass - @install -v man/pass.1 /usr/share/man/man1/pass.1 - @install -v bash-completion/pass-bash-completion.sh /usr/share/bash-completion/pass + @mkdir -p $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/man/man1 $(DESTDIR)/etc/bash_completion.d + @install -v src/password-store.sh $(DESTDIR)$(PREFIX)/bin/pass + @install -v man/pass.1 $(DESTDIR)$(PREFIX)/share/man/man1/pass.1 + @install -v bash-completion/pass-bash-completion.sh $(DESTDIR)/etc/bash_completion.d/password-store uninstall: - @rm -vf /usr/bin/pass /usr/share/man/man1/pass.1 /usr/share/bash-completion/pass + @rm -vf $(DESTDIR)$(PREFIX)/bin/pass $(DESTDIR)$(PREFIX)/share/man/man1/pass.1 $(DESTDIR)/etc/bash_completion.d/password-store diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..27546a1 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +password-store (1.0-1) stable; urgency=low + + * Initial release. + + -- Jason A. Donenfeld Mon, 03 Sep 2012 20:38:44 -0400 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..0cb0a38 --- /dev/null +++ b/debian/control @@ -0,0 +1,11 @@ +Source: password-store +Maintainer: Jason A. Donenfeld +Section: admin +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: + +Package: password-store +Architecture: all +Depends: xclip, pwgen, git-core, gnupg, tree +Description: Stores, retrieves, generates, and synchronizes passwords securely using gpg, pwgen, and git. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..24a61ec --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Password Store +Source: http://git.zx2c4.com/password-store + +Files: * +Copyright: Copyright 2012 Jason A. Donenfeld +License: GPL-2+ + 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 package; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, + Boston, MA 02110-1301 USA + . + On Debian systems, the full text of the GNU General Public + License version 2 can be found in the file + `/usr/share/common-licenses/GPL-2'. diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..666f4c8 --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +password-store_1.0-1_all.deb admin optional diff --git a/debian/password-store/.keep b/debian/password-store/.keep new file mode 100644 index 0000000..e69de29 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..209f6de --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_install: + $(MAKE) DESTDIR=$$(pwd)/debian/password-store PREFIX=/usr install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- cgit v1.2.3