source: debwrt/trunk/debian/package/led/build.mk @ 221

Last change on this file since 221 was 221, checked in by stappers, 8 years ago

Infrastructure for led package added

modified: debian/package/debian.mk
new file: debian/package/led/build.mk
new file: debian/package/led/build.sh
new file: debian/package/led/debian/changelog
new file: debian/package/led/debian/compat
new file: debian/package/led/debian/control
new file: debian/package/led/debian/copyright
new file: debian/package/led/debian/dirs
new file: debian/package/led/debian/rules
new file: debian/package/led/files/Makefile

File size: 2.0 KB
Line 
1# DebWrt - Debian on OpenWRT devices
2#
3# Copyright (C) 2011 Geert Stappers <stappers@stappers.it>
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18DEBWRT_PKGLST:=$(DEBWRT_PKGLST) debian/package/led
19
20debian/package/led: debian/package/led/deliver
21        touch $@
22
23debian/package/led/deliver: debian/package/led/build
24        mkdir -p ${INSTALL_DIR_DEBIAN_PACKAGES}
25        cp $(DEBIAN_BUILD_DIR)/usr/src/led/*.deb ${INSTALL_DIR_DEBIAN_PACKAGES}
26        cp $(DEBIAN_BUILD_DIR)/usr/src/led/*.dsc ${INSTALL_DIR_DEBIAN_PACKAGES}
27        cp $(DEBIAN_BUILD_DIR)/usr/src/led/*.changes ${INSTALL_DIR_DEBIAN_PACKAGES}
28        cp $(DEBIAN_BUILD_DIR)/usr/src/led/*.tar.gz ${INSTALL_DIR_DEBIAN_PACKAGES}
29        touch $@
30
31debian/package/led/build: debian/package/led/prepare
32        $(CHROOT_USER) bash \
33                -c "cd /usr/src/led; export ARCH=$(TARGET_ARCH); ./build.sh"
34        touch $@
35
36debian/package/led/prepare: # debian/buildenv/create
37        rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/led
38        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/led
39        cp -a $(DEBIAN_PACKAGES_DIR)/led/files  $(DEBIAN_BUILD_DIR)/usr/src/led
40        mv $(DEBIAN_BUILD_DIR)/usr/src/led/files/* $(DEBIAN_BUILD_DIR)/usr/src/led
41        rmdir $(DEBIAN_BUILD_DIR)/usr/src/led/files
42        cp -a $(DEBIAN_PACKAGES_DIR)/led/debian $(DEBIAN_BUILD_DIR)/usr/src/led
43        cp $(DEBIAN_PACKAGES_DIR)/led/build.sh $(DEBIAN_BUILD_DIR)/usr/src/led
44        touch $@
45
46debian/package/led/clean:
47        rm -f debian/package/led/build
48        rm -f debian/package/led/prepare
49        rm -f debian/package/led/deliver
50
51# l l
Note: See TracBrowser for help on using the repository browser.