| 1 | # |
| 2 | # Copyright (C) 2010 Jo-Philipp Wich <xm@subsignal.org> |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=px5g |
| 11 | PKG_RELEASE:=1 |
| 12 | |
| 13 | PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) |
| 14 | |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | |
| 17 | define Package/px5g |
| 18 | SECTION:=utils |
| 19 | CATEGORY:=Utilities |
| 20 | TITLE:=Standalone X.509 certificate generator |
| 21 | endef |
| 22 | |
| 23 | define Package/px5g/description |
| 24 | Px5g is a tiny standalone X.509 certificate generator. |
| 25 | It suitable to create key files and certificates in DER |
| 26 | and PEM format for use with stunnel, uhttpd and others. |
| 27 | endef |
| 28 | |
| 29 | define Build/Prepare |
| 30 | mkdir -p $(PKG_BUILD_DIR) |
| 31 | $(CP) ./src/* $(PKG_BUILD_DIR)/ |
| 32 | endef |
| 33 | |
| 34 | define Package/px5g/install |
| 35 | $(INSTALL_DIR) $(1)/usr/sbin |
| 36 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/px5g $(1)/usr/sbin/px5g |
| 37 | endef |
| 38 | |
| 39 | $(eval $(call BuildPackage,px5g)) |
| 40 | |