| 1 |
# $FreeWRT$ |
| 2 |
#- |
| 3 |
# This file is part of the FreeWRT project. FreeWRT is copyrighted |
| 4 |
# material, please see the LICENCE file in the top-level directory |
| 5 |
# or at http://www.freewrt.org/licence for details. |
| 6 |
|
| 7 |
include $(TOPDIR)/rules.mk |
| 8 |
|
| 9 |
PKG_NAME:= pimd |
| 10 |
PKG_VERSION:= 2.1.0-alpha29.17 |
| 11 |
PKG_RELEASE:= 1 |
| 12 |
PKG_MD5SUM:= 1aba29445da540d346805a371d1e7f60 |
| 13 |
PKG_INIT:= 70 |
| 14 |
|
| 15 |
PKG_SOURCE_URL:= http://ftp.debian.org/debian/pool/main/p/pimd/ \ |
| 16 |
http://ftp.de.debian.org/debian/pool/main/p/pimd/ |
| 17 |
PKG_SOURCE:= $(PKG_NAME)_$(PKG_VERSION).orig.tar.gz |
| 18 |
|
| 19 |
include $(TOPDIR)/mk/package.mk |
| 20 |
|
| 21 |
$(eval $(call PKG_template,PIMD,pimd,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) |
| 22 |
|
| 23 |
PIMD_INCLUDE = -Iinclude/linux -Iinclude -I$(STAGING_DIR)/include |
| 24 |
PIMD_DEFS = -D__BSD_SOURCE \ |
| 25 |
-DRAW_INPUT_IS_RAW \ |
| 26 |
-DRAW_OUTPUT_IS_RAW \ |
| 27 |
-DIOCTL_OK_ON_RAW_SOCKET \ |
| 28 |
-DLinux \ |
| 29 |
-DPIM |
| 30 |
|
| 31 |
## Newer Linux (linux-2.1.127 for example) |
| 32 |
PIMD_CFLAGS=$(TARGET_CFLAGS) -Wall -g ${PIMD_INCLUDE} ${PIMD_DEFS} ${COMMON_CFLAGS} |
| 33 |
|
| 34 |
|
| 35 |
$(WRKBUILD)/.built: |
| 36 |
$(MAKE) -C $(WRKBUILD) \ |
| 37 |
CC=$(TARGET_CC) \ |
| 38 |
CFLAGS="$(PIMD_CFLAGS)" \ |
| 39 |
all |
| 40 |
touch $@ |
| 41 |
|
| 42 |
$(IPKG_PIMD): |
| 43 |
install -d -m0755 $(IDIR_PIMD)/usr/bin |
| 44 |
install -d -m0755 $(IDIR_PIMD)/etc |
| 45 |
install -m0755 $(WRKBUILD)/pimd $(IDIR_PIMD)/usr/bin/ |
| 46 |
install -m0644 $(WRKBUILD)/pimd.conf $(IDIR_PIMD)/etc/ |
| 47 |
install -d -m0755 $(IDIR_PIMD)/etc/init.d |
| 48 |
install -m0755 ./files/pimd.init $(IDIR_PIMD)/etc/init.d/S$(PKG_INIT)pimd |
| 49 |
$(RSTRIP) $(IDIR_PIMD) |
| 50 |
$(IPKG_BUILD) $(IDIR_PIMD) $(PACKAGE_DIR) |