Changeset 859 for trunk


Ignore:
Timestamp:
Dec 4, 2016, 6:39:58 PM (3 years ago)
Author:
amain
Message:

mtd: initial import

Location:
trunk/debian/packages/mtd/trunk/debian
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/packages/mtd/trunk/debian/control

    r851 r859  
    33Priority: optional
    44Maintainer: Johan van Zoomeren <amain@debwrt.net>
    5 Build-Depends: debhelper (>= 9), quilt
     5Build-Depends: debhelper (>= 9), quilt, libubox1 (>= 2016.07.29)
    66Standards-Version: 3.9.8
    77Homepage: https://wiki.openwrt.org/doc/techref/mtd
     
    99Package: mtd21
    1010Architecture: any
    11 Depends: ${shlibs:Depends}, ${misc:Depends}
     11Depends: ${shlibs:Depends}, ${misc:Depends}, libubox1 (>= 2016.07.29)
    1212Pre-Depends: ${misc:Pre-Depends}
    1313Multi-Arch: same
  • trunk/debian/packages/mtd/trunk/debian/rules

    r851 r859  
    77DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
    88
    9 PACKAGE_VERSION := $(shell grep ^Source: debian/control | sed 's/^.*swconfig//')
    10 PACKAGE         := swconfig$(PACKAGE_VERSION)
    11 PACKAGE_LIB     := libsw$(PACKAGE_VERSION)
    12 PACKAGE_DEV     := libsw-dev
    13 
    14 # ../include contains switch.sh kernel API (see patch 007)
    15 CFLAGS+=-O2 -g -I ../include/uapi -I /usr/include/netlink-tiny
     9PACKAGE_VERSION := $(shell grep ^Source: debian/control | sed 's/^.*mtd//')
     10PACKAGE         := mtd$(PACKAGE_VERSION)
    1611
    1712# not all variables are exported by default
    1813export PACKAGE
    19 export PACKAGE_LIB
    2014export PACKAGE_VERSION
    2115
     
    2317        dh $@
    2418
    25 override_dh_auto_build: 
     19override_dh_auto_build:
    2620        $(MAKE) -C src
    2721
     
    3125override_dh_auto_install:
    3226        install -d debian/$(PACKAGE)/usr/sbin
    33         install -d debian/$(PACKAGE_LIB)/usr/lib/$(DEB_HOST_MULTIARCH)
    34         install -d debian/$(PACKAGE_DEV)/usr/lib/$(DEB_HOST_MULTIARCH)
    35         install -d debian/$(PACKAGE_DEV)/usr/include/sw
    36         install src/$(PACKAGE) debian/$(PACKAGE)/usr/sbin/$(PACKAGE)
    37         cp -v src/libsw.so.*.*.* debian/$(PACKAGE_LIB)/usr/lib/$(DEB_HOST_MULTIARCH)
    38         cp -dv src/libsw.so.* debian/$(PACKAGE_LIB)/usr/lib/$(DEB_HOST_MULTIARCH)
    39         cp -dv src/libsw.so debian/$(PACKAGE_DEV)/usr/lib/$(DEB_HOST_MULTIARCH)
    40         cp -v src/swlib.h debian/$(PACKAGE_DEV)/usr/include/sw
     27        install src/mtd debian/$(PACKAGE)/usr/sbin/$(PACKAGE)
    4128
    4229override_dh_auto_clean:
    43         rm -f src/swconfig src/*.o src/libsw.*
     30        rm -f src/mtd src/*.o
    4431
Note: See TracChangeset for help on using the changeset viewer.