Hi, I am maintaining the namenlos repostitory. The git repository is at repo.or.cz [1] and the httpup directory is at the webserver of my company [2]. Every time I update a port I have to update the httpup repository, too. So I was wondering, whether it would be possible to tell ports(8) to fetch the files from the git repository directly instead of doing all by myself. So I wrote a git driver for ports (attached) and some example configuration files for the namenlos and opt repositories (also attached).
What do you think? Imho it would be neat to get this driver into crux by default. bye richi (namenlos) [1] http://repo.or.cz/w/namenlos-ports.git [2] http://www.sti2.at/~richardp/ports/ -- quoting guide: http://www.xs4all.nl/~hanb/documents/quotingguide.html
#!/bin/sh # # /etc/ports/drivers/git: git driver script for ports(8) # OLDPWD=$PWD if [ $# -ne 1 ] then echo "usage: $0 <file>" exit 1 fi . $1 if [ ! -d $DESTINATION ] then # there was no initial clone git-clone $URL $DESTINATION cd $DESTINATION else # there was already a clone cd $DESTINATION git-fetch git-gc fi git-checkout $BRANCH cd $OLDPWD
URL=git://repo.or.cz/namenlos-ports.git BRANCH=origin/master DESTINATION=/usr/ports/namenlos
URL=git://crux.nu/ports/opt.git BRANCH=origin/2.4 DESTINATION=/usr/ports/opt
pgpbDPC5WzhBg.pgp
Description: PGP signature
_______________________________________________ crux-devel mailing list crux-devel@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux-devel