Changeset 578


Ignore:
Timestamp:
Dec 24, 2013, 10:07:54 PM (6 years ago)
Author:
amain
Message:

mjpg-streamer: final packaging changes

Location:
trunk/debian/package/mjpg-streamer
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/package/mjpg-streamer

    • Property svn:ignore set to
      all
      prepare
      build
      deliver
  • trunk/debian/package/mjpg-streamer/build.mk

    r577 r578  
    11# DebWrt - Debian on Embedded devices
    22#
    3 # Copyright (C) 2010 Johan van Zoomeren <amain@debwrt.net>
     3# Copyright (C) 2013 Johan van Zoomeren <amain@debwrt.net>
    44#
    55# This program is free software: you can redistribute it and/or modify
     
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 PKG_NAME          = debwrt-mjpeg-streamer
     18include $(TOPDIR)/Makefile
    1919
    20 CH               := "[\(\)]"
    21 PKG_NAME_VERSION  = $(shell head -1 $(DEBIAN_PACKAGES_DIR)/$(PKG_NAME)/debian/changelog | awk '{gsub(/'$(CH)'/,"",$$2); print $$1"-"$$2}')
    22 DEBWRT_PKGLST    := $(DEBWRT_PKGLST) debian/package/$(PKG_NAME)
    23 run_in_chroot     = $(CHROOT_USER) bash -c "cd /usr/src/$(PKG_NAME); export ARCH=$(TARGET_ARCH); $(1)"
    24 run_in_chrootr    = $(CHROOT)     bash -c "cd /usr/src/$(PKG_NAME); export ARCH=$(TARGET_ARCH); $(1)"
     20PKG_NAME       = mjpg-streamer
     21PKG_VERSION    = 182
     22PKG_RELEASE    = 1
    2523
    26 debian/package/$(PKG_NAME): debian/package/$(PKG_NAME)/deliver
     24debian/package/$(PKG_NAME)/all: debian/package/$(PKG_NAME)/deliver
    2725        touch $@
    2826
    2927debian/package/$(PKG_NAME)/deliver: debian/package/$(PKG_NAME)/build
    3028        mkdir -p ${INSTALL_DIR_DEBIAN_PACKAGES}
    31         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.deb ${INSTALL_DIR_DEBIAN_PACKAGES}
    32         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.tar.gz ${INSTALL_DIR_DEBIAN_PACKAGES}
    33         cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.dsc ${INSTALL_DIR_DEBIAN_PACKAGES}
     29        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.deb     ${INSTALL_DIR_DEBIAN_PACKAGES}
     30        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.tar.gz  ${INSTALL_DIR_DEBIAN_PACKAGES}
     31        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.dsc     ${INSTALL_DIR_DEBIAN_PACKAGES}
    3432        cp -rav $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/*.changes ${INSTALL_DIR_DEBIAN_PACKAGES}
    3533        touch $@
    3634
     35debian/package/$(PKG_NAME)/rebuild: debian/package/$(PKG_NAME)/clean-build debian/package/$(PKG_NAME)/build
     36
    3737debian/package/$(PKG_NAME)/build: debian/package/$(PKG_NAME)/prepare
    38         $(call run_in_chrootr,cd $(PKG_NAME_VERSION);apt-get install libjpeg8 libjpeg8-dev)
    39         $(call run_in_chroot,cd $(PKG_NAME_VERSION);dpkg-buildpackage -a${ARCH} -rfakeroot)
    40         $(call run_in_chroot,find -maxdepth 1 -name "*.deb" | xargs -r -t -i sudo dpkg-cross -a ${TARGET_ARCH} -i {} || true)
     38        $(call run_in_chroot,cd /usr/src/$(PKG_NAME)/$(PKG_NAME)-$(PKG_VERSION); \
     39                             dpkg-buildpackage -d -a${TARGET_ARCH} -rfakeroot)
     40        $(call run_in_chroot,find -maxdepth 1 -name '*.deb' | xargs -r -t -i sudo dpkg-cross -a ${TARGET_ARCH} -i {} || true)
    4141        touch $@
    4242
    4343debian/package/$(PKG_NAME)/prepare: debian/buildenv/create
    44         rm -rf   $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
    4544        mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
    46         mkdir -p $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/$(PKG_NAME_VERSION)
    47         cp -ar $(DEBIAN_PACKAGES_DIR)/$(PKG_NAME)/* $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/$(PKG_NAME_VERSION)
    48         rm -f $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/$(PKG_NAME_VERSION)/build.mk
     45        cp -ar $(DEBIAN_PACKAGES_DIR)/$(PKG_NAME)/* $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
     46        rm -f $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)/$(PKG_VERSION)/build.mk
     47        $(call run_in_chrootr,xapt --check-newer -k -a ${TARGET_ARCH} -m libjpeg8 libjpeg8-dev)
     48        $(call run_in_chroot ,cd /usr/src/$(PKG_NAME); \
     49                              dpkg-source -x $(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE).dsc)
    4950        touch $@
    5051
     52debian/package/$(PKG_NAME)/clean-build:
     53        rm -f debian/package/$(PKG_NAME)/build
     54
    5155debian/package/$(PKG_NAME)/clean:
     56        rm -f debian/package/$(PKG_NAME)/all
     57        rm -f debian/package/$(PKG_NAME)/prepare
    5258        rm -f debian/package/$(PKG_NAME)/build
    53         rm -f debian/package/$(PKG_NAME)/prepare
    5459        rm -f debian/package/$(PKG_NAME)/deliver
     60        rm -rf $(DEBIAN_BUILD_DIR)/usr/src/$(PKG_NAME)
    5561
     62.PHONY: debian/package/$(PKG_NAME)/clean \
     63        debian/package/$(PKG_NAME)/clean-build \
     64        debian/package/$(PKG_NAME)/rebuild
     65
  • trunk/debian/package/mjpg-streamer/mjpg-streamer_182-1.dsc

    r577 r578  
    1111 mjpg-streamer deb Video extra
    1212Checksums-Sha1:
    13  96eb41176dea69a3c42ac018afb2e65f97dfe3ed 1089472 mjpg-streamer_182.orig.tar.gz
    14  1d8575f9ae84c373dae267de849954720c9e94c8 4421 mjpg-streamer_182-1.debian.tar.gz
     13 4319829db926f6908c16523eb022b01e125509b3 555902 mjpg-streamer_182.orig.tar.gz
     14 f98b6198b7bb7668379d3612103c6d2b83c97df3 4955 mjpg-streamer_182-1.debian.tar.gz
    1515Checksums-Sha256:
    16  716d8ef0d5bbcac1be7466a044473ef15df5d3b8d2c0323a3adbdbd965ff6fe5 1089472 mjpg-streamer_182.orig.tar.gz
    17  322d884ad45564ff65116e9e6690249344e9a57f8bb69b5cf5bb861f97bb5992 4421 mjpg-streamer_182-1.debian.tar.gz
     16 8bf8538bc13aea89587ef8ceef7e6d9b8fd00ed82b6c900598fa4ace9b4ec3be 555902 mjpg-streamer_182.orig.tar.gz
     17 15fb0dec5438d34fb7e502586e2f61d5d93b81c638cba8f7e81816cad4de1f5e 4955 mjpg-streamer_182-1.debian.tar.gz
    1818Files:
    19  1f5ae48419bec4be195674a7b2c9da1c 1089472 mjpg-streamer_182.orig.tar.gz
    20  829c1b397a0f0e629f783aadf547626f 4421 mjpg-streamer_182-1.debian.tar.gz
     19 43a60264d89719712b466233c1146c4c 555902 mjpg-streamer_182.orig.tar.gz
     20 c6e00a751ac069446f46ec07823f1b6b 4955 mjpg-streamer_182-1.debian.tar.gz
  • trunk/debian/package/mjpg-streamer/mjpg-streamer_182-1_amd64.changes

    r577 r578  
    1616   * Initial release
    1717Checksums-Sha1:
    18  7e86f0cc8156e916ffa4ec1ed9f02acbeb774ce0 915 mjpg-streamer_182-1.dsc
    19  96eb41176dea69a3c42ac018afb2e65f97dfe3ed 1089472 mjpg-streamer_182.orig.tar.gz
    20  1d8575f9ae84c373dae267de849954720c9e94c8 4421 mjpg-streamer_182-1.debian.tar.gz
    21  b8ea4636958c1c3b7eb8c86b432d4f2d38b4900b 295554 mjpg-streamer_182-1_amd64.deb
     18 f60360be0ec287c2128e580f9345d9c873e00093 912 mjpg-streamer_182-1.dsc
     19 4319829db926f6908c16523eb022b01e125509b3 555902 mjpg-streamer_182.orig.tar.gz
     20 f98b6198b7bb7668379d3612103c6d2b83c97df3 4955 mjpg-streamer_182-1.debian.tar.gz
     21 f133b1ca6cf26c6e37669ff041cbb7fc2b78aeed 295562 mjpg-streamer_182-1_amd64.deb
    2222Checksums-Sha256:
    23  ebc66d80bc06b6a6496b7ae020fdab386090a5ca747cce1e35d8898bfafd3246 915 mjpg-streamer_182-1.dsc
    24  716d8ef0d5bbcac1be7466a044473ef15df5d3b8d2c0323a3adbdbd965ff6fe5 1089472 mjpg-streamer_182.orig.tar.gz
    25  322d884ad45564ff65116e9e6690249344e9a57f8bb69b5cf5bb861f97bb5992 4421 mjpg-streamer_182-1.debian.tar.gz
    26  cb4a83d6a9faf82dba5814ec07eeab6600e0eb736d22017681539fa4ee194e0b 295554 mjpg-streamer_182-1_amd64.deb
     23 08786b2a5dd999e79d0d1670442fe0f027b0189dbb9c46126580c1683b4ccdff 912 mjpg-streamer_182-1.dsc
     24 8bf8538bc13aea89587ef8ceef7e6d9b8fd00ed82b6c900598fa4ace9b4ec3be 555902 mjpg-streamer_182.orig.tar.gz
     25 15fb0dec5438d34fb7e502586e2f61d5d93b81c638cba8f7e81816cad4de1f5e 4955 mjpg-streamer_182-1.debian.tar.gz
     26 e32efb8373646dcd2ba043fc7129dff3e309b8b58c7e191f16b961b4cfb69fe4 295562 mjpg-streamer_182-1_amd64.deb
    2727Files:
    28  2c3d1fe2462f06e423e8c2e7cae0aa78 915 Video extra mjpg-streamer_182-1.dsc
    29  1f5ae48419bec4be195674a7b2c9da1c 1089472 Video extra mjpg-streamer_182.orig.tar.gz
    30  829c1b397a0f0e629f783aadf547626f 4421 Video extra mjpg-streamer_182-1.debian.tar.gz
    31  14fd81a21ec94438634cda208bc1b5af 295554 Video extra mjpg-streamer_182-1_amd64.deb
     28 0a779f6968c495af1dbf10022e96f3fe 912 Video extra mjpg-streamer_182-1.dsc
     29 43a60264d89719712b466233c1146c4c 555902 Video extra mjpg-streamer_182.orig.tar.gz
     30 c6e00a751ac069446f46ec07823f1b6b 4955 Video extra mjpg-streamer_182-1.debian.tar.gz
     31 4e38d8bb745d0bef04a282d1a1e71eb2 295562 Video extra mjpg-streamer_182-1_amd64.deb
Note: See TracChangeset for help on using the changeset viewer.