All pastes #339561 Raw Edit

Untitled

public text v1 · immutable
·published 2007-02-04 04:46 UTC
rendered paste body
#
## Copyright (C) 2006 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:=dansguardian
PKG_VERSION:=2.9.8.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://usmirror.dansguardian.org/downloads/2/Beta/
PKG_MD5SUM:=6d6e002be64df2ba7a3842e29fb2dd36
PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

include $(INCLUDE_DIR)/package.mk

define Package/dansguardian
  SECTION:=net
  CATEGORY:=Network
  DEPENDS:=+squid
  TITLE:=full-featured Web proxy cache
  DESCRIPTION:=\
  	Content Filtering
  URL:=http://dansguardian.org/
endef

define Build/Configure
	$(call Build/Configure/Default, \
		--datadir="$(PKG_INSTALL_DIR)/usr/share/" \
		--bindir="$(PKG_INSTALL_DIR)/usr/bin/" \
		--sysconfdir="$(PKG_INSTALL_DIR)/etc/" \
		--mandir="$(PKG_INSTALL_DIR)/usr/man/" \
	)
endef

define Build/Compile
	$(MAKE) -C $(PKG_BUILD_DIR) \
		all install
endef

# DESTDIR="$(PKG_INSTALL_DIR)" \ 	

define Package/dansguardian/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(CP) $(PKG_INSTALL_DIR)/usr/bin/slurm $(1)/usr/bin/
endef

$(eval $(call BuildPackage,dansguardian))