diff options
-rw-r--r-- | patch/Makefile | 27 | ||||
-rw-r--r-- | patch/patch.p5m | 21 |
2 files changed, 48 insertions, 0 deletions
diff --git a/patch/Makefile b/patch/Makefile new file mode 100644 index 0000000..063b901 --- /dev/null +++ b/patch/Makefile @@ -0,0 +1,27 @@ +include /usr/share/cibs/rules/ips.mk +include /usr/share/cibs/rules/archive.mk +include /usr/share/cibs/rules/autotools.mk +include /usr/share/cibs/rules/64.mk + +summary := Patch takes a patch file containing a difference listing produced \ + by the diff program and applies those differences to one \ + or more original files, producing patched versions. +license := GPL +license-file := COPYING + +prefix := /usr/gnu + +build-depends += \ + pkg:/compress/xz + + +name := patch +home := http://www.gnu.org/software/$(name)/ +version := 2.7 +archive := $(name)-$(version).tar.xz +download := http://ftp.gnu.org/gnu/$(name)/$(archive) +checksum := \ + md5:d443f9d9a7d1bf1715831883917699d9 \ + sha1:bcfbdaf75b77160c534571d696db5272b8e17207 \ + sha256:5c2c91fe41542962126f0be150aa4fa349485cf2edc0c7ea7dbc24cb817111ae \ + size:674544 diff --git a/patch/patch.p5m b/patch/patch.p5m new file mode 100644 index 0000000..0a366aa --- /dev/null +++ b/patch/patch.p5m @@ -0,0 +1,21 @@ +set name=pkg.fmri value=pkg:/text/gnu-$(name)@$(ips-version) +set name=pkg.summary value="$(summary)" +set name=info.upstream-url value="$(home)" +set name=info.source-url value="$(download)" + +license $(license-file) license=$(license) + +<transform file path=usr/gnu/bin/(.+) -> \ +emit link path=usr/bin/g%<1> target=../gnu/bin/%<1> > + +<transform file path=usr/gnu/share/man/man1/(.+) -> \ +emit link path=usr/share/man/man1/g%<1> target=../../../gnu/share/man/man1/%<1>> + +dir path=usr +dir path=usr/gnu +dir path=usr/gnu/bin +dir path=usr/gnu/share +dir path=usr/gnu/share/man +dir path=usr/gnu/share/man/man1 +file path=usr/gnu/bin/patch +file path=usr/gnu/share/man/man1/patch.1 |