unfs3: add support for compiling with the external librpc
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=sscep
11 PKG_VERSION:=20040325+ng2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=${PKG_NAME}.tgz
15 PKG_SOURCE_URL:=http://www.klake.org/~jt/sscep/
16 PKG_MD5SUM:=b509cdf0de952841471e77499aa6e4ca
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/sscep
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+libopenssl
26 TITLE:=A Simple SCEP (Simple Certificate Enrollment Protocol) client
27 URL:=http://www.klake.org/~jt/sscep/
28 endef
29
30 define Build/Configure
31 endef
32
33 define Build/Compile
34 $(MAKE) -C $(PKG_BUILD_DIR) \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 CPPFLAGS="$(TARGET_CPPFLAGS)" \
38 LDFLAGS="$(TARGET_LDFLAGS)"
39 endef
40
41 define Package/sscep/conffiles
42 /etc/sscep.conf
43 endef
44
45 define Package/sscep/install
46 $(INSTALL_DIR) $(1)/etc
47 $(INSTALL_CONF) $(PKG_BUILD_DIR)/sscep.conf $(1)/etc/
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sscep $(1)/usr/sbin/
50 endef
51
52 $(eval $(call BuildPackage,sscep))