0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-23 14:51:37 +00:00
Files
packages/net/pagekitec/Makefile
Hannu Nyman 69f5605e5a pagekitec: Make version apk compatible
Make PKG_VERSION compatible with apk by dropping the C char,
simplifying Makefile also otherwise. Also remove unnecessary
variables.

Refresh patches (just cosmetics for CI).

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2024-11-17 08:47:06 +02:00

103 lines
2.8 KiB
Makefile

#
# Copyright (C) 2012-2018 Karl Palsson <karlp@tweak.net.au>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=pagekitec
PKG_VERSION:=0.91.201110
PKG_RELEASE:=2
PKG_LICENSE:=Apache-2.0
PKG_MIRROR_HASH:=fc78791a76b02e1b82708af41b093cf9669924a5c83d8bf2a3e96e2f2ea8775b
PKG_SOURCE_URL:=https://github.com/pagekite/libpagekite.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
CONFIGURE_ARGS += --without-java
define Package/pagekitec/default
SECTION:=net
CATEGORY:=Network
TITLE:=Make localhost servers publicly visible.
URL:=https://pagekite.net/wiki/Floss/LibPageKite/
MAINTAINER:= Karl Palsson <karlp@tweak.net.au>
DEPENDS:=+libopenssl +libpthread +libev
endef
define Package/libpagekite
$(call Package/pagekitec/default)
SECTION:=libs
CATEGORY:=Libraries
TITLE+= (library)
endef
define Package/pagekitec
$(call Package/pagekitec/default)
DEPENDS:=+libpagekite
endef
define Package/pagekitec/default/description
PageKite is a system for running publicly visible servers (generally
web servers) on machines without a direct connection to the Internet,
such as mobile devices or computers behind restrictive firewalls.
PageKite works around NAT, firewalls and IP-address limitations by
using a combination of tunnels and reverse proxies.
This package provides an implementation of the PageKite Protocol in C,
optimized for high-performance or embedded applications.
endef
define Package/libpagekite/description
$(call Package/pagekitec/default/description)
This package contains the core library
endef
define Package/pagekitec/description
$(call Package/pagekitec/default/description)
This package contains a basic backend useful for exposing http/ssh servers.
Basic UCI support for configuring this backend is also included.
endef
define Package/pagekitec/conffiles
/etc/config/pagekitec
endef
define Build/Configure
(cd $(PKG_BUILD_DIR); ./autogen.sh );
$(call Build/Configure/Default)
endef
#this installs files into ./staging_dir/. so that you can cross compile from the host
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/{include,lib/pkgconfig}
$(CP) $(PKG_INSTALL_DIR)/usr/include/libpagekite/pagekite.h $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpagekite.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig
endef
define Package/libpagekite/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpagekite.so* $(1)/usr/lib
endef
define Package/pagekitec/install
$(CP) ./files/* $(1)/
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pagekitec $(1)/usr/bin
endef
$(eval $(call BuildPackage,pagekitec))
$(eval $(call BuildPackage,libpagekite))