diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-08-01 17:48:47 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2020-08-01 18:20:15 (EDT) |
commit | 822276704a60be901f191054685cffeaae99824e (patch) | |
tree | 8c7e29d223e5956e1286c169febef00b748d3fb6 |
Initial commit
-rw-r--r-- | .gitignore | 8 | ||||
-rwxr-xr-x | build | 9 | ||||
-rw-r--r-- | changelog | 5 | ||||
-rw-r--r-- | control | 2 | ||||
-rw-r--r-- | copyright | 20 | ||||
-rw-r--r-- | format | 1 | ||||
-rw-r--r-- | proquivs.pkg/control | 7 | ||||
-rw-r--r-- | proquivs.pkg/docs | 0 | ||||
-rwxr-xr-x | release | 13 | ||||
-rw-r--r-- | src/template.ctl | 19 |
10 files changed, 84 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e8832d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# Swap and backup files +.*.sw* +.sw* +*~ +Session.vim + +# Work area +tmp/ @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +nop build: + @: + +install: + install -D -m 0755 src/proquivs proquivs.data/usr/bin/proquivs + install -D -m 0644 src/template.ctl \ + proquivs.data/usr/share/proquivs/template.ctl diff --git a/changelog b/changelog new file mode 100644 index 0000000..f67057d --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +proquivs (1.0) trunk + + * Initial release. + + -- Patrick McDermott <patrick.mcdermott@libiquity.com> Sat, 01 Aug 2020 16:48:53 -0400 @@ -0,0 +1,2 @@ +Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com> +Build-Depends: opkbuild (>= 4.2.0) diff --git a/copyright b/copyright new file mode 100644 index 0000000..4ff6900 --- /dev/null +++ b/copyright @@ -0,0 +1,20 @@ +Distribution Packaging +====================== + +Copyright (C) 2020 Patrick McDermott + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. + +On this system, a copy of the GNU General Public License may be found at +<file:///usr/share/common-licenses/GPL-3>. @@ -0,0 +1 @@ +2.0 diff --git a/proquivs.pkg/control b/proquivs.pkg/control new file mode 100644 index 0000000..95a6d00 --- /dev/null +++ b/proquivs.pkg/control @@ -0,0 +1,7 @@ +Architecture: all +Platform: all +Section: dev +Depends: opkbuild, libopkbuild.2 +Description: Trivial package generator + proquivs is inspired by Debian's equivs package. It can generate and build + trivial packages, useful for testing dependency resolution. diff --git a/proquivs.pkg/docs b/proquivs.pkg/docs new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/proquivs.pkg/docs @@ -0,0 +1,13 @@ +#!/bin/sh + +set -eu + +read src ver <<-EOF + $(sed '1s/^\(.*\) (\(.*\)) .*$/\1 \2/; q;' changelog) + EOF + +sed '/^ -- .* /{ s/^\( -- .* \).*$/\1'"$(LC_ALL='POSIX' date \ + '+%a, %d %b %Y %H:%M:%S %z')"'/; :l; n; b l; };' changelog >changelog~ +mv changelog~ changelog +git commit -m "changelog: Release ${src} ${ver}" -- changelog +git tag "${src}/${ver}" HEAD diff --git a/src/template.ctl b/src/template.ctl new file mode 100644 index 0000000..6811dec --- /dev/null +++ b/src/template.ctl @@ -0,0 +1,19 @@ +Package: proquivs-dummy +# Source: <defaults to package name> +Version: 1.0 +# Architecture: all +# Platform: all +# Section: share +Maintainer: "J. Random Hacker" <jrandom@example.com> +# Essential: no +# Depends: +# Recommends: +# Suggests: +# Pre-Depends: +# Conflicts: +# Provides: +# Replaces: +Description: Trivial package for testing + This is a trivial package generated by proquivs. It should not be uploaded to + the ProteanOS package archive. +# Homepage: |