From 4a024a2f0c71958c8a83daf360f5bf5db10f6291 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Thu, 18 Aug 2016 13:08:58 +0000
Subject: [PATCH] add Debian packaging metadata

---
 Makefile.in          |  3 +++
 debian/README        |  6 ++++++
 debian/changelog     |  5 +++++
 debian/compat        |  1 +
 debian/control       | 12 ++++++++++++
 debian/copyright     | 34 ++++++++++++++++++++++++++++++++++
 debian/docs          |  1 +
 debian/rules         | 20 ++++++++++++++++++++
 debian/source/format |  1 +
 9 files changed, 83 insertions(+)
 create mode 100644 debian/README
 create mode 100644 debian/changelog
 create mode 100644 debian/compat
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/docs
 create mode 100755 debian/rules
 create mode 100644 debian/source/format

diff --git a/Makefile.in b/Makefile.in
index ee339ca..9d38500 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -24,3 +24,6 @@ install:
 	(for f in $(LIB_FILES:lib/%=%) ; do \
 		$(INSTALL) -m 755 lib/$$f $(DESTDIR)$(NOBLOGS_LIB_DIR)/$$f ; \
 	 done)
+
+clean:
+
diff --git a/debian/README b/debian/README
new file mode 100644
index 0000000..80968ae
--- /dev/null
+++ b/debian/README
@@ -0,0 +1,6 @@
+The Debian Package noblogs-cli
+----------------------------
+
+Comments regarding the Package
+
+ -- ale <debian@autistici.org>  Thu, 18 Aug 2016 13:01:47 +0000
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..abbb663
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+noblogs-cli (0.1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Autistici/Inventati <debian@autistici.org>  Thu, 18 Aug 2016 13:01:47 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..17d5725
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,12 @@
+Source: noblogs-cli
+Section: admin
+Priority: optional
+Maintainer: Autistici/Inventati <debian@autistici.org>
+Build-Depends: debhelper (>= 9), autotools-dev
+Standards-Version: 3.9.5
+
+Package: noblogs-cli
+Architecture: all
+Depends: php5-cli, ${shlibs:Depends}, ${misc:Depends}
+Description: Command-line tool to manage noblogs.
+ CLI tool to perform various maintenance tasks on a noblogs installation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2b5974e
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: noblogs-cli
+Source: <url://example.com>
+
+Files: *
+Copyright: <years> <put author's name and email here>
+           <years> <likewise for another author>
+License: GPL-3.0+
+
+Files: debian/*
+Copyright: 2016 ale <debian@autistici.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".
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
+# Please avoid to pick license terms that are more restrictive than the
+# packaged work, as it may make Debian's contributions unacceptable upstream.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..bf2ec49
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+%:
+	dh $@  --with autotools-dev
+
+override_dh_auto_configure:
+	dh_auto_configure -- \
+	--with-php=/opt/noblogs/bin/php-noblogs \
+	--with-wp-root=/opt/noblogs
+
+
+
+
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)
-- 
GitLab