Changeset d419478 in freewrt for package/tinc


Ignore:
Timestamp:
Jul 21, 2006, 1:56:32 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
50d34d3
Parents:
2029b2e
Message:
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

git-svn-id: svn://www.freewrt.org/trunk/freewrt@303 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/tinc/Makefile

    r2029b2e rd419478  
    1212        http://www.mirrors.wiretapped.net/security/network-security/tinc/
    1313PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    14 PKG_CAT:=zcat
    1514
    16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
    17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
    1815
    1916include $(TOPDIR)/package/rules.mk
     
    2118$(eval $(call PKG_template,TINC,tinc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    2219
    23 $(PKG_BUILD_DIR)/.configured:
    24         (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
     20$(WRKBUILD)/.configured:
     21        (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    2522                $(TARGET_CONFIGURE_OPTS) \
    2623                CFLAGS="$(TARGET_CFLAGS)" \
     
    5249        touch $@
    5350
    54 $(PKG_BUILD_DIR)/.built:
    55         rm -rf $(PKG_INSTALL_DIR)
    56         mkdir -p $(PKG_INSTALL_DIR)
    57         $(MAKE) -C $(PKG_BUILD_DIR) \
     51$(WRKBUILD)/.built:
     52        rm -rf $(WRKINST)
     53        mkdir -p $(WRKINST)
     54        $(MAKE) -C $(WRKBUILD) \
    5855                CC=$(TARGET_CC) \
    5956                CFLAGS="$(TARGET_CFLAGS)" \
    60                 DESTDIR="$(PKG_INSTALL_DIR)" \
     57                DESTDIR="$(WRKINST)" \
    6158                all install
    6259        touch $@
     
    6461$(IPKG_TINC):
    6562        install -m0755 -d $(IDIR_TINC)/usr/sbin
    66         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(IDIR_TINC)/usr/sbin/
     63        $(CP) $(WRKINST)/usr/sbin/tincd $(IDIR_TINC)/usr/sbin/
    6764        $(RSTRIP) $(IDIR_TINC)
    6865        $(IPKG_BUILD) $(IDIR_TINC) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.