Commit 74b2ee92 authored by Julien Muchembled's avatar Julien Muchembled

Initial Debian packaging

parent 444d0360
CFLAGS=-Wall
CFLAGS ?= -O2 -s
CFLAGS += -Wall -fPIC
LDLIBS = -ldl
PREFIX = /usr/local
all: libuserhosts.so
.PHONY: all install uninstall clean
libuserhosts.so: userhosts.c
gcc -ldl -shared -fPIC $(CFLAGS) $< -o $@
all: userhosts.so
userhosts.so: userhosts.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$@ $(LDLIBS) -o $@ $<
install: all
install -Dpm 0644 userhosts.so $(DESTDIR)$(PREFIX)/lib/userhosts/userhosts.so
uninstall:
-cd $(DESTDIR)$(PREFIX) && rm -f lib/userhosts/userhosts.so
clean:
-rm -f libuserhosts.so
userhosts (0.1-1) nexedi; urgency=low
* Initial release.
-- Julien Muchembled <jm@nexedi.com> Wed, 27 Aug 2014 15:11:48 +0200
Source: userhosts
Priority: optional
Maintainer: Julien Muchembled <jm@nexedi.com>
Build-Depends: debhelper (>= 8.0.0), gcc
Standards-Version: 3.9.5
Section: net
Homepage: http://git.erp5.org/gitweb/userhosts.git
Vcs-Git: http://git.erp5.org/repos/userhosts.git
Package: userhosts
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Redirect access to /etc/hosts to another file
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Files: *
Copyright: 2014 Vincent Pelletier <vincent@nexedi.com>
2014 Julien Muchembled <jm@nexedi.com>
License: LGPL-2.1+
License: LGPL-2.1+
This package is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 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
Lesser 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 <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU Lesser General
Public License can be found in "/usr/share/common-licenses/LGPL-2.1".
#!/usr/bin/make -f
# -*- makefile -*-
%:
dh $@
override_dh_auto_install:
dh_auto_install -- PREFIX=/usr
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment