aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-10-11 18:31:55 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-10-11 18:31:55 +0400
commit0d0a8948677cb29e2d99dc353f9ff71014fa9bac (patch)
treee187ebc79a23aa74db7e35700883c7f3bba341a7 /examples
parent903e59702659a69466e991fbcb2fdcc7b42837b9 (diff)
downloadcibs-0d0a8948677cb29e2d99dc353f9ff71014fa9bac.tar.gz
Added Git support
Diffstat (limited to 'examples')
-rw-r--r--examples/symlinks/Makefile30
-rw-r--r--examples/symlinks/symlinks.license21
-rw-r--r--examples/symlinks/symlinks.p5m10
3 files changed, 61 insertions, 0 deletions
diff --git a/examples/symlinks/Makefile b/examples/symlinks/Makefile
new file mode 100644
index 0000000..8387e76
--- /dev/null
+++ b/examples/symlinks/Makefile
@@ -0,0 +1,30 @@
+include /usr/share/cibs/rules/ips.mk
+include /usr/share/cibs/rules/git.mk
+include /usr/share/cibs/rules/32.mk
+
+
+summary := scan/change symbolic links
+license := PD-like
+license-file := symlinks.license
+
+home := http://packages.debian.org/source/sid/symlinks
+name := symlinks
+version := 1.4
+git-url := http://anonscm.debian.org/git/users/joachim-guest/symlinks.git
+
+# Tag, commit or branch. Passed to git checkout as is:
+# git checkout $(git-checkout)
+git-checkout := upstream/$(version)
+
+configure-%-stamp:
+ touch $@
+
+build-%-stamp: download-stamp
+ [ -d "$(builddir)" ] || mkdir -p "$(builddir)"
+ $(CC) $(CFLAGS) $(sourcedir)/symlinks.c -o $(builddir)/symlinks
+ touch $@
+
+install-%-stamp: build-%-stamp
+ mkdir -p $(destdir)/$(bindir)
+ cp $(builddir)/symlinks $(destdir)/$(bindir)
+ touch $@
diff --git a/examples/symlinks/symlinks.license b/examples/symlinks/symlinks.license
new file mode 100644
index 0000000..3d6574c
--- /dev/null
+++ b/examples/symlinks/symlinks.license
@@ -0,0 +1,21 @@
+Copyright (C) 2009 Mark Lord, freely distributable
+
+Hi,
+
+My "symlinks" utility pre-dates the "open source licensing" fad
+by a number of years. Just to clarify, this is 100% freeware,
+written entirely by myself. The intent is to use it to detect
+missing/obsolete symlink targets on an installed distro, before
+creating the "gold" (or "final") release discs.
+
+Use and distribute and modify as you (or anyone else) sees fit.
+There have no formal restrictions or requirements whatsoever
+regarding distribution of either binaries or source code,
+whether modified or original.
+
+Cheers
+--
+Mark Lord
+Real-Time Remedies Inc.
+mlord@pobox.com
+
diff --git a/examples/symlinks/symlinks.p5m b/examples/symlinks/symlinks.p5m
new file mode 100644
index 0000000..c0097a3
--- /dev/null
+++ b/examples/symlinks/symlinks.p5m
@@ -0,0 +1,10 @@
+set name=pkg.fmri value=pkg:/file/$(name)@$(ips-version)
+set name=pkg.summary value="$(summary)"
+set name=info.upstream-url value="$(home)"
+set name=info.source-url value="$(git-url)"
+
+license $(license-file) license=$(license)
+
+file path=usr/bin/symlinks
+file symlinks.8 path=usr/share/man/man8/symlinks.8
+