Currently `polipo.h` uses the conditional `(__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)` to decide whether to enable IPv6 support. This used to work for OpenWrt CC which uses uClibc disguising itself as Glibc 2.x but it does not work with Musl libc anymore as this library does not export any Glibc defines. Forcibly enable IPv6 support by passing `-DHAVE_IPv6` unconditionally through the build flags in the OpenWrt/LEDE Makefile. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2007-2011 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=polipo
|
|
PKG_VERSION:=1.1.1
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/$(PKG_NAME)/
|
|
PKG_HASH:=a259750793ab79c491d05fcee5a917faf7d9030fb5d15e05b3704e9c9e4ee015
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/polipo
|
|
SUBMENU:=Web Servers/Proxies
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
TITLE:=A caching web proxy
|
|
URL:=http://www.pps.univ-paris-diderot.fr/~jch/software/polipo/
|
|
MAINTAINER:=Gabriel Kerneis <gabriel@kerneis.info>
|
|
endef
|
|
|
|
define Package/polipo/description
|
|
Polipo is a small and fast caching web proxy (a web cache, an HTTP proxy,
|
|
a proxy server). While Polipo was designed to be used by one person or a
|
|
small group of people, there is nothing that prevents it from being used
|
|
by a larger group.
|
|
endef
|
|
|
|
TARGET_CFLAGS += -DHAVE_IPv6
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
polipo
|
|
endef
|
|
|
|
define Package/polipo/conffiles
|
|
/etc/config/polipo
|
|
/etc/polipo/config
|
|
endef
|
|
|
|
define Package/polipo/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/polipo $(1)/usr/sbin/
|
|
$(INSTALL_DIR) $(1)/etc/polipo
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config.sample $(1)/etc/polipo/config
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_DATA) ./files/polipo.config $(1)/etc/config/polipo
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/polipo.init $(1)/etc/init.d/polipo
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,polipo))
|