Skip to content

Commit 0effcf6

Browse files
committed
debian packaging: maintain in fish-shell tree
Imported from https://github.com/zanchey/fish-build/ Work on fish-shell#2020. Note that this is explicitly removed from `git archive` tarballs due to https://wiki.debian.org/UpstreamGuide#Pristine_Upstream_Source
1 parent a5fabc6 commit 0effcf6

File tree

11 files changed

+334
-0
lines changed

11 files changed

+334
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
/build_tools/osx_package_scripts/postinstall export-ignore
1919
/build_tools/make_pkg.sh export-ignore
2020
/build_tools/make_darcs_completions.fish export-ignore
21+
/debian/* export-ignore
2122

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8

debian/control

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Source: fish
2+
Section: shells
3+
Priority: extra
4+
Maintainer: ridiculous_fish <[email protected]>
5+
Uploaders: David Adam <[email protected]>, Siteshwar Vashisht <[email protected]>
6+
Build-Depends: debhelper (>= 8.0.0), libncurses5-dev, autoconf, autotools-dev, dh-autoreconf, gettext
7+
Standards-Version: 3.9.4
8+
Homepage: http://fishshell.com/
9+
Vcs-Git: git://github.com/fish-shell/fish-shell.git
10+
Vcs-Browser: https://github.com/fish-shell/fish-shell
11+
12+
Package: fish
13+
Architecture: any
14+
Depends: ${shlibs:Depends}, ${misc:Depends}, passwd (>= 4.0.3-10), bc, gettext-base, man-db
15+
Recommends: python (>=2.6), xsel (>=1.2.0)
16+
Description: friendly interactive shell
17+
Fish is a command-line shell for modern systems, focusing on user-friendliness,
18+
sensibility and discoverability in interactive use. The syntax is simple, but
19+
not POSIX compliant.
20+
21+
Package: fish-dbg
22+
Architecture: any
23+
Section: debug
24+
Priority: extra
25+
Depends: fish (= ${binary:Version}), ${misc:Depends}
26+
Description: debugging symbols for friendly interactive shell
27+
Fish is a command-line shell for modern systems, focusing on user-friendliness,
28+
sensibility and discoverability in interactive use. The syntax is simple, but
29+
not POSIX compliant.
30+
.
31+
This package contains the debugging symbols for fish.

debian/copyright

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
This work was packaged for Debian by David Adam <[email protected]>
2+
on Thu, 14 Jun 2012 20:33:34 +0800, based on work by James Vega
3+
4+
5+
It was downloaded from:
6+
7+
https://github.com/fish-shell/fish-shell
8+
9+
Upstream Authors:
10+
11+
Axel Liljencrantz
12+
ridiculous_fish
13+
14+
Copyright:
15+
16+
Copyright (C) 2005-2008 Axel Liljencrantz
17+
Copyright (C) 2011-2012 ridiculous_fish
18+
19+
License:
20+
21+
Copyright (C) 2005-2008 Axel Liljencrantz
22+
23+
This program is free software; you can redistribute it and/or modify
24+
it under the terms of the GNU General Public License version 2 as
25+
published by the Free Software Foundation.
26+
27+
This program is distributed in the hope that it will be useful,
28+
but WITHOUT ANY WARRANTY; without even the implied warranty of
29+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30+
GNU General Public License for more details.
31+
32+
You should have received a copy of the GNU General Public License
33+
along with this program; if not, write to the Free Software
34+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
35+
MA 02110-1301, USA.
36+
37+
On Debian systems, the complete text of the GNU General
38+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
39+
40+
Fish contains code under the BSD license, namely versions of the
41+
two functions strlcat and strlcpy, modified for use with wide
42+
character strings.
43+
44+
Copyright (c) 1998 Todd C. Miller <[email protected]>
45+
46+
Permission to use, copy, modify, and distribute this software for any
47+
purpose with or without fee is hereby granted, provided that the above
48+
copyright notice and this permission notice appear in all copies.
49+
50+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
51+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
52+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
53+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
54+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
55+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
56+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
57+
58+
The XSel command, written and copyrighted by Conrad Parker, is
59+
distributed together with, and used by fish. It is released under the MIT
60+
license.
61+
62+
It is Copyright (C) 2001 Conrad Parker <[email protected]>
63+
64+
Permission to use, copy, modify, distribute, and sell this software
65+
and its documentation for any purpose is hereby granted without fee,
66+
provided that the above copyright notice appear in all copies and that
67+
both that copyright notice and this permission notice appear in
68+
supporting documentation. No representations are made about the
69+
suitability of this software for any purpose. It is provided "as is"
70+
without express or implied warranty.
71+
72+
The xdgmime library, written and copyrighted by Red Hat, Inc, is used
73+
by the mimedb command, which is a part of fish. It is released under
74+
the LGPL license.
75+
76+
The copyright for the xdgmime-related files belong to the following people
77+
xdgmime.c
78+
Copyright (C) 2003,2004 Red Hat, Inc.
79+
Copyright (C) 2003,2004 Jonathan Blandford <[email protected]>
80+
81+
xdgmime.h
82+
Copyright (C) 2003 Red Hat, Inc.
83+
Copyright (C) 2003 Jonathan Blandford <[email protected]>
84+
85+
xdgmimealias.c, xdgmimealias.h
86+
Copyright (C) 2004 Red Hat, Inc.
87+
Copyright (C) 2004 Matthias Clasen <[email protected]>
88+
89+
xdgmimeglob.c, xdgmimeglob.h
90+
Copyright (C) 2003 Red Hat, Inc.
91+
Copyright (C) 2003 Jonathan Blandford <[email protected]>
92+
93+
xdgmimeint.c, xdgmimeint.h
94+
Copyright (C) 2003 Red Hat, Inc.
95+
Copyright (C) 2003 Jonathan Blandford <[email protected]>
96+
97+
xdgmimemagic.c, xdgmimemagic.h
98+
Copyright (C) 2003 Red Hat, Inc.
99+
Copyright (C) 2003 Jonathan Blandford <[email protected]>
100+
101+
xdgmimeparent.c, xdgmimeparent.h
102+
Copyright (C) 2004 Red Hat, Inc.
103+
Copyright (C) 2004 Matthias Clasen <[email protected]>
104+
105+
This library is free software; you can redistribute it and/or
106+
modify it under the terms of the GNU Lesser General Public
107+
License as published by the Free Software Foundation; either
108+
version 2 of the License, or (at your option) any later version.
109+
110+
This library is distributed in the hope that it will be useful,
111+
but WITHOUT ANY WARRANTY; without even the implied warranty of
112+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
113+
Lesser General Public License for more details.
114+
115+
You should have received a copy of the GNU Lesser General Public
116+
License along with this library; if not, write to the Free Software
117+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
118+
02110-1301, USA.
119+
120+
Fish contains code from the glibc library, namely the wcstok function
121+
in fallback.c. This code is licensed under the LGPL.
122+
123+
On Debian systems, the complete text of the GNU Lesser General
124+
Public License can be found in `/usr/share/common-licenses/LGPL'.
125+
126+
The Debian packaging is:
127+
128+
Copyright (C) 2005 James Vega <[email protected]>
129+
Copyright (C) 2012 David Adam <[email protected]>
130+
131+
and is licensed under the GPL version 2, see above.

debian/fish.doc-base

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Document: fish
2+
Title: Debian fish Manual
3+
Author: Axel Liljencrantz <[email protected]>
4+
Abstract: This guide documents fish, a shell
5+
geared towards interactive use.
6+
Section: Shells
7+
8+
Format: HTML
9+
Index: /usr/share/doc/fish/index.html
10+
Files: /usr/share/doc/fish/*.html
11+
12+

debian/menu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
?package(fish):needs="text" section="Applications/Shells"\
2+
title="fish" command="/usr/bin/fish"

debian/postinst

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#!/bin/sh
2+
# postinst script for fish
3+
#
4+
# see: dh_installdeb(1)
5+
6+
set -e
7+
8+
# summary of how this script can be called:
9+
# * <postinst> `configure' <most-recently-configured-version>
10+
# * <old-postinst> `abort-upgrade' <new version>
11+
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
12+
# <new-version>
13+
# * <postinst> `abort-remove'
14+
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
15+
# <failed-install-package> <version> `removing'
16+
# <conflicting-package> <version>
17+
# for details, see http://www.debian.org/doc/debian-policy/ or
18+
# the debian-policy package
19+
20+
add_shell() {
21+
if ! type add-shell > /dev/null 2>&1; then
22+
return
23+
fi
24+
25+
add-shell /usr/bin/fish
26+
}
27+
28+
case "$1" in
29+
configure)
30+
add_shell
31+
;;
32+
33+
abort-upgrade|abort-remove|abort-deconfigure)
34+
;;
35+
36+
*)
37+
echo "postinst called with unknown argument \`$1'" >&2
38+
exit 1
39+
;;
40+
esac
41+
42+
# dh_installdeb will replace this with shell code automatically
43+
# generated by other debhelper scripts.
44+
45+
#DEBHELPER#
46+
47+
exit 0

debian/postrm

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
# postrm script for fish
3+
#
4+
# see: dh_installdeb(1)
5+
6+
set -e
7+
8+
# summary of how this script can be called:
9+
# * <postrm> `remove'
10+
# * <postrm> `purge'
11+
# * <old-postrm> `upgrade' <new-version>
12+
# * <new-postrm> `failed-upgrade' <old-version>
13+
# * <new-postrm> `abort-install'
14+
# * <new-postrm> `abort-install' <old-version>
15+
# * <new-postrm> `abort-upgrade' <old-version>
16+
# * <disappearer's-postrm> `disappear' <overwriter>
17+
# <overwriter-version>
18+
# for details, see http://www.debian.org/doc/debian-policy/ or
19+
# the debian-policy package
20+
21+
22+
case "$1" in
23+
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
24+
;;
25+
26+
*)
27+
echo "postrm called with unknown argument \`$1'" >&2
28+
exit 1
29+
;;
30+
esac
31+
32+
# dh_installdeb will replace this with shell code automatically
33+
# generated by other debhelper scripts.
34+
35+
#DEBHELPER#
36+
37+
exit 0

debian/prerm

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#!/bin/sh
2+
# prerm script for fish
3+
#
4+
# see: dh_installdeb(1)
5+
6+
set -e
7+
8+
# summary of how this script can be called:
9+
# * <prerm> `remove'
10+
# * <old-prerm> `upgrade' <new-version>
11+
# * <new-prerm> `failed-upgrade' <old-version>
12+
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
13+
# * <deconfigured's-prerm> `deconfigure' `in-favour'
14+
# <package-being-installed> <version> `removing'
15+
# <conflicting-package> <version>
16+
# for details, see http://www.debian.org/doc/debian-policy/ or
17+
# the debian-policy package
18+
19+
remove_shell() {
20+
if ! type remove-shell > /dev/null 2>&1; then
21+
return
22+
fi
23+
24+
remove-shell /usr/bin/fish
25+
}
26+
27+
case "$1" in
28+
remove|deconfigure)
29+
remove_shell
30+
;;
31+
32+
upgrade|failed-upgrade)
33+
;;
34+
35+
*)
36+
echo "prerm called with unknown argument \`$1'" >&2
37+
exit 1
38+
;;
39+
esac
40+
41+
# dh_installdeb will replace this with shell code automatically
42+
# generated by other debhelper scripts.
43+
44+
#DEBHELPER#
45+
46+
exit 0

debian/rules

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
4+
# Uncomment this to turn on verbose mode.
5+
export DH_VERBOSE=1
6+
7+
# dpkg-dev 1.16.1 doesn't export buildflags
8+
# can be removed once on dh compat level 9
9+
DPKG_EXPORT_BUILDFLAGS = 1
10+
-include /usr/share/dpkg/buildflags.mk
11+
12+
%:
13+
dh $@ --with autotools-dev,autoreconf
14+
15+
override_dh_auto_install:
16+
dh_auto_install --destdir=debian/fish
17+
18+
override_dh_installdocs:
19+
dh_installdocs --link-doc=fish
20+
21+
override_dh_strip:
22+
dh_strip --dbg-package=fish-dbg
23+
24+
# Don't run tests; they don't work until fish is installed
25+
override_dh_auto_test:

0 commit comments

Comments
 (0)