1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=libnss-gw-name-git
6 pkgdesc="Name Service Switch (NSS) module that resolves the name “gateway.localhost” to the IP of the current default gateway - git checkout"
8 url="http://www.joachim-breitner.de/projects#libnss-gw-name"
11 provides=(bnss-gw-name)
12 conflicts=(libnss-gw-name)
13 install=libnss-gw-name-git.install
15 _gitroot="git://git.nomeata.de/libnss-gw-name.git"
16 _gitname="libnss-gw-name"
20 msg "Connecting to GIT server...."
22 if [ -d ${_gitname} ]; then
23 cd ${_gitname} && git pull origin
24 msg "The local files are updated."
26 git clone ${_gitroot} ${_gitname}
29 msg "GIT checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "${srcdir}/${_gitname}-build"
33 git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
35 cd "${srcdir}/${_gitname}-build"
37 make DESTDIR="${pkgdir}/" install