+Debian .deb packaging.
authorshort <>
Thu, 21 Aug 2003 11:31:33 +0000 (11:31 +0000)
committershort <>
Thu, 21 Aug 2003 11:31:33 +0000 (11:31 +0000)
12 files changed:
debian/changelog [new file with mode: 0644]
debian/configure-subst-x.patch [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/lufs.conffiles [new file with mode: 0644]
debian/lufs.dirs [new file with mode: 0644]
debian/lufs.docs [new file with mode: 0644]
debian/lufs.files [new file with mode: 0644]
debian/postinst [new file with mode: 0755]
debian/postrm [new file with mode: 0755]
debian/prerm [new file with mode: 0755]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..cd05844
--- /dev/null
@@ -0,0 +1,3 @@
+lufs (0.9.6) unstable; urgency=low
+  * See package ChangeLog entries.
+ -- Jan Kratochvil <pgp-44FC7632@jankratochvil.net>  Sun, 17 Aug 2003 14:16:59 +0200
diff --git a/debian/configure-subst-x.patch b/debian/configure-subst-x.patch
new file mode 100644 (file)
index 0000000..78fd95c
--- /dev/null
@@ -0,0 +1,14 @@
+--- configure-orig     Wed Aug 20 12:10:37 2003
++++ configure  Wed Aug 20 13:22:51 2003
+@@ -21590,6 +21590,11 @@
+   rm -f $tmp/stdin
+   if test x"$ac_file" != x-; then
+     mv $tmp/out $ac_file
++    for f in $ac_file_inputs; do
++      if test -x $f; then
++        chmod +x $ac_file
++      fi
++    done
+   else
+     cat $tmp/out
+     rm -f $tmp/out
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..43bdb29
--- /dev/null
@@ -0,0 +1,22 @@
+Source: lufs
+Section: base
+Priority: optional
+Maintainer: Jan Kratochvil <project-captive@jankratochvil.net>
+Build-Depends: debhelper (>> 3.0.0)
+ cvs2cl,
+ make,
+ autoconf,
+ libtool,
+ automake (>= 1.6),
+ gcc,
+ perl
+Standards-Version: 3.5.2
+
+Package: lufs
+Section: base
+Architecture: any
+Description: lufs - Linux Userland File System
+ LUFS is a hybrid userspace filesystem framework supporting many filesystems:
+ sshfs, ftpfs, localfs, locasefs, gvfs, cardfs, cefs, etc.  Lots of other 
+ "exotic" filesystems are in the planning phase: socketfs, httpfs, freenetfs
+ and others.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..9ce3eb2
--- /dev/null
@@ -0,0 +1,32 @@
+Author of lufs:
+               Florin Malita <mali@go.ro>
+
+Contributors:
+
+Martin Preuss <m_preuss@hamburg.de>    - cardfs, initial autotools port.
+Fedor Bezrukov <fedor@ms2.inr.ac.ru>   - cefs.
+Jaroslav Rohel <rohel@kn.vutbr.cz>     - Novell Netware FTP support.
+Timothee Besset <ttimo@idsoftware.com> - locasefs.
+David Wilson <>                               - rpm spec file.
+Zachary Bedell <aramis@adirondack.net> - Windows NT FTP support.
+Karen Pease <karen-pease@uiowa.edu>    - localfs comments.
+Valient Gough <vgough@pobox.com>       - root path fixes.
+Denys Duchier <>                       - restart interrupted syscalls fix.
+Eric Green <eric@badtux.org>           - large file support, various fixes.
+James Marsh <marshj@cs.man.ac.uk>      - fsync support
+Pierre-Frederic Caillaud <pfcaillaud@wanadoo.fr> - wavfs
+
+
+LUFS 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.
+
+LUFS 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, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
diff --git a/debian/lufs.conffiles b/debian/lufs.conffiles
new file mode 100644 (file)
index 0000000..43444dc
--- /dev/null
@@ -0,0 +1 @@
+/etc/lufsd.conf
diff --git a/debian/lufs.dirs b/debian/lufs.dirs
new file mode 100644 (file)
index 0000000..c993ed4
--- /dev/null
@@ -0,0 +1 @@
+/var/lib/lufs
diff --git a/debian/lufs.docs b/debian/lufs.docs
new file mode 100644 (file)
index 0000000..43e2a9d
--- /dev/null
@@ -0,0 +1,6 @@
+NEWS
+README
+TODO
+AUTHORS
+Contributors
+THANKS
diff --git a/debian/lufs.files b/debian/lufs.files
new file mode 100644 (file)
index 0000000..120d514
--- /dev/null
@@ -0,0 +1,14 @@
+/usr/share/lufs
+/etc/lufsd.conf
+/usr/bin/lufsd
+/usr/bin/lussh
+/usr/bin/lufsmount
+/usr/bin/lufsmnt
+/usr/bin/auto.sshfs
+/usr/bin/auto.ftpfs
+/usr/lib/lib*.so*
+/usr/man/man*/lufs*
+/usr/bin/lufsmnt-bin
+/usr/bin/lufsumount
+/usr/include/lufs
+/usr/lib/lib*.la
diff --git a/debian/postinst b/debian/postinst
new file mode 100755 (executable)
index 0000000..1cb71c8
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh
+# post-install script
+# Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
+# 
+# LUFS 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.
+# 
+# LUFS 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+ln -s /usr/bin/auto.sshfs /etc/auto.sshfs
+ln -s /usr/bin/auto.ftpfs /etc/auto.ftpfs
+ln -s /usr/bin/lufsd /sbin/mount.lufs
+depmod -aq
+
+exit 0
diff --git a/debian/postrm b/debian/postrm
new file mode 100755 (executable)
index 0000000..9c8f899
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh
+# post-remove script
+# Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
+# 
+# LUFS 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.
+# 
+# LUFS 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+depmod -aq
+rm -f /etc/auto.sshfs
+rm -f /etc/auto.ftpfs
+rm -f /sbin/mount.lufs
+
+exit 0
diff --git a/debian/prerm b/debian/prerm
new file mode 100755 (executable)
index 0000000..8223160
--- /dev/null
@@ -0,0 +1,23 @@
+#! /bin/sh
+# pre-remove script
+# Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
+# 
+# LUFS 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.
+# 
+# LUFS 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+rmmod 2>/dev/null lufs
+rm -f /var/lib/lufs/*.o
+
+exit 0
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..6f9a3e3
--- /dev/null
@@ -0,0 +1,98 @@
+#!/usr/bin/make -f
+# Makefile for Debian dpkg-buildpackage(1)
+# Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
+# 
+# LUFS 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.
+# 
+# LUFS 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+
+# Uncomment this to turn on verbose mode. 
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT=3
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+#ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+#      CFLAGS += -g
+#endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+       INSTALL_PROGRAM += -s
+endif
+
+config.status: configure.in
+       dh_testdir
+       aclocal
+       libtoolize --force
+       autoheader
+       automake --add-missing
+       autoconf
+       patch configure <debian/configure-subst-x.patch
+       ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
+
+build-arch:  config.status build-arch-stamp
+build-arch-stamp:
+       dh_testdir
+       $(MAKE)
+       touch build-arch-stamp
+
+build: build-arch
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp 
+       # Do not: -$(MAKE) distclean
+       # as we are run in clean distribution archive by AutoGen.pm
+       # Prevent diffing of autogenerated files.
+       # We will rebuild them all in 'build-arch' rule anyway.
+       echo find . -false $$(./autogen.pl cleanfilesfordir .|sed "s/.*/-o -name '&'/")|sh -|xargs rm -rf
+       dh_clean
+
+install: DH_OPTIONS=
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k
+       dh_installdirs
+       $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install-strip
+       dh_movefiles
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir -a
+       dh_testroot -a
+#      dh_installdebconf -a
+       dh_installdocs -a
+#      dh_installinit -a
+#      dh_installman -a
+#      dh_installchangelogs ChangeLog -a
+       dh_link -a
+       dh_compress -a
+       dh_fixperms -a
+       dh_makeshlibs -a
+       dh_installdeb -a
+       # '-X' as it fails on kernel modules:
+       dh_shlibdeps -a -X.o
+       dh_gencontrol -a
+       dh_md5sums -a
+       dh_builddeb -a
+
+binary: binary-arch
+.PHONY: build clean binary-arch binary install