[Cryptech-Commits] [user/sra/novena-releng] 01/02: First cut at reprepro support.

git at cryptech.is git at cryptech.is
Sun Jul 5 01:54:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

sra at hactrn.net pushed a commit to branch master
in repository user/sra/novena-releng.

commit df607a3ec2525988b1256f7f241470815dbc416e
Author: Rob Austein <sra at hactrn.net>
Date:   Sat Jul 4 19:04:50 2015 -0400

    First cut at reprepro support.
---
 Makefile                    | 16 ++++++++++++++--
 reprepro-conf/distributions | 15 +++++++++++++++
 reprepro-conf/options       |  3 +++
 3 files changed, 32 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index b83d6cf..bd05920 100644
--- a/Makefile
+++ b/Makefile
@@ -64,6 +64,11 @@ DCH =	test -f debian/changelog || \
 	dch --create --package cryptech-novena-$(1) --newversion '${CRYPTECH_PACKAGE_VERSION}' \
 	'Version ${CRYPTECH_VERSION} of Cryptech $(2) for the Novena PVT-1 development board.'
 
+# Where to find the reprepro repository.  The "reprepro" target will
+# initialize this if it doesn't exist.
+
+REPOSITORY := $(abspath ${HOME}/repository)
+
 
 all: init sw rtl
 
@@ -78,7 +83,14 @@ sw:
 rtl:
 	cd rtl; $(call DCH,rtl,RTL bitstream)
 	cd rtl; debuild -S -uc -us
-	cd rtl; debuild -b -uc -us
+	cd rtl; debuild -b -uc -us -aarmhf
+
+
+reprepro: ${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options
+	for i in *.changes; do reprepro -b ${REPOSITORY} include $$i; done
+
+${REPOSITORY}/conf/distributions ${REPOSITORY}/conf/options:
+	install -D reprepro-conf/$(notdir $@) ${REPOSITORY}/conf/$(notdir $@)
 
 
-.PHONY: all init sw rtl
+.PHONY: all init sw rtl reprepro
diff --git a/reprepro-conf/distributions b/reprepro-conf/distributions
new file mode 100644
index 0000000..77f5523
--- /dev/null
+++ b/reprepro-conf/distributions
@@ -0,0 +1,15 @@
+Origin: cryptech.is
+Label: cryptech.is APT repository
+Codename: wheezy
+Architectures: armhf source
+Components: main
+Description: cryptech.is APT Repository
+SignWith: yes
+
+Origin: cryptech.is
+Label: cryptech.is APT repository
+Codename: jessie
+Architectures: armhf source
+Components: main
+Description: cryptech.is APT Repository
+SignWith: yes
diff --git a/reprepro-conf/options b/reprepro-conf/options
new file mode 100644
index 0000000..7b49bf9
--- /dev/null
+++ b/reprepro-conf/options
@@ -0,0 +1,3 @@
+verbose
+ask-passphrase
+basedir .



More information about the Commits mailing list