diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-06 07:24:15 (EST) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-01-06 07:38:46 (EST) |
commit | 86214520a76597ba1659273b0f4ed7f3dae1737a (patch) | |
tree | 95d50e9af2cd37a6095fbb445e15a1015ec6f358 |
Initial release
-rw-r--r-- | .gitignore | 10 | ||||
-rwxr-xr-x | build | 18 | ||||
-rw-r--r-- | changelog | 5 | ||||
-rw-r--r-- | control | 5 | ||||
-rw-r--r-- | format | 1 | ||||
-rwxr-xr-x | release | 13 | ||||
-rw-r--r-- | source.mk | 10 |
7 files changed, 62 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dd90d0e --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +# Vim swap and other dot files +.* +!.gitignore + +# Source archives +*-*.orig.tar.* +keyring.gpg + +# Work area +tmp/ @@ -0,0 +1,18 @@ +#!/usr/bin/make -f + +include ../source.mk + +nop: + @: + +build: + oh-autoconfigure + oh-autobuild + touch $@ + +install: build + oh-autoinstall + oh-fixperms + oh-strip + oh-installfiles + oh-shlibdeps diff --git a/changelog b/changelog new file mode 100644 index 0000000..cc982c4 --- /dev/null +++ b/changelog @@ -0,0 +1,5 @@ +smartmontools (7.2-1) trunk + + * Initial release. + + -- Patrick McDermott <patrick.mcdermott@libiquity.com> Wed, 06 Jan 2021 07:25:18 -0500 @@ -0,0 +1,5 @@ +Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com> +Build-Depends: + opkbuild (>= 4.2.1), + opkhelper-3.0 (>= 3.1.3), +Homepage: https://www.smartmontools.org/ @@ -0,0 +1 @@ +2.0 @@ -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/source.mk b/source.mk new file mode 100644 index 0000000..ce2f407 --- /dev/null +++ b/source.mk @@ -0,0 +1,10 @@ +upstream_sf_base = http://downloads.sourceforge.net/project/$(OPK_SOURCE) +upstream_path = $(OPK_SOURCE)/$(OPK_SOURCE_VERSION_UPSTREAM) +upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz +upstream_url = $(upstream_sf_base)/$(upstream_path)/$(upstream_archive) +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz + +$(source_archive): + wget -O '$@' '$(upstream_url)' + +source: $(source_archive) |