From: John Marrett Date: Fri, 17 Mar 2023 18:59:58 +0000 (-0400) Subject: sscep: add package X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=49e9c5e20d04388d18eb784a680b8b5daa7da38e;p=feed%2Fpackages.git sscep: add package Signed-off-by: John Marrett --- diff --git a/net/sscep/Makefile b/net/sscep/Makefile new file mode 100755 index 0000000000..bc94b6ac0a --- /dev/null +++ b/net/sscep/Makefile @@ -0,0 +1,46 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=sscep +PKG_VERSION:=0.10.0 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://codeload.github.com/certnanny/sscep/tar.gz/v$(PKG_VERSION)? +PKG_HASH:=489cc8e093986776eb3f15082bf766778f707176f3cd604bf0ef1008da06b8e5 + +PKG_MAINTAINER:=John Marrett +PKG_LICENSE:=BSD-3-Clause OpenSSL +PKG_LICENSE_FILES:=COPYING + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/cmake.mk + +define Package/sscep + SECTION:=net + CATEGORY:=Network + DEPENDS:=+libopenssl +openssl-util + TITLE:=A Simple SCEP (Simple Certificate Enrollment Protocol) client + URL:=https://github.com/certnanny/sscep/ +endef + +define Package/sscep/description + sscep is a simple SCEP client published by the CertNanny project. + + It is used to retrieve CA certificates and enroll devices with a + compatible SCEP server. +endef + +define Package/sscep/conffiles +/etc/sscep.conf +endef + +define Package/sscep/install + $(INSTALL_DIR) $(1)/etc + $(INSTALL_CONF) $(PKG_BUILD_DIR)/sscep.conf $(1)/etc/ + + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/sscep $(1)/usr/bin/sscep + $(INSTALL_BIN) $(PKG_BUILD_DIR)/mkrequest $(1)/usr/bin/mkrequest +endef + +$(eval $(call BuildPackage,sscep)) diff --git a/net/sscep/test.sh b/net/sscep/test.sh new file mode 100644 index 0000000000..da49bf5501 --- /dev/null +++ b/net/sscep/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sscep | grep -q "$PKG_VERSION"