Avoid mkdir in postinst, doing it in the Makefile
[openwrt.git] / openwrt / package / arpwatch / Makefile
index 8a26769..a20c58f 100644 (file)
@@ -7,9 +7,7 @@ PKG_VERSION:=2.1a11
 PKG_RELEASE:=1
 PKG_MD5SUM:=9ecd00db892737431b0e524f3e52e19e
 
 PKG_RELEASE:=1
 PKG_MD5SUM:=9ecd00db892737431b0e524f3e52e19e
 
-PKG_SOURCE_URL:= \
-       http://nbd.vd-s.ath.cx/openwrt \
-       http://nthill.free.fr/openwrt/sources/$(PKG_NAME)/
+PKG_SOURCE_URL:=http://nbd.vd-s.ath.cx/openwrt
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_CAT:=zcat
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
@@ -52,13 +50,14 @@ $(PKG_BUILD_DIR)/.built:
                ARPDIR=/etc/arpwatch \
                CCOPT="$(TARGET_CFLAGS)" \
                INCLS="-I. -I$(STAGING_DIR)/usr/include" \
                ARPDIR=/etc/arpwatch \
                CCOPT="$(TARGET_CFLAGS)" \
                INCLS="-I. -I$(STAGING_DIR)/usr/include" \
-               LIBS="-L$(STAGING_DIR)/usr/lib -lpcap" \
+               LIBS="-L$(STAGING_DIR)/usr/lib -lpcap"
+       touch $@
 
 $(IPKG_ARPWATCH):
        mkdir -p $(IDIR_ARPWATCH)/usr/sbin
 
 $(IPKG_ARPWATCH):
        mkdir -p $(IDIR_ARPWATCH)/usr/sbin
-       cp $(PKG_BUILD_DIR)/arpwatch $(IDIR_ARPWATCH)/usr/sbin/
-       cp $(PKG_BUILD_DIR)/arpsnmp $(IDIR_ARPWATCH)/usr/sbin/
+       $(CP) $(PKG_BUILD_DIR)/arpwatch $(IDIR_ARPWATCH)/usr/sbin/
+       $(CP) $(PKG_BUILD_DIR)/arpsnmp $(IDIR_ARPWATCH)/usr/sbin/
        $(STRIP) $(IDIR_ARPWATCH)/usr/sbin/*
        mkdir -p $(IDIR_ARPWATCH)/etc/arpwatch
        $(STRIP) $(IDIR_ARPWATCH)/usr/sbin/*
        mkdir -p $(IDIR_ARPWATCH)/etc/arpwatch
-       cp $(PKG_BUILD_DIR)/arp.dat $(IDIR_ARPWATCH)/etc/arpwatch/
+       $(CP) $(PKG_BUILD_DIR)/arp.dat $(IDIR_ARPWATCH)/etc/arpwatch/
        $(IPKG_BUILD) $(IDIR_ARPWATCH) $(PACKAGE_DIR)
        $(IPKG_BUILD) $(IDIR_ARPWATCH) $(PACKAGE_DIR)
This page took 0.026314 seconds and 4 git commands to generate.