Changeset 5ae1532 in freewrt


Ignore:
Timestamp:
Jan 20, 2007, 5:52:30 PM (19 years ago)
Author:
Waldemar Brodkorb <wbx@…>
Children:
28bbaa8
Parents:
80eeaab
Message:

convert to new style

git-svn-id: svn://www.freewrt.org/branches/common-adk@1657 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/l2tpns/Makefile

    r80eeaab r5ae1532  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              l2tpns
     
    1111PKG_RELEASE:=           1
    1212PKG_MD5SUM:=            2a0ee2a3678160c335f1d68c17c4f871
     13PKG_SOURCE_URL:=        @SF/l2tpns
    1314
    14 PKG_SOURCE_URL:=        @SF/l2tpns
    15 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tar.gz
     15include ${TOPDIR}/mk/package.mk
    1616
    17 include $(TOPDIR)/mk/package.mk
     17$(eval $(call PKG_template,L2TPNS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    1818
    19 $(eval $(call PKG_template,L2TPNS,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     19BUILD_FLAGS=            auto
     20INSTALL_STYLE=          auto
     21XAKE_FLAGS+=            OPTIM="${TARGET_CFLAGS}" \
     22                        STAGING_DIR=${STAGING_DIR} \
     23                        LD="${TARGET_CC}"
    2024
    21 $(WRKBUILD)/.configured:
    22         touch $@
    23 
    24 $(WRKBUILD)/.built:
    25         $(MAKE) -C $(WRKBUILD) \
    26                 CC="$(TARGET_CC)" \
    27                 LD="$(TARGET_CC)" \
    28                 OPTIM="$(TARGET_CFLAGS)" \
    29                 DESTDIR=$(WRKINST) \
    30                 STAGING_DIR=$(STAGING_DIR) \
    31                 all install
    32         touch $@
    33 
    34 $(IPKG_L2TPNS):
    35         install -d -m0755 $(IDIR_L2TPNS)/etc/l2tpns
    36         $(CP) $(WRKINST)/etc/l2tpns/* $(IDIR_L2TPNS)/etc/l2tpns/
    37         install -d -m0755 $(IDIR_L2TPNS)/usr/lib/l2tpns
    38         $(CP) $(WRKINST)/usr/lib/l2tpns/* $(IDIR_L2TPNS)/usr/lib/l2tpns/
    39         install -d -m0755 $(IDIR_L2TPNS)/usr/sbin
    40         $(CP) $(WRKINST)/usr/sbin/* $(IDIR_L2TPNS)/usr/sbin/
    41         $(RSTRIP) $(IDIR_L2TPNS)
    42         $(IPKG_BUILD) $(IDIR_L2TPNS) $(PACKAGE_DIR)
     25post-install:
     26        ${INSTALL_DIR} ${IDIR_L2TPNS}/etc/l2tpns
     27        ${CP} ${WRKINST}/etc/l2tpns/* ${IDIR_L2TPNS}/etc/l2tpns/
     28        ${INSTALL_DIR} ${IDIR_L2TPNS}/usr/lib/l2tpns
     29        ${CP} ${WRKINST}/usr/lib/l2tpns/* ${IDIR_L2TPNS}/usr/lib/l2tpns/
     30        ${INSTALL_DIR} ${IDIR_L2TPNS}/usr/sbin
     31        ${CP} ${WRKINST}/usr/sbin/* ${IDIR_L2TPNS}/usr/sbin/
    4332
    4433include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracChangeset for help on using the changeset viewer.