From: Oliver Graute <oliver.graute@gmail.com>
To: ptxdist <ptxdist@pengutronix.de>
Subject: [ptxdist] [PATCHv2] sscep: add sscep to ptxdist
Date: Fri, 22 Jun 2018 14:17:44 +0200 [thread overview]
Message-ID: <20180622121744.GA19474@graute-opti> (raw)
Signed-off-by: Oliver Graute <oliver.graute@neuhaus.de>
---
.../0001-sscep-changed-openssl-path.patch | 22 ++++++++
patches/sscep-0.6.1/series | 4 ++
rules/sscep.in | 10 ++++
rules/sscep.make | 63 ++++++++++++++++++++++
4 files changed, 99 insertions(+)
create mode 100644 patches/sscep-0.6.1/0001-sscep-changed-openssl-path.patch
create mode 100644 patches/sscep-0.6.1/series
create mode 100644 rules/sscep.in
create mode 100644 rules/sscep.make
diff --git a/patches/sscep-0.6.1/0001-sscep-changed-openssl-path.patch b/patches/sscep-0.6.1/0001-sscep-changed-openssl-path.patch
new file mode 100644
index 0000000..b21bcf1
--- /dev/null
+++ b/patches/sscep-0.6.1/0001-sscep-changed-openssl-path.patch
@@ -0,0 +1,22 @@
+From: Oliver Graute <oliver.graute@neuhaus.de>
+Date: Thu, 25 Jun 2015 09:30:08 +0200
+Subject: [PATCH] sscep: Changed openssl path
+
+ modified: Linux/Makefile
+---
+ Linux/Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Linux/Makefile b/Linux/Makefile
+index 63b1341..ded478a 100644
+--- a/Linux/Makefile
++++ b/Linux/Makefile
+@@ -7,7 +7,7 @@ MANDIR = /usr/local/man/man8
+
+ CC = gcc
+ #WITH_DEBUG = -g
+-OPENSSL = ../openssl
++OPENSSL = ../openssl-1.0.1m
+ CFLAGS = -Wall -O $(WITH_DEBUG) -I $(OPENSSL)/include
+
+ LDFLAGS = -L$(OPENSSL)
diff --git a/patches/sscep-0.6.1/series b/patches/sscep-0.6.1/series
new file mode 100644
index 0000000..986db87
--- /dev/null
+++ b/patches/sscep-0.6.1/series
@@ -0,0 +1,4 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+0001-sscep-changed-openssl-path.patch
+# 541a0bfbd2374c387a63b1ef61cd9880 - git-ptx-patches magic
diff --git a/rules/sscep.in b/rules/sscep.in
new file mode 100644
index 0000000..c9790bd
--- /dev/null
+++ b/rules/sscep.in
@@ -0,0 +1,10 @@
+## SECTION=networking
+
+config SSCEP
+ tristate
+ prompt "sscep"
+ help
+ SSCEP is a client-only implementation of the SCEP (Cisco System's Simple
+ Certificate Enrollment Protocol). SSCEP is designed for OpenBSD's isakmpd,
+ but it will propably work with any Unix system with a recent compiler and
+ OpenSSL toolkit libraries installed.
diff --git a/rules/sscep.make b/rules/sscep.make
new file mode 100644
index 0000000..9e2e7a3
--- /dev/null
+++ b/rules/sscep.make
@@ -0,0 +1,63 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2015 Dr. Neuhaus Telekommunikation GmbH, Hamburg Germany, Oliver Graute <oliver.graute@neuhaus.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SSCEP) += sscep
+
+#
+# Paths and names
+#
+SSCEP_VERSION := 0.6.1
+SSCEP_MD5 := b1cf90e2cb0b01cfacf721796daf2159
+SSCEP := sscep-$(SSCEP_VERSION)
+SSCEP_SUFFIX := tar.gz
+SSCEP_URL := https://github.com/certnanny/sscep/archive/v$(SSCEP_VERSION).$(SSCEP_SUFFIX)
+SSCEP_SOURCE := $(SRCDIR)/$(SSCEP).$(SSCEP_SUFFIX)
+SSCEP_DIR := $(BUILDDIR)/$(SSCEP)
+SSCEP_LICENSE := OpenSSL License, SSLeay, OpenOSP
+
+#
+# autoconf
+#
+#SSCEP_CONF_TOOL := autoconf
+SSCEP_CONF_OPT := $(CROSS_AUTOCONF_USR)
+
+$(STATEDIR)/sscep.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(SSCEP_DIR)/config.cache)
+ cd $(SSCEP_DIR) && \
+ $(SSCEP_PATH) $(SSCEP_ENV) \
+ ./Configure $(SSCEP_CONF_OPT)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sscep.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, sscep)
+ @$(call install_fixup, sscep,PRIORITY,optional)
+ @$(call install_fixup, sscep,SECTION,base)
+ @$(call install_fixup, sscep,AUTHOR,"<oliver.graute@neuhaus.de>")
+ @$(call install_fixup, sscep,DESCRIPTION,missing)
+
+ @$(call install_copy, sscep, 0, 0, 0755, $(SSCEP_DIR)/sscep_dyn, /usr/bin/sscep_dyn)
+ @$(call install_copy, sscep, 0, 0, 0755, $(SSCEP_DIR)/sscep_static, /usr/bin/sscep)
+ @$(call install_copy, sscep, 0, 0, 0644, $(SSCEP_DIR)/sscep.conf, /etc/sscep.conf)
+
+ @$(call install_finish, sscep)
+
+ @$(call touch)
+
+# vim: syntax=make
--
1.9.1
--
i. A. Oliver GRAUTE
Software Entwicklung Dipl.-Inform. (Uni)
Sagemcom Dr. Neuhaus GmbH
Papenreye 65, 22453 Hamburg GERMANY
Phone: +49 (0) 40 55304-3045
Fax: +49 (0) 40 55304-180
oliver.graute@sagemcom.com
www.neuhaus.de / www.sagemcom.com
Geschäftsführer: André Karnatz, Patrick Sevian
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg / HRB 133678
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2018-06-22 12:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-22 12:17 Oliver Graute [this message]
2018-06-22 13:54 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180622121744.GA19474@graute-opti \
--to=oliver.graute@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox