[rs-commit] r212 - in /rs-distribution/trunk/openwrt/security/redwax-apache-mod-scep: ./ Makefile

rs-commit at redwax.eu rs-commit at redwax.eu
Wed Jan 1 18:38:46 CET 2020


Author: minfrin at redwax.eu
Date: Wed Jan  1 18:38:46 2020
New Revision: 212

Log:
Add openwrt packaging for mod_scep.

Added:
    rs-distribution/trunk/openwrt/security/redwax-apache-mod-scep/
    rs-distribution/trunk/openwrt/security/redwax-apache-mod-scep/Makefile

Added: rs-distribution/trunk/openwrt/security/redwax-apache-mod-scep/Makefile
==============================================================================
--- rs-distribution/trunk/openwrt/security/redwax-apache-mod-scep/Makefile	(added)
+++ rs-distribution/trunk/openwrt/security/redwax-apache-mod-scep/Makefile	Wed Jan  1 18:38:46 2020
@@ -0,0 +1,67 @@
+#
+# Copyright (C) 2019-2020 redwax.eu
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=redwax-apache-mod-scep
+PKG_VERSION:=0.2.2
+PKG_RELEASE:=1
+PKG_SOURCE_NAME:=mod_scep
+PKG_MAINTAINER:=Graham Leggett <minfrin at redwax.eu>
+PKG_LICENSE:=Apache License
+
+PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE_URL:=https://redwax.eu/dist/rs/
+PKG_HASH:=796bd7cc2a982f4b92073ea68050004d26e14229b464c2f51f0928374d02b8e8
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_NAME)-$(PKG_VERSION)
+
+PKG_INSTALL:=1
+
+PKG_CONFIG_DEPENDS := \
+	CONFIG_PACKAGE_redwax-apache-mod-ca
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/redwax-apache-mod-scep/Default
+  SECTION:=security
+  CATEGORY:=Security
+  SUBMENU:=Certificate Authorities
+  TITLE:=Redwax mod_pkcs12 Module
+  URL:=https://redwax.eu/
+endef
+
+define Package/redwax-apache-mod-scep
+$(call Package/redwax-apache-mod-scep/Default)
+  DEPENDS:=+apache +libopenssl +redwax-apache-mod-ca
+endef
+
+define Package/redwax-apache-mod-scep/description
+$(call Package/redwax-apache-mod-scep/Default/description)
+The Apache mod_scep module issues certificates in response to a Simple Certificate
+ Enrollment Protocol request.
+endef
+
+TARGET_CPPFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
+TARGET_LDFLAGS += -lpthread
+
+define Build/Configure
+	$(call Build/Configure/Default, \
+		--with-apxs="$(STAGING_DIR)/usr/bin/apxs" \
+		ap_cv_void_ptr_lt_long=no \
+		EXTRA_LIBS="-ldl -lpthread -lcrypto -lrt -lssl" \
+		DESTDIR="$(PKG_INSTALL_DIR)" \
+	)
+endef
+
+define Package/redwax-apache-mod-scep/install
+	$(INSTALL_DIR) $(1)/usr/lib/apache2
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/apache2/*.so \
+		$(1)/usr/lib/apache2
+endef
+
+$(eval $(call BuildPackage,redwax-apache-mod-scep))



More information about the rs-commit mailing list