git-pasky debian dir
PATCH 1/1 git-pasky debian dir
After seeing the spec file, I had to do this:
You can get the binary here:
http://node1.wunjo.org/~jcorbin/git-pasky_0.6.3-1_i386.deb
alternatively you can pull from here:
rsync://node1.wunjo.org/git/git
It's against b31d16fad0013b3f106b227232559e24daf36962. It installs to /usr/bin, but I hacked things about so that *.sh goes
in /usr/share/git-pasky/scripts. Haven't had many people try it yet, but it works for me; this isn't exactly my first debian package, but if anyone sees any glaring issues with it, I'd love to hear about it.
debian/changelog new file +6 -0
@@ -0,0 +1,6 @@ +git-pasky (0.6.3-1) unstable; urgency=low + + * Saw the spec file, felt obliged ;) + + -- Joshua T. Corbin <[email protected]> Fri, 22 Apr 2005 00:17:03 -0400 +
debian/compat new file +1 -0
@@ -0,0 +1 @@ +4
debian/control new file +16 -0
@@ -0,0 +1,16 @@ +Source: git-pasky +Section: admin +Priority: optional +Maintainer: Joshua T. Corbin <[email protected]> +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: git-pasky +Architecture: any +Depends: ${shlibs:Depends} +Description: GIT - the stupid content tracker + GIT comes in two layers. The bottom layer is merely an extremely fast and + flexible filesystem-based database designed to store directory trees with + regard to their history. The top layer is a SCM-like tool which enables human + beings to work with the database in a manner to a degree similar to other SCM + tools (like CVS, BitKeeper or Monotone).
debian/copyright new file +367 -0
367 lines not on this page · raw message
debian/dirs new file +2 -0
@@ -0,0 +1,2 @@ +usr/bin +usr/sbin
debian/docs new file +3 -0
@@ -0,0 +1,3 @@ +README +README.reference +COPYING
debian/rules new file +66 -0
66 lines not on this page · raw message
debian/scriptdir.diff new file +82 -0
82 lines not on this page · raw message
Quoted 43 lines · * Joshua T. Corbin ([email protected]) wrote:
After seeing the spec file, I had to do this:
You can get the binary here:
http://node1.wunjo.org/~jcorbin/git-pasky_0.6.3-1_i386.debalternatively you can pull from here:
rsync://node1.wunjo.org/git/gitIt's against
b31d16fad0013b3f106b227232559e24daf36962. It installs to/usr/bin, but I hacked things about so that *.sh goes
in/usr/share/git-pasky/scripts. Haven't had many people try it yet, but it works for me; this isn't exactly my first debian package, but if anyone sees any glaring issues with it, I'd love to hear about it.debian/scriptdir.diff new file +26
-0@@ -0,0 +1,82 @@ +diff -u a/Makefile b/Makefile +--- a/Makefile 2005-04-22 00:59:22.000000000 -0400 ++++ b/Makefile 2005-04-22 00:59:43.000000000 -0400 +@@ -18,6 +18,7 @@ + prefix=$(HOME) + + bindir=$(prefix)/bin ++scriptdir=$(prefix)/share/git-pasky/scripts + + CC=gcc + AR=ar +@@ -28,11 +29,11 @@ + check-files ls-tree merge-base merge-cache unpack-file git-export \ + diff-cache convert-cache + +-SCRIPT= parent-id tree-id git gitXnormid.sh gitadd.sh gitaddremote.sh \ +- gitcommit.sh gitdiff-do gitdiff.sh gitlog.sh gitls.sh gitlsobj.sh \ +- gitmerge.sh gitpull.sh gitrm.sh gittag.sh gittrack.sh gitexport.sh \ +- gitapply.sh gitcancel.sh gitXlntree.sh commit-id gitlsremote.sh \ +- gitfork.sh gitinit.sh gitseek.sh gitstatus.sh gitpatch.sh \ ++BINSCRIPTS= parent-id tree-id git gitdiff-do commit-id ++SCRIPT= gitXnormid.sh gitadd.sh gitaddremote.sh gitcommit.sh gitdiff.sh \ ++ gitlog.sh gitls.sh gitlsobj.sh gitmerge.sh gitpull.sh gitrm.sh gittag.sh \ ++ gittrack.sh gitexport.sh gitapply.sh gitcancel.sh gitXlntree.sh \ ++ gitlsremote.sh gitfork.sh gitinit.sh gitseek.sh gitstatus.sh gitpatch.sh \ + gitmerge-file.sh
debian/scriptdir.diff line 36
Quoted 10 lines
debian/scriptdir.diff new file +10
-0+ + COMMON= read-cache.o +@@ -80,7 +81,9 @@ + + install: $(PROG) $(GEN_SCRIPT) + install -m755 -d $(DESTDIR)$(bindir) +- install $(PROG) $(SCRIPT) $(GEN_SCRIPT) $(DESTDIR)$(bindir) ++ install -m755 -d $(DESTDIR)$(scriptdir) ++ install $(PROG) $(BINSCRIPTS) $(DESTDIR)$(bindir) ++ install $(SCRIPT) $(GEN_SCRIPT) $(DESTDIR)$(scriptdir)
This whole bit should be formalized. Ideally, I'd like to do /usr/bin/git frontend, with all scripts in /usr/libexec/git/. However, this requires something more than hardcoding paths.
debian/scriptdir.diff line 48
Quoted 11 lines
debian/scriptdir.diff new file +11
-0+ clean: + rm -f *.o mozilla-sha1/*.o $(PROG) $(GEN_SCRIPT) $(LIB_FILE) +diff -u a/commit-id b/commit-id +--- a/commit-id 2005-04-22 00:59:22.000000000 -0400 ++++ b/commit-id 2005-04-22 01:02:40.000000000 -0400 +@@ -5,4 +5,4 @@ + # + # Takes the appropriate ID, defaults to HEAD. + +-gitXnormid.sh -c $1 ++/usr/share/git-pasky/scripts/gitXnormid.sh -c $1
like this...
debian/scriptdir.diff line 58
Quoted 10 lines
debian/scriptdir.diff new file +10
-0+Common subdirectories: a/contrib and b/contrib +Only in b: debian +diff -u a/git b/git +--- a/git 2005-04-22 00:59:22.000000000 -0400 ++++ b/git 2005-04-22 01:01:43.000000000 -0400 +@@ -17,6 +17,7 @@ + exit 1 + } + ++export PATH=/usr/share/git-pasky/scripts:$PATH
Or this...
debian/scriptdir.diff line 71
Quoted 12 lines
debian/scriptdir.diff new file +12
-0+ help () { + cat <<__END__ +Common subdirectories: a/mozilla-sha1 and b/mozilla-sha1 +diff -u a/parent-id b/parent-id +--- a/parent-id 2005-04-22 00:59:22.000000000 -0400 ++++ b/parent-id 2005-04-22 01:02:01.000000000 -0400 +@@ -7,6 +7,6 @@ + + PARENT="^parent [A-Za-z0-9]{40}$" + +-id=$(gitXnormid.sh -c $1) || exit 1 ++id=$(/usr/share/git-pasky/scripts/gitXnormid.sh -c $1) || exit 1
ditto...
debian/scriptdir.diff line 82
Quoted 10 lines
debian/scriptdir.diff new file +10
-0+ cat-file commit $id | egrep "$PARENT" | cut -d ' ' -f 2 +diff -u a/tree-id b/tree-id +--- a/tree-id 2005-04-22 00:59:22.000000000 -0400 ++++ b/tree-id 2005-04-22 01:00:40.000000000 -0400 +@@ -5,4 +5,4 @@ + # + # Takes ID of the appropriate commit, defaults to HEAD. + +-gitXnormid.sh $1 ++/usr/share/git-pasky/scripts/gitXnormid.sh $1
You get the idea ;-) I certainly see how it makes sense for a first run to get it going. But this will need fixing upstream.
thanks,
-chris
Signature · 1 line
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
Quoted 1 line · Chris Wright
This whole bit should be formalized.
Agreed, hence why I did it as a package-build-time patch instead of changing directly in my repository.
Quoted 2 lines
Ideally, I'd like to do
/usr/bin/gitfrontend, with all scripts in/usr/libexec/git/.
How standard is this '/usr/libexec'? I have no such directory on my Debian boxes. If /usr/share rubs you the wroung way, what of
simply /usr/lib/git-pasky?
Quoted 1 line
However, this requires something more than hardcoding paths.
Definately, and it may not play well with the simpler method of installing to $HOME/bin. This was just a quick hack as not to pollute /usr/bin with files that aren't directly executed by the user.
Quoted 2 lines
You get the idea ;-) I certainly see how it makes sense for a first run to get it going. But this will need fixing upstream.
This will all be moot when cogito goes the way of cg-* ;-)
Cheers,
Josh
Signature · 2 lines
Regards, Joshua T. Corbin <[email protected]>
Quoted 10 lines · * Joshua T. Corbin ([email protected]) wrote:
Quoted 1 line · Chris Wright
This whole bit should be formalized.
Agreed, hence why I did it as a package-build-time patch instead of changing directly in my repository.
Quoted 2 lines
Ideally, I'd like to do
/usr/bin/gitfrontend, with all scripts in/usr/libexec/git/.How standard is this '
/usr/libexec'? I have no such directory on my Debian boxes. If/usr/sharerubs you the wroung way, what of
simply/usr/lib/git-pasky?
Hrm, it's not in FHS, but it's certainly in use on my install:
$ find /usr/libexec | wc -l 122
I don't care too much, I imagine distros wind up customizing this anyway.
Quoted 4 lines
Quoted 1 line
However, this requires something more than hardcoding paths.
Definately, and it may not play well with the simpler method of installing to $HOME/bin. This was just a quick hack as not to pollute
/usr/binwith files that aren't directly executed by the user.
Yup, that's why I dropped 'em in /usr/local/bin for now.
Quoted 3 lines
Quoted 2 lines
You get the idea ;-) I certainly see how it makes sense for a first run to get it going. But this will need fixing upstream.
This will all be moot when cogito goes the way of cg-* ;-)
Hrm...good point.
thanks,
-chris
Signature · 1 line
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net