From d461a9971185e4ddf9b0ef0e13c2992c9c96a362 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 26 Jun 2012 18:12:31 -0300 Subject: Adding debian/patches/ --- .gitignore | 1 + debian/patches/debian-changes-0.1-1 | 101 ++++++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 103 insertions(+) create mode 100644 debian/patches/debian-changes-0.1-1 create mode 100644 debian/patches/series diff --git a/.gitignore b/.gitignore index 1377554..19e7574 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.swp +.pc diff --git a/debian/patches/debian-changes-0.1-1 b/debian/patches/debian-changes-0.1-1 new file mode 100644 index 0000000..a6ad49a --- /dev/null +++ b/debian/patches/debian-changes-0.1-1 @@ -0,0 +1,101 @@ +Description: Upstream changes introduced in version 0.1-1 + This patch has been created by dpkg-source during the package build. + Here's the last changelog entry, hopefully it gives details on why + those changes were made: + . + keyringer (0.1-1) unstable; urgency=low + . + * Initial release (Closes: #nnnn) + . + The person named in the Author field signed this changelog entry. +Author: Silvio Rhatto + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Bug-Ubuntu: https://launchpad.net/bugs/ +Forwarded: +Reviewed-By: +Last-Update: + +--- keyringer-0.1.orig/Makefile ++++ keyringer-0.1/Makefile +@@ -23,7 +23,6 @@ clean: + find . -name *~ | xargs rm -f # clean local backups + + install_lib: +- $(INSTALL) -D --mode=0644 lib/keyringer/csr.sh $(DESTDIR)/$(PREFIX)/lib/$(PACKAGE)/csr.sh + $(INSTALL) -D --mode=0644 lib/keyringer/functions $(DESTDIR)/$(PREFIX)/lib/$(PACKAGE)/functions + + install_share: +--- keyringer-0.1.orig/share/keyringer/genpair ++++ keyringer-0.1/share/keyringer/genpair +@@ -101,10 +101,6 @@ function genpair_ssl { + cd "$TMPWORK" + + # Generate certificate +- if [ "$KEYTYPE" == "ssl-cacert" ]; then +- # We use a custom script for CaCert +- "$LIB/csr.sh" "$NODE" +- else + cat <> openssl.conf + [ req ] + default_keyfile = ${NODE}_privatekey.pem +@@ -127,22 +123,21 @@ commonName = Common + extendedKeyUsage=serverAuth,clientAuth + EOF + +- # Add SubjectAltNames so wildcard certs can work correctly. +- if [ "$WILDCARD" == "yes" ]; then ++ # Add SubjectAltNames so wildcard certs can work correctly. ++ if [ "$WILDCARD" == "yes" ]; then + cat <> openssl.conf + subjectAltName=DNS:${NODE}, DNS:${CNAME} + EOF +- fi ++ fi + +- echo "Please review your OpenSSL configuration:" +- cat openssl.conf +- read -p "Hit ENTER to continue." prompt ++ echo "Please review your OpenSSL configuration:" ++ cat openssl.conf ++ read -p "Hit ENTER to continue." prompt + +- openssl req -batch -nodes -config openssl.conf -newkey rsa:2048 -sha256 \ +- -keyout ${NODE}_privatekey.pem -out ${NODE}_csr.pem ++ openssl req -batch -nodes -config openssl.conf -newkey rsa:2048 -sha256 \ ++ -keyout ${NODE}_privatekey.pem -out ${NODE}_csr.pem + +- openssl req -noout -text -in ${NODE}_csr.pem +- fi ++ openssl req -noout -text -in ${NODE}_csr.pem + + # Self-sign + if [ "$KEYTYPE" == "ssl-self" ]; then +@@ -199,9 +194,9 @@ CWD="`pwd`" + + # Verify + if [ -z "$NODE" ]; then +- echo -e "Usage: keyringer $BASENAME [outfile]" ++ echo -e "Usage: keyringer $BASENAME [outfile]" + echo -e "Options:" +- echo -e "\t gpg|ssh|ssl[-cacert,-self]: key type." ++ echo -e "\t gpg|ssh|ssl[-self]: key type." + echo -e "\t file : base file name for encrypted output (relative to keys folder)" + echo -e "\t hostname : host for the key pair" + echo -e "\t outfile : optional unencrypted output file, useful for deployment" +@@ -216,7 +211,7 @@ keyringer_set_tmpfile genpair -d + + # Dispatch + echo "Generating $KEYTYPE key for $NODE..." +-if [ "$KEYTYPE" == "ssl-self" ] || [ "$KEYTYPE" == "ssl-cacert" ]; then ++if [ "$KEYTYPE" == "ssl-self" ]; then + genpair_ssl + else + genpair_"$KEYTYPE" diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..0540e18 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian-changes-0.1-1 -- cgit v1.2.3