Skip to content

Commit

Permalink
Debianization
Browse files Browse the repository at this point in the history
  • Loading branch information
algarcia committed Jun 8, 2017
1 parent 9f5caee commit 87a65dd
Show file tree
Hide file tree
Showing 9 changed files with 212 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
nautilus-share (0.8.1-1) experimental; urgency=low

* Initial release (Closes: #315229)

-- Aldy León <aldyl@nuta.cu> Fri, 26 May 2017 08:21:12 -0500
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
23 changes: 23 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Source: nautilus-share
Section: gnome
Priority: optional
Maintainer: Aldy Leon Garcia <algarcia@estudiantes.uci.cu>
Standards-Version: 3.9.6
Build-Depends: debhelper (>= 9),
dh-autoreconf,
intltool (>= 0.29),
libnautilus-extension-dev (>= 2.10.0),
debhelper (>=9),
autotools-dev

Package: nautilus-share
Architecture: any
Depends: apturl,
nautilus (>= 2.10),
netcat-openbsd,
${shlibs:Depends},${misc:Depends}
Suggests: samba (>= 3.0.27a)
Description: Nautilus extension to share folder using Samba
Nautilus Share allows you to quickly share a folder from
the GNOME Nautilus file manager without requiring root access.

56 changes: 56 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: nautilus-share
Upstream-Contact: Sebastien Estienne <sebastien.estienne@gmail.com>,
Federico Mena Quintero <federico@ximian.com>,
Chow Loong Jin <hyperair@debian.org>
Aldy Leon Garcia <algarcia@estudiantes.uci.cu>


Files: *
Copyright: 2017 Aldy Leon Garcia <algarcia@estudiantes.uci.cu>
License: GPL-3.0+

License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package 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.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".


Files: *
Copyright: Copyright 2005 Ethium, Inc.
License: GPL-2+

Files: debian/*
Copyright: Copyright 2007-2008, Thierry Randrianiriana <randrianiriana@gmail.com>
Copyright 2009, Chow Loong Jin <hyperair@gmail.com>
License: GPL-2+

License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package 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.
.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
.
On Debian systems, a full copy of this license can be found in
/usr/share/common-licenses/GPL-2
48 changes: 48 additions & 0 deletions debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/sh
# postinst script for nutilus share
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
configure)

cat > /etc/sudoers.d/sudopdbedit << EOF
# Allow all users to check Samba users updates without
# requiring user authentication.
ALL ALL=NOPASSWD: /usr/bin/pdbedit -L
EOF

chmod 440 /etc/sudoers.d/sudopdbedit
;;

abort-upgrade|abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
40 changes: 40 additions & 0 deletions debian/postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh
# postrm script for wihost
#
# see: dh_installdeb(1)

set -e

# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <overwriter>
# <overwriter-version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package


case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)

rm -f /etc/sudoers.d/sudopdbedit

;;

*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

exit 0
36 changes: 36 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/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

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed

override_dh_auto_install:
dh_auto_install
find debian/nautilus-share -name '*.*a' -delete

override_dh_auto_test:
# disable tests

override_dh_makeshlibs:
# disable shlibs

%:
dh $@ --with autotools_dev


# 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 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
2 changes: 2 additions & 0 deletions debian/watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=3
http://ftp.gnome.org/pub/GNOME/sources/nautilus-share/([0-9.]+)/ nautilus-share-([0-9.]+)\.tar\.bz2

0 comments on commit 87a65dd

Please sign in to comment.