summaryrefslogtreecommitdiff
path: root/docker/Pkgfile
blob: 282ba1868d701136034644eb0cac8100fb861b82 (plain)
    1 # Description:  Pack, ship and run any application as a lightweight container
    2 # URL:          http://www.docker.com/
    3 # Maintainer:   James Mills, prologic at shortcircuit dot net dot au
    4 #
    5 # Depends on:   go sqlite3 cgroupfs-mount
    6 
    7 name=docker
    8 version=1.3.1
    9 revision=4e9bbfa900
   10 release=2
   11 source=(
   12     https://raw.githubusercontent.com/dotcloud/docker/v${version}/contrib/check-config.sh
   13     https://github.com/dotcloud/$name/archive/v$version.tar.gz
   14     $name
   15     $name.conf
   16 )
   17 
   18 build() {
   19     cd $name-$version
   20 
   21     # Build
   22     export AUTO_GOPATH=1
   23     export DOCKER_GITCOMMIT=$revision
   24     unset CC   # The build fails with a customer C compiler (e.g: ccache)
   25     unset CXX  # The build fails with a customer C++ compiler (e.g: ccache)
   26     ./hack/make.sh dynbinary
   27 
   28     # Package
   29     install -D -m 755 $SRC/check-config.sh $PKG/usr/share/docker/check-config.sh
   30 
   31     install -D -m 755 "bundles/$version/dynbinary/docker-$version" \
   32         "$PKG/usr/bin/docker"
   33     install -D -m 755 "bundles/$version/dynbinary/dockerinit-$version" \
   34         "$PKG/usr/lib/docker/dockerinit"
   35     install -D -m 644 "contrib/udev/80-docker.rules" \
   36         "$PKG/etc/udev/rules.d/80-docker.rules"
   37 
   38     install -D -m 755 $SRC/$name $PKG/etc/rc.d/$name
   39     install -D -m 644 $SRC/$name.conf $PKG/etc/$name.conf
   40 
   41     chown -R root:root $PKG
   42 }

Generated by cgit