[rs-commit] r204 - in /rs-distribution/trunk/openwrt: README security/ security/redwax-apache-mod-ca/ security/redwax-apache-mod-ca/Makefile
rs-commit at redwax.eu
rs-commit at redwax.eu
Wed Jan 1 17:17:56 CET 2020
Author: minfrin at redwax.eu
Date: Wed Jan 1 17:17:56 2020
New Revision: 204
Log:
Add openwrt distribution files for mod_ca.
Added:
rs-distribution/trunk/openwrt/README
rs-distribution/trunk/openwrt/security/
rs-distribution/trunk/openwrt/security/redwax-apache-mod-ca/
rs-distribution/trunk/openwrt/security/redwax-apache-mod-ca/Makefile
Added: rs-distribution/trunk/openwrt/README
==============================================================================
--- rs-distribution/trunk/openwrt/README (added)
+++ rs-distribution/trunk/openwrt/README Wed Jan 1 17:17:56 2020
@@ -0,0 +1,14 @@
+The following directory contains distribution files for OpenWrt.
+
+Add this feed to feeds.conf, and follow the build instructions at
+https://openwrt.org/docs/guide-developer/build-system/use-buildsystem
+to build OpenWrt.
+
+The Redwax packages can be found under Security->Certificate Authorities
+after running "make menuconfig"
+
+The following PR to apr/apr-util/apache is required for it to be
+possible to build third party modules like Redwax:
+
+https://github.com/openwrt/packages/pull/10924
+
Added: rs-distribution/trunk/openwrt/security/redwax-apache-mod-ca/Makefile
==============================================================================
--- rs-distribution/trunk/openwrt/security/redwax-apache-mod-ca/Makefile (added)
+++ rs-distribution/trunk/openwrt/security/redwax-apache-mod-ca/Makefile Wed Jan 1 17:17:56 2020
@@ -0,0 +1,87 @@
+#
+# 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-ca
+PKG_VERSION:=0.2.1
+PKG_RELEASE:=1
+PKG_SOURCE_NAME:=mod_ca
+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:=1ec0d15ab535321ae84b91ad3b2c5986b6c7c9ff1e36c745ddbe722a499a1a76
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_NAME)-$(PKG_VERSION)
+
+PKG_INSTALL:=1
+
+PKG_CONFIG_DEPENDS := \
+ CONFIG_APACHE
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/redwax-apache-mod-ca/Default
+ SECTION:=sec
+ CATEGORY:=Security
+ SUBMENU:=Certificate Authorities
+ TITLE:=Redwax mod_ca Modules
+ URL:=https://redwax.eu/
+endef
+
+define Package/redwax-apache-mod-ca/Default/description
+The Apache mod_ca module supplies a basic provider implementing a simple
+ certificate authority.
+endef
+
+define Package/redwax-apache-mod-ca/config
+# source "$(SOURCE)/Config.in"
+endef
+
+define Package/redwax-apache-mod-ca
+$(call Package/redwax-apache-mod-ca/Default)
+ DEPENDS:=+libapr +libaprutil +libopenssl
+endef
+
+define Package/redwax-apache-mod-ca/description
+$(call Package/redwax-apache-mod-ca/Default/description)
+The Apache mod_ca module supplies a basic provider implementing a simple
+ certificate authority.
+endef
+
+define Package/redwax-apache-mod-ca/conffiles
+#/etc/apache/extra/httpd-ca.conf
+endef
+
+TARGET_CFLAGS += $(FPIC)
+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 Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include/apache2
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/apache2/* \
+ $(1)/usr/include/apache2
+endef
+
+define Package/redwax-apache-mod-ca/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-ca))
More information about the rs-commit
mailing list