aboutsummaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-04-10 22:56:47 +0000
committerRob Austein <sra@hactrn.net>2014-04-10 22:56:47 +0000
commit45b95aaadc861b0e682373164fe18fa0c5ed2b2e (patch)
tree6e415c4dd6b78e84a58ae0038ab9847fb69feafc /buildtools
parent5e0d1807ca7b049bde262a529443924adfd903e6 (diff)
parentb7459d825cfadb9db265ed1b3bd0c10682464767 (diff)
Merge tk685 branch back to trunk. This completes the move of the rpki
libraries and rpki.POW module from the rpki-ca package to the rpki-rp package. Closes #685, closes #633. svn path=/trunk/; revision=5784
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/debian-skeleton/control1
-rw-r--r--buildtools/debian-skeleton/rpki-ca.install4
-rw-r--r--buildtools/debian-skeleton/rpki-rp.install1
-rw-r--r--buildtools/defstack.py5
-rw-r--r--buildtools/freebsd-skeleton/rpki-ca/Makefile14
-rw-r--r--buildtools/make-version.py4
6 files changed, 24 insertions, 5 deletions
diff --git a/buildtools/debian-skeleton/control b/buildtools/debian-skeleton/control
index 0d9272b1..a91c21ca 100644
--- a/buildtools/debian-skeleton/control
+++ b/buildtools/debian-skeleton/control
@@ -15,6 +15,7 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, python (>= 2.7), rrdtool, rsync, xi
Description: rpki.net relying party tools
"Relying party" validation tools from the rpki.net toolkit.
See the online documentation at http://rpki.net/.
+Replaces: rpki-ca (<= 0.5767)
Package: rpki-ca
Architecture: any
diff --git a/buildtools/debian-skeleton/rpki-ca.install b/buildtools/debian-skeleton/rpki-ca.install
index fe3e4fed..ffae5103 100644
--- a/buildtools/debian-skeleton/rpki-ca.install
+++ b/buildtools/debian-skeleton/rpki-ca.install
@@ -1,4 +1,4 @@
etc/rpki/rpki-confgen.xml
-usr/lib
+usr/lib/rpki
usr/sbin
-usr/share
+usr/share/rpki
diff --git a/buildtools/debian-skeleton/rpki-rp.install b/buildtools/debian-skeleton/rpki-rp.install
index 710f6ef2..ce17bb14 100644
--- a/buildtools/debian-skeleton/rpki-rp.install
+++ b/buildtools/debian-skeleton/rpki-rp.install
@@ -2,4 +2,5 @@ etc/rcynic.conf
etc/rpki/trust-anchors
etc/xinetd.d/rpki-rtr
usr/bin
+usr/lib/python2.7
var/rcynic
diff --git a/buildtools/defstack.py b/buildtools/defstack.py
index 4d93ce66..757516f3 100644
--- a/buildtools/defstack.py
+++ b/buildtools/defstack.py
@@ -22,6 +22,7 @@
# PERFORMANCE OF THIS SOFTWARE.
import fileinput
+import os.path
import sys
import re
@@ -76,7 +77,9 @@ token = None
for line in fileinput.input():
if token is None:
- token = "".join(c if c.isalnum() else "_" for c in fileinput.filename().upper())
+ path = fileinput.filename().split(os.path.sep)
+ path = os.path.join(path[-2], path[-1]) if len(path) > 1 else path[-1]
+ token = "".join(c if c.isalnum() else "_" for c in path.upper())
sys.stdout.write(header.replace("%", token))
if "DECLARE_STACK_OF" in line:
diff --git a/buildtools/freebsd-skeleton/rpki-ca/Makefile b/buildtools/freebsd-skeleton/rpki-ca/Makefile
index 71f38436..cf095aa1 100644
--- a/buildtools/freebsd-skeleton/rpki-ca/Makefile
+++ b/buildtools/freebsd-skeleton/rpki-ca/Makefile
@@ -51,4 +51,18 @@ CONFIGURE_ARGS= --disable-target-installation --disable-runtime-dependencies --d
pre-install:
@test -d ${STAGEDIR}${PREFIX}/etc/rc.d || mkdir -p ${STAGEDIR}${PREFIX}/etc/rc.d
+# Kludge to cope with setup.py insisting on including egg info every
+# time it is called, which creates a problem for the way we use it.
+#
+# The real solution for this would be for the FreeBSD port system to
+# grow up and let us build multiple binary packages from a single
+# port, at which point this kludge will no longer be necessary (and
+# this port will merge with rpki-rp).
+#
+# Until that glorious day, just whack the egg info, which should be a
+# duplicate of the one that rpki-rp installs.
+
+post-install:
+ find ${STAGEDIR} -name '*.egg-info' -delete
+
.include <bsd.port.mk>
diff --git a/buildtools/make-version.py b/buildtools/make-version.py
index af513b5d..a73a89ab 100644
--- a/buildtools/make-version.py
+++ b/buildtools/make-version.py
@@ -63,7 +63,7 @@ if v == unknown:
sys.stderr.write("Warning: Could not determine software version\n")
if old is None or v != old:
+ with open("rpki/version.py", "w") as f:
+ f.write("VERSION = \"%s\"\n" % v)
with open("VERSION", "w") as f:
f.write(v + "\n")
- with open("rpkid/rpki/version.py", "w") as f:
- f.write("VERSION = \"%s\"\n" % v)