Changeset 29473

Show
Ignore:
Timestamp:
27.11.2014 11:04:55 (4 years ago)
Author:
jts21
Message:

Got deb building for gli. Currently the package manager complains since it apparently doesn't like things being installed in opt. Will therefore need to move the installation folder somewhere else for deb packages.

Location:
main/trunk/package-kits/linux/deb
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/package-kits/linux/deb

    • Property svn:ignore set to
      *.dsc
      *.tar.gz
      *.deb
      *.changes
  • main/trunk/package-kits/linux/deb/gli

    • Property svn:ignore
      •  

        old new  
        11svn 
        22src 
        3 pkg 
         3build 
  • main/trunk/package-kits/linux/deb/gli/Makefile

    r29472 r29473  
    1 systemlib   := /usr/lib 
    2 java        := $(systemlib)/jvm/default-java 
    3 systembin   := /usr/bin 
    4 gli         := /opt/gli 
     1systemlib   := /usr/lib 
     2java        := $(systemlib)/jvm/default-java 
     3systembin   := /usr/bin 
     4gli         := /opt/gli 
     5DESTDIR     ?= / 
    56 
    6 all: cleanpkg gli 
     7all: build 
     8 
     9deb: 
     10    dpkg-buildpackage -rfakeroot 
    711 
    812svn: 
     
    1418    $(eval srcver := $(shell if test -d src; then cd src && svnversion -c | grep -o '[[:digit:]:]*'; else echo "nope"; fi)) 
    1519    if test $(svnver) != $(srcver); then \ 
     20    $(MAKE) clean ; \ 
    1621    echo "Making copy of source" ; \ 
    17     rm -rf src ; \ 
    1822    cp -rT svn src ; \ 
    1923    fi 
    2024 
    21 cleanpkg: 
    22     @echo Cleaning pkg directory 
    23     rm -rf pkg 
    24  
    25 clean: cleanpkg 
     25clean: 
    2626    @echo "Cleaning src directory" 
    2727    rm -rf src 
     28    rm -f build 
    2829 
    2930cleanall: clean 
     
    3334build: src 
    3435    cd src ; \ 
    35     export JAVA_HOME=$(java) ; \ 
    36     ./makegli.sh 
     36    JAVA_HOME=$(java) ./makegli.sh 
    3737    # delete windows stuff 
    3838    rm -rf src/winutil src/*.bat 
    39     # delete svn stuff 
    40     find src/ -type d -name ".svn" -exec rm -rf {} \; 2>/dev/null || : 
     39    # don't run again 
     40    touch build 
    4141 
    42 gli: build 
    43     $(eval pkgdir := pkg/gli) 
    44     install -d $(pkgdir)/$(gli) 
    45     rsync -av --exclude src --exclude .svn src/ $(pkgdir)/$(gli) 
    46     install -Dm755 gli $(pkgdir)/$(systembin)/gli 
     42install: install-gli 
     43install-gli: build 
     44    install -d $(DESTDIR)/$(gli) 
     45    rsync -a --info=STATS --exclude src --exclude .svn src/ $(DESTDIR)/$(gli) 
     46    install -Dm755 gli $(DESTDIR)/$(systembin)/gli 
    4747 
    48 .PHONY: svn cleanpkg clean cleanall build gli 
     48.PHONY: all svn clean cleanall install install-gli 
  • main/trunk/package-kits/linux/deb/gli/debian

    • Property svn:ignore set to
      files
      gli*
  • main/trunk/package-kits/linux/deb/gli/debian/changelog

    r29471 r29473  
    1 gli (VERSION) UNRELEASED; urgency=medium 
     1gli (0.01) UNRELEASED; urgency=medium 
    22 
    33  * Initial release. (Closes: #XXXXXX) 
  • main/trunk/package-kits/linux/deb/gli/debian/rules

    r29471 r29473  
     1#!/usr/bin/make -f 
     2 
     3%: 
     4    dh $@ --with autotools_dev