mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01:00
Introduce debian packaging
This commit is contained in:
parent
f326680cad
commit
a215997dcd
7
.gitignore
vendored
7
.gitignore
vendored
@ -3,3 +3,10 @@
|
|||||||
**/*.rs.bk
|
**/*.rs.bk
|
||||||
history.txt
|
history.txt
|
||||||
tests/fixtures/nuplayground
|
tests/fixtures/nuplayground
|
||||||
|
|
||||||
|
# Debian/Ubuntu
|
||||||
|
debian/.debhelper/
|
||||||
|
debian/debhelper-build-stamp
|
||||||
|
debian/files
|
||||||
|
debian/nu.substvars
|
||||||
|
debian/nu/
|
||||||
|
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
nu (0.2.0-1) unstable; urgency=low
|
||||||
|
|
||||||
|
* Initial release
|
||||||
|
|
||||||
|
-- Jan Koprowski <jan.koprowski@gmail.com> Wed, 04 Sep 2019 21:38:44 +0200
|
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
10
|
18
debian/control
vendored
Normal file
18
debian/control
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Source: nu
|
||||||
|
Section: shells
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Jan Koprowski <jan.koprowski@gmail.com>
|
||||||
|
Build-Depends: debhelper (>= 10)
|
||||||
|
Standards-Version: 4.1.2
|
||||||
|
Homepage: https://github.com/nushell/nushell
|
||||||
|
Vcs-Git: https://github.com/nushell/nushell.git
|
||||||
|
Vcs-Browser: https://github.com/nushell/nushell
|
||||||
|
|
||||||
|
Package: nu
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: A modern shell for the GitHub era
|
||||||
|
The goal of this project is to take the Unix
|
||||||
|
philosophy of shells, where pipes connect simple
|
||||||
|
commands together, and bring it to the modern
|
||||||
|
style of development.
|
32
debian/copyright
vendored
Normal file
32
debian/copyright
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: nu
|
||||||
|
Source: https://github.com/nushell/nushell
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 2019 Yehuda Katz
|
||||||
|
2019 Jonathan Turner
|
||||||
|
License: MIT
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2019 Yehuda Katz
|
||||||
|
2019 Jonathan Turner
|
||||||
|
License: MIT
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
to deal in the Software without restriction, including without limitation
|
||||||
|
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
Software is furnished to do so, subject to the following conditions:
|
||||||
|
.
|
||||||
|
The above copyright notice and this permission notice shall be included
|
||||||
|
in all copies or substantial portions of the Software.
|
||||||
|
.
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
debian/install
vendored
Normal file
1
debian/install
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
target/release/nu usr/bin
|
8
debian/postinst
vendored
Normal file
8
debian/postinst
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
if [ "$1" = configure ] && which add-shell >/dev/null
|
||||||
|
then
|
||||||
|
add-shell /usr/bin/nu
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
17
debian/postrm
vendored
Normal file
17
debian/postrm
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
upgrade|failed-upgrade|abort-install|abort-upgrade)
|
||||||
|
;;
|
||||||
|
remove|purge|disappear)
|
||||||
|
if which remove-shell >/dev/null && [ -f /etc/shells ]; then
|
||||||
|
remove-shell /usr/bin/nu
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "postrm called with unknown argument \`$1'" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
25
debian/rules
vendored
Executable file
25
debian/rules
vendored
Executable file
@ -0,0 +1,25 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# See debhelper(7) (uncomment to enable)
|
||||||
|
# output every command that modifies files on the build system.
|
||||||
|
#export DH_VERBOSE = 1
|
||||||
|
|
||||||
|
|
||||||
|
# see FEATURE AREAS in dpkg-buildflags(1)
|
||||||
|
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
|
||||||
|
# see ENVIRONMENT in dpkg-buildflags(1)
|
||||||
|
# package maintainers to append CFLAGS
|
||||||
|
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
|
||||||
|
# package maintainers to append LDFLAGS
|
||||||
|
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
||||||
|
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
|
||||||
|
# dh_make generated override targets
|
||||||
|
# This is example for Cmake (See https://bugs.debian.org/641051 )
|
||||||
|
#override_dh_auto_configure:
|
||||||
|
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
|
||||||
|
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
23
docker/Dockerfile.bionic
Normal file
23
docker/Dockerfile.bionic
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM ubuntu:18.04
|
||||||
|
|
||||||
|
# docker build -f docker/Dockerfile.bionic .
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
RUN apt-get update && apt-get install -y libssl-dev \
|
||||||
|
libxcb-composite0-dev \
|
||||||
|
libx11-dev \
|
||||||
|
pkg-config \
|
||||||
|
curl \
|
||||||
|
devscripts \
|
||||||
|
debhelper
|
||||||
|
|
||||||
|
WORKDIR /code
|
||||||
|
COPY ./rust-toolchain ./rust-toolchain
|
||||||
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain `cat rust-toolchain`
|
||||||
|
ENV PATH=/root/.cargo/bin:$PATH
|
||||||
|
COPY . /code
|
||||||
|
RUN rustc -Vv && cargo build --release
|
||||||
|
RUN debuild -b -us -uc -i
|
||||||
|
RUN dpkg -i ../nu_0.2.0-1_amd64.deb
|
||||||
|
RUN chsh -s /usr/bin/nu
|
||||||
|
RUN echo 'ls | get name | echo $it' | /usr/bin/nu
|
Loading…
Reference in New Issue
Block a user