diff options
author | John Marrett <johnf@zioncluster.ca> | 2023-03-17 14:59:58 -0400 |
---|---|---|
committer | Tianling Shen <cnsztl@gmail.com> | 2023-04-12 02:34:57 +0800 |
commit | 49e9c5e20d04388d18eb784a680b8b5daa7da38e (patch) | |
tree | 1a440acb9b7d80f3c82de7d1bd1db887dbea3db1 /net/sscep | |
parent | 408502ee0ad3049c2e9f8420166a342c819bc7c7 (diff) |
sscep: add package
Signed-off-by: John Marrett <johnf@zioncluster.ca>
Diffstat (limited to 'net/sscep')
-rwxr-xr-x | net/sscep/Makefile | 46 | ||||
-rw-r--r-- | net/sscep/test.sh | 3 |
2 files changed, 49 insertions, 0 deletions
diff --git a/net/sscep/Makefile b/net/sscep/Makefile new file mode 100755 index 000000000..bc94b6ac0 --- /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 <johnf@zioncluster.ca> +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 000000000..da49bf550 --- /dev/null +++ b/net/sscep/test.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sscep | grep -q "$PKG_VERSION" |