threads / patch / 2072

patchFirst cut of a Cygwin package creation target.

Subject: [PATCH] First cut of a Cygwin package creation target.

## tl;dr

3 messages between Oct 11, 2005 and Oct 11, 2005. Diffs are folded; open one to read it.

replies: 2people: 2as markdown or json

Tim O Callaghan· Oct 11, 2005, 14:26 UTC · lore

The new make target 'cygwinpackage' creates dist tars based on the Cygwin package guidelines at:http://cygwin.com/setup.html

The tar packages when created are placed in the cygwin directory with the Cygwin setup specific setup.hint file, ready for distribution.

Signed-off-by: Tim O'Callaghan <timo@dspsrv.com>
---
 Makefile          |   20 ++++++++++++++++++++
 cygwin/setup.hint |   11 +++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
 mode change 100644 => 100755 Makefile
 create mode 100755 cygwin/setup.hint

applies-to: 2bab3caf63fc29f249c792289365abaf1cfa071b ba3be06048f361afc80baae30b00dd6e022386d0

Show changes to 2 files +31 −0

Makefile, cygwin/setup.hint

diff --git a/Makefile b/Makefile
old mode 100644
new mode 100755
index c31af7b..1a227ed
--- a/Makefile
+++ b/Makefile
@@ -441,6 +441,26 @@ deb: dist
        dpkg-source -b $(GIT_TARNAME)
        cd $(GIT_TARNAME) && fakeroot debian/rules binary

+unexport prefix
+export prefix=/
+export DESTDIR=/tmp/cygwin/usr
+cygwinpackage: all
+       strip -s *.exe
+       rm -f $(GIT_TARNAME)*.tar*
+       ./git-tar-tree HEAD $(GIT_TARNAME) > $(GIT_TARNAME)-src.tar
+       mkdir -p $(GIT_TARNAME)
+       cp README $(GIT_TARNAME)/git-core-$(GIT_VERSION).README
+       $(TAR) rf $(GIT_TARNAME).tar
$(GIT_TARNAME)/git-core-$(GIT_VERSION).README
+       @rm -rf $(GIT_TARNAME)
+       bzip2 $(GIT_TARNAME)-src.tar
+       rm -rf $(DESTDIR)
+       mkdir -p $(DESTDIR)/man/man1 $(DESTDIR)/man/man7
$(DESTDIR)/share/Cygwin
+       cp README $(DESTDIR)/share/Cygwin/git-core-$(GIT_VERSION).README
+       $(MAKE) install
+       $(MAKE) -C Documentation install
+       cd /tmp/cygwin; $(TAR) -jcf /tmp/$(GIT_TARNAME).tar.bz2 *
+       mv /tmp/$(GIT_TARNAME).tar.bz2 ./$(GIT_TARNAME)-src.tar.bz2 ./cygwin
+
 ### Cleaning rules

 clean:
diff --git a/cygwin/setup.hint b/cygwin/setup.hint
new file mode 100755
index 0000000..580eecc
--- /dev/null
+++ b/cygwin/setup.hint
@@ -0,0 +1,11 @@
+# git-core setup.hint - file required by cygwin package manager
+#
+# short description
+sdesc: "Git-core - SCM Developed for the Linux kernel"
+# long description
+ldesc: "Git-core - SCM Developed for the Linux kernel - now available to
the windows masses via the magic of Cygwin"
+# package category
+category: Archive Devel
+# dependencies
+requires: cygwin libiconv zlib openssl curl-devel diff merge ssh
+
---
0.99.8.GIT
Tim O Callaghan· Oct 11, 2005, 14:39 UTC · re: Tim O Callaghan · lore

Re: [PATCH] First cut of a Cygwin package creation target.

I should also mention that in my (probably misguided) enthusiasm for the Cygwin port, i proposed myself as the package maintainer on the cygwin-app list. If people don't think i'm gittish enough to handle it, i am more than happy let them take over. Otherwise i will attempt to go through the procedures needed to get it into the Cygwin distro.

For those interested, a copy of the generated Cygwin packages can be found at: http://www.dspsrv.com/~timo/

If there are no objections, i'll send them onto the Cygwin people sometime tomorrow.

Tim.
"Money can't buy friends, but it can get you a better class of enemy."
- Spike Milligan
Junio C Hamano· Oct 11, 2005, 22:48 UTC · re: Tim O Callaghan · lore

Re: [PATCH] First cut of a Cygwin package creation target.

"Tim O Callaghan" <timo@dspsrv.com> writes:
Show 5 quoted lines
> applies-to: 2bab3caf63fc29f249c792289365abaf1cfa071b
> ba3be06048f361afc80baae30b00dd6e022386d0
> diff --git a/Makefile b/Makefile
> old mode 100644
> new mode 100755
Is the mode change relevant to cygwin port?
Show 12 quoted lines
> index c31af7b..1a227ed
> --- a/Makefile
> +++ b/Makefile
> @@ -441,6 +441,26 @@ deb: dist
>         dpkg-source -b $(GIT_TARNAME)
>         cd $(GIT_TARNAME) && fakeroot debian/rules binary
>
> +unexport prefix
> +export prefix=/
> +export DESTDIR=/tmp/cygwin/usr
> +cygwinpackage: all
> ...

Are these environment-mucking supposed to be only effective while you are running cygwinpackage target, or are you breaking everybody else? I cannot offhand tell because your patch does not apply for me to try it out, after your MUA munged it.

← back to recent threads