add sscep, a Simple SCEP (Simple Certificate Enrollment Protocol) client
[openwrt/svn-archive/archive.git] / net / sscep / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sscep
12 PKG_VERSION:=20040325+ng2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=${PKG_NAME}.tgz
16 PKG_SOURCE_URL:=http://www.klake.org/~jt/sscep/
17 PKG_MD5SUM:=b509cdf0de952841471e77499aa6e4ca
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/sscep
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libopenssl
29 TITLE:=A Simple SCEP (Simple Certificate Enrollment Protocol) client
30 URL:=http://www.klake.org/~jt/sscep/
31 endef
32
33 define Build/Configure
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 $(TARGET_CONFIGURE_OPTS) \
39 CFLAGS="$(TARGET_CFLAGS)" \
40 CPPFLAGS="$(TARGET_CPPFLAGS)" \
41 LDFLAGS="$(TARGET_LDFLAGS)"
42 endef
43
44 define Package/sscep/conffiles
45 /etc/sscep.conf
46 endef
47
48 define Package/sscep/install
49 $(INSTALL_DIR) $(1)/etc
50 $(INSTALL_CONF) $(PKG_BUILD_DIR)/sscep.conf $(1)/etc/
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sscep $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,sscep))