Explorar el Código

Remove obsolete Debian package files

timvisee hace 7 años
padre
commit
7a1d95dfa0
Se han modificado 6 ficheros con 0 adiciones y 65 borrados
  1. 0 37
      pkg/create_deb
  2. 0 11
      pkg/deb/DEBIAN/control
  3. 0 7
      pkg/deb/DEBIAN/postinst
  4. 0 9
      pkg/deb/DEBIAN/prerm
  5. 0 1
      pkg/deb/blah.txt
  6. BIN
      pkg/deb/usr/bin/ffsend

+ 0 - 37
pkg/create_deb

@@ -1,37 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-# Ensure the version tag is valid
-if [[ ! $TRAVIS_TAG =~ ^v([0-9]+\.)*[0-9]+$ ]]; then
-    echo "Error: invalid Git tag in \$TRAVIS_TAG, must be in 'v0.0.0' format"
-    exit 1
-fi
-
-# Ensure the debian architecture is set
-if [[ -z "$DEB_ARCH" ]]; then
-    echo "Error: debian architecture not configured in \$DEB_ARCH"
-    exit 1
-fi
-
-# Define some useful variables
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-VERSION=${TRAVIS_TAG:1}
-
-# Ensure the binary file exists
-if [[ ! -f "$DIR/../ffsend" ]]; then
-    echo "Error: missing 'ffsend' binary in repository root"
-    exit 1
-fi
-
-# Copy the binary into the package directory
-mkdir -p $DIR/deb/usr/bin
-cp $DIR/../ffsend $DIR/deb/usr/bin/ffsend
-
-# Update version and architecture in the control file
-sed -i "/Version:\.*/c\\Version: $VERSION" $DIR/deb/DEBIAN/control
-sed -i "/Architecture:\.*/c\\Architecture: $DEB_ARCH" $DIR/deb/DEBIAN/control
-
-# Build the debian package
-echo "Building debian package..."
-dpkg-deb --verbose --build $DIR/deb .

+ 0 - 11
pkg/deb/DEBIAN/control

@@ -1,11 +0,0 @@
-Package: ffsend
-Version: TODO
-Section: utils
-Priority: standard
-Architecture: TODO
-Recommends: xclip
-Maintainer: Tim Visée <timvisee@gmail.com>
-Description: easily and securely share files from the CLI using Send
- Easily and securely share files from the command line.
- A fully featured Firefox Send client.
-Homepage: https://github.com/timvisee/ffsend

+ 0 - 7
pkg/deb/DEBIAN/postinst

@@ -1,7 +0,0 @@
-#!/usr/bin/env bash
-
-# Create an ffs alias
-if [[ ! -f /usr/bin/ffs ]]; then
-    echo "Creating ffs alias for ffsend..."
-    ln -s /usr/bin/ffsend /usr/bin/ffs
-fi

+ 0 - 9
pkg/deb/DEBIAN/prerm

@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-
-# Unlink the ffs alias if it links to ffsend
-if [[ -L /usr/bin/ffs ]] \
-    && [[ $(ls -l /usr/bin/ffs | sed -e 's/.* -> //') == "/usr/bin/ffsend" ]]; \
-then
-    echo "Removing ffs alias for ffsend..."
-    unlink /usr/bin/ffs
-fi

+ 0 - 1
pkg/deb/blah.txt

@@ -1 +0,0 @@
-Some file contents

BIN
pkg/deb/usr/bin/ffsend