commit 01c54f0a828228550cd25044e4fbd2f302fc63d8 Author: Jay Larson Date: Tue Jul 24 18:29:50 2018 -0500 First check in diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b25f8c9 --- /dev/null +++ b/Makefile @@ -0,0 +1,124 @@ +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation here: +# (http://www.gnu.org/licenses/gpl-2.0.html) +# +# 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. + +# Some, but not all of variables are required. The following list +# describes the required variables: +# +# * URL: The main website of the upstream project +# * REPO: The location of the package on the source pacakge +# server. This might be one of core, main, dev, or +# perhaps others. +# * BRIEF: Short description, should be 50 chars or less +# * SNAPVER: This is the package version. When a package is +# changed, but no changes are made to the source code +# this value should be increased. This would include +# things like usher being modified, changes to default +# configuration files, file permissions, etc. +# * ARCHIVE: The default commands that set this variable should +# work in most cases, but in some cases it may need +# to be modified. This variable should contain the +# path to the source of the package (./SRC/filename) +# * TYPE: This is probably not really needed due to the +# ability of gnu tar to figure it out on its own. +# Should probably be removed at some point. +# * SRCDIR: This is the name of the source directory after the +# package source is extracted. The default command +# should in most cases set this automatically. +# * PATCHDIR: This directory should be ./SRC/patches and is +# required, whether or not patches are used. +# * VERSION: This should be set automatically based on the +# version string in the source directory and SNAPVER. +# The default command here should work in many cases, +# but certain packages may need to use a different +# method. +# +# Variables that aren't required: +# +# * ARCH: This should be populated for packages which contain +# compiled binaries. If it is not populated the ARCH +# will be set to 'noarch'. +# * DEPENDS: If any other packages are required for this package +# to function then they need to be listed here, +# preferably in alphabetical order. +# * BUILDDEPS: Any package beyond packages from the core repo +# need to be listed here. The idea is that we +# can automate building and testing packages +# from clean core systems. The core repo is +# intended to include only the base minimum +# packages which provide a functional system. +# * SRCPKG: By default this is populated automatically with +# the name of the package (current directory). If +# the source package is used to generate multiple +# packages then this variable should contain the +# name of the git repo that tracks the source. +# * DESC: This is to be used to provide a longer description +# of the package. + +ARCH = x86_64 +DEPENDS = dash,glibc +BUILDDEPS = gcc +SRCPKG = +URL = https://www.gnu.org/software/ed/ +REPO = main +BRIEF = GNU ed is a line-oriented text editor +DESC = GNU ed is a line-oriented text editor. It is used to create, display, \ +modify and otherwise manipulate text files, both interactively and via shell \ +scripts. +SNAPVER = 0 + +ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|lz|tar|xz)$$'|tail -1) +TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') +SRCDIR := $(shell tar -tf $(ARCHIVE)|head -1|sed 's/\/.*//') +PATCHDIR := $(PWD)/SRC/patches +VERSION := $(shell echo $(SRCDIR)|egrep -o '\-[0-9].*'|sed 's/^-//')-$(SNAPVER) + +include /usr/share/snap/Makefile.snaplinux + +$(SRCDIR)/configure: $(ARCHIVE) + tar -xf $(ARCHIVE) + @touch $(SRCDIR)/configure + +$(SRCDIR)/config.log: $(SRCDIR)/configure + @cd $(SRCDIR) && \ + for patch in `find $(PATCHDIR) -name \*.patch|sort`; do \ + patch --verbose -Np1 -i $$patch; \ + done + @cd $(SRCDIR); \ + ./configure \ + --prefix=/usr + +# binfile should be replaced with a file generated by the +# make process. It won't really break anything if not +# set to a valid file, but the source make process will +# be re-executed even if it isn't necessary + +$(SRCDIR)/binfile: $(SRCDIR)/config.log + @cd $(SRCDIR) && make + +$(ROOT): $(SRCDIR)/binfile + @if [ -d $(ROOT) ]; then \ + touch $(ROOT); \ + else \ + mkdir -v $(ROOT); \ + fi + + @cd $(SRCDIR) && make install DESTDIR=$(ROOT) + +test: $(ROOT) + @cd $(SRCDIR); \ + make check + +clean: + @rm -rvf $(ROOT) \ + $(SNAPINFO) \ + $(MANIFEST) \ + $(FILES) \ + $(SRCDIR) + diff --git a/SNAP/README b/SNAP/README new file mode 100644 index 0000000..cb756b1 --- /dev/null +++ b/SNAP/README @@ -0,0 +1,5 @@ +This is the directory where the manifest, snapinfo, +and files.tar.gz files will be created. It is also +where the usher file should be placed if it is +required by the package. Any other files that need +to be included could also be placed here. diff --git a/SNAP/files.tar.gz b/SNAP/files.tar.gz new file mode 100644 index 0000000..9ad0685 Binary files /dev/null and b/SNAP/files.tar.gz differ diff --git a/SNAP/manifest b/SNAP/manifest new file mode 100644 index 0000000..2b2df2e --- /dev/null +++ b/SNAP/manifest @@ -0,0 +1,11 @@ +cacecb6ffb26d7904aced9bef01cb782810e1483 lrwxrwxrwx usr/share/man/man1/red.1 +cacecb6ffb26d7904aced9bef01cb782810e1483 -rw-r--r-- usr/share/man/man1/ed.1.gz +________________________________________ drwxr-xr-x usr/share/man/man1 +________________________________________ drwxr-xr-x usr/share/man +8fa6077e93897710c8752f8d9b8ce6c9c5bf077d -rw-r--r-- usr/share/info/ed.info.gz +________________________________________ drwxr-xr-x usr/share/info +________________________________________ drwxr-xr-x usr/share +925ab52c2983ecda4a032580ee12a1820c24b22e -rwxr-xr-x usr/bin/red +6413ce70ca5efce5a824dffcbb8c97420e5251bf -rwxr-xr-x usr/bin/ed +________________________________________ drwxr-xr-x usr/bin +________________________________________ drwxr-xr-x usr diff --git a/SNAP/snapinfo b/SNAP/snapinfo new file mode 100644 index 0000000..095fb0b --- /dev/null +++ b/SNAP/snapinfo @@ -0,0 +1,12 @@ +name: ed +version: 1.14.2-0 +arch: x86_64 +depends: dash,glibc +builddeps: gcc +srcpkg: ed +bytes: 81920 +url: https://www.gnu.org/software/ed/ +repo: main +sha256man: 2df89f68f8cc6c75ec1fb8943789d717ac7b9c51b70993d9fbc16463c3d520f2 +brief: GNU ed is a line-oriented text editor +description: GNU ed is a line-oriented text editor. It is used to create, display, modify and otherwise manipulate text files, both interactively and via shell scripts. diff --git a/SRC/ed-1.14.2.tar.lz b/SRC/ed-1.14.2.tar.lz new file mode 100644 index 0000000..73f0caa Binary files /dev/null and b/SRC/ed-1.14.2.tar.lz differ diff --git a/SRC/ed-1.14.2.tar.lz.sig b/SRC/ed-1.14.2.tar.lz.sig new file mode 100644 index 0000000..d5318eb Binary files /dev/null and b/SRC/ed-1.14.2.tar.lz.sig differ diff --git a/SRC/patches/README b/SRC/patches/README new file mode 100644 index 0000000..976577a --- /dev/null +++ b/SRC/patches/README @@ -0,0 +1,3 @@ +Place any patch files here and preface each with a +number indicating the order of execution. Patch +files are expected to use a .patch extension.