# # 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 PKG_LICENSE:=Apache License PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=https://archive.redwax.eu/dist/rs/$(PKG_SOURCE_NAME)/$(PKG_SOURCE_NAME)-$(PKG_VERSION)/ 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:=security CATEGORY:=Security SUBMENU:=Certificate Authorities TITLE:=Redwax mod_ca Modules URL:=https://redwax.eu/ endef define Package/redwax-apache-mod-ca $(call Package/redwax-apache-mod-ca/Default) DEPENDS:=+apache +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 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))