summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-05-31 14:57:50 -0400
committerMike Frysinger <vapier@gentoo.org>2008-05-31 17:07:30 -0400
commit943d765ffac619a11bc62b012f21b3523e117a03 (patch)
tree7e5a3a124eeda5e23478563e99c6ff57386edb51
parentimport rpm2targz-9.0 unmodified (diff)
downloadrpm2targz-943d765ffac619a11bc62b012f21b3523e117a03.tar.gz
rpm2targz-943d765ffac619a11bc62b012f21b3523e117a03.tar.bz2
rpm2targz-943d765ffac619a11bc62b012f21b3523e117a03.zip
add files to help with dist
Ignore generated files, document this new repository, and add a Makefile to build/install things for us. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--.gitignore2
-rw-r--r--Makefile34
-rw-r--r--rpm2targz.README.Gentoo10
3 files changed, 46 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..de33aee
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+rpm2tar
+rpmoffset
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3bb7473
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+CFLAGS += -Wall
+
+VER ?= 9999
+PV = 9.0.0.$(VER)g
+P = rpm2targz-$(PV)
+
+DESTDIR =
+prefix = /usr
+bindir = $(prefix)/bin
+dodir = install -m 755 -d
+dobin = install -m 755
+dosym = ln -sf
+
+all: rpmoffset rpm2tar
+rpm2tar: rpm2targz
+ $(dosym) $< $@
+
+clean:
+ rm -f *.o rpmoffset rpm2tar
+
+dist:
+ git archive --prefix=$(P)/ master | lzma > $(P).tar.lzma
+
+dist-live: clean
+ rm -rf $(P)
+ mkdir $(P)
+ cp `find . -maxdepth 1 -type f '!' -name .gitignore` $(P)
+
+install: rpmoffset
+ $(dodir) $(DESTDIR)$(bindir)
+ $(dobin) rpm2targz rpmoffset $(DESTDIR)$(bindir)
+ $(dosym) rpm2targz $(DESTDIR)$(bindir)/rpm2tar
+
+.PHONY: all clean install
diff --git a/rpm2targz.README.Gentoo b/rpm2targz.README.Gentoo
new file mode 100644
index 0000000..7344d5d
--- /dev/null
+++ b/rpm2targz.README.Gentoo
@@ -0,0 +1,10 @@
+We've accumulated too many patches/fixups/etc... to keep our sanity, so
+rpm2targz is now maintained in a git repo which we make releases from (so
+hopefully other distros can take advantage of things).
+
+You can find that repository here:
+http://git.overlays.gentoo.org/gitweb/?p=proj/rpm2targz.git;a=summary
+
+The versioning schema is simple. Just append '.0.#g' to the upstream version
+(which in this case is '9.0'). Increment the '#' over time. The 'g' is short
+for Gentoo. Awesome.