mirror of
https://github.com/darlinghq/darling-libkqueue.git
synced 2024-11-26 21:20:38 +00:00
changes for deb package
git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@242 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
This commit is contained in:
parent
3ad4ebd7d7
commit
4f0e567487
10
Makefile
10
Makefile
@ -31,13 +31,16 @@ $(PROGRAM).a: $(OBJS)
|
||||
$(AR) rcs $(PROGRAM).a $(OBJS)
|
||||
|
||||
$(PROGRAM).so: $(OBJS)
|
||||
$(LD) $(LDFLAGS) -o $(PROGRAM).so $(OBJS) $(LDADD)
|
||||
$(LD) $(LDFLAGS) $(OBJS) $(LDADD)
|
||||
$(LN) -sf $(PROGRAM).so.$(ABI_VERSION) $(PROGRAM).so
|
||||
|
||||
install: $(PROGRAM).so
|
||||
$(INSTALL) -d -m 755 $(INCLUDEDIR)/kqueue/sys
|
||||
$(INSTALL) -m 644 include/sys/event.h $(INCLUDEDIR)/kqueue/sys/event.h
|
||||
$(INSTALL) -d -m 755 $(LIBDIR)
|
||||
$(INSTALL) -m 644 $(PROGRAM).so $(LIBDIR)
|
||||
$(INSTALL) -m 644 $(PROGRAM).so.$(ABI_VERSION) $(LIBDIR)
|
||||
$(LN) -sf $(PROGRAM).so.$(ABI_VERSION) $(LIBDIR)/$(PROGRAM).so.$(ABI_MAJOR)
|
||||
$(LN) -sf $(PROGRAM).so.$(ABI_VERSION) $(LIBDIR)/$(PROGRAM).so
|
||||
$(INSTALL) -m 644 $(PROGRAM).la $(LIBDIR)
|
||||
$(INSTALL) -m 644 $(PROGRAM).a $(LIBDIR)
|
||||
$(INSTALL) -d -m 755 $(LIBDIR)/pkgconfig
|
||||
@ -104,7 +107,7 @@ cscope: tags
|
||||
cscope $(SOURCES) $(HEADERS)
|
||||
|
||||
distclean: clean
|
||||
rm -f *.tar.gz *.deb *.rpm *.dsc *.changes \
|
||||
rm -f *.tar.gz *.deb *.rpm *.dsc *.changes *.diff.gz \
|
||||
config.mk config.h $(PROGRAM).pc $(PROGRAM).la rpm.spec
|
||||
rm -rf $(PROGRAM)-$(VERSION) 2>/dev/null || true
|
||||
|
||||
@ -121,6 +124,7 @@ rpm: clean $(DISTFILE)
|
||||
|
||||
deb: clean $(DISTFILE)
|
||||
tar zxf $(DISTFILE)
|
||||
cp $(DISTFILE) $(PROGRAM)_$(VERSION).orig.tar.gz
|
||||
mkdir $(PROGRAM)-$(VERSION)/debian
|
||||
cp ports/debian/* $(PROGRAM)-$(VERSION)/debian
|
||||
cd $(PROGRAM)-$(VERSION) && dpkg-buildpackage
|
||||
|
@ -1,6 +1,10 @@
|
||||
program="libkqueue"
|
||||
version="0.6"
|
||||
abi_major="0"
|
||||
abi_minor="0"
|
||||
abi_version="$abi_major.$abi_minor"
|
||||
cflags=""
|
||||
ldflags=""
|
||||
sources="src/common/filter.c src/common/knote.c
|
||||
src/common/kevent.c src/common/kqueue.c"
|
||||
libdepends=""
|
||||
|
10
configure
vendored
10
configure
vendored
@ -6,7 +6,8 @@ make_exports="program version target \
|
||||
prefix libdir includedir mandir \
|
||||
cflags ldflags ldadd libdepends \
|
||||
sources objs deps mans headers extra_dist subdirs \
|
||||
cc cpp ld ar install diff"
|
||||
abi_major abi_minor abi_version \
|
||||
cc cpp ld ln ar install diff"
|
||||
|
||||
required_headers=
|
||||
optional_headers=
|
||||
@ -63,6 +64,7 @@ process_env() {
|
||||
test -n "$CPPFLAGS" && cppflags="$CPPFLAGS"
|
||||
test -n "$CFLAGS" && cflags="$CFLAGS"
|
||||
test -n "$LD" && ld="$LD"
|
||||
test -n "$LN" && ld="$LN"
|
||||
test -n "$LDFLAGS" && ldflags="$LDFLAGS"
|
||||
test -n "$AR" && ar="$AR"
|
||||
}
|
||||
@ -171,7 +173,7 @@ check_linker() {
|
||||
# Appears to be a problem with GCC 4.0 and binutils
|
||||
#
|
||||
default_ld="$cc"
|
||||
ldflags="-shared -Wl,-soname,$program.so $ldflags"
|
||||
ldflags="-shared -Wl,-export-dynamic -Wl,-soname,$program.so.$abi_major -o $program.so.$abi_major.$abi_minor $ldflags"
|
||||
|
||||
finalize ld "$default_ld"
|
||||
echo "$ld"
|
||||
@ -261,6 +263,9 @@ check_diff
|
||||
|
||||
finalize program "$program"
|
||||
finalize version "$version"
|
||||
finalize abi_major "$abi_major"
|
||||
finalize abi_minor "$abi_minor"
|
||||
finalize abi_version "$abi_major.$abi_minor"
|
||||
finalize prefix "/usr/local"
|
||||
finalize libdir "${prefix}/lib"
|
||||
finalize includedir "${prefix}/include"
|
||||
@ -270,6 +275,7 @@ finalize libdepends "$libdepends"
|
||||
finalize ldadd ""
|
||||
finalize ldflags ""
|
||||
finalize deps ""
|
||||
finalize ln "`which ln`"
|
||||
|
||||
pre_configure_hook
|
||||
|
||||
|
@ -1,18 +1,16 @@
|
||||
Source: libkqueue
|
||||
Section: libs
|
||||
Priority: extra
|
||||
Maintainer: Mark Heily <mark@heily.com>
|
||||
Build-Depends: debhelper (>= 7)
|
||||
Standards-Version: 3.8.1
|
||||
Section: libs
|
||||
Standards-Version: 3.8.3
|
||||
Vcs-Svn: svn://mark.heily.com/libkqueue
|
||||
Homepage: http://mark.heily.com/libkqueue
|
||||
|
||||
Package: libkqueue
|
||||
Section: libs
|
||||
Package: libkqueue0
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: kqueue and kevent emulation for Linux
|
||||
|
||||
Description: cross-platform library for kernel event notification
|
||||
libkqueue is a portable userspace implementation of the kqueue(2)
|
||||
kernel event notification mechanism found in FreeBSD and other BSD-based
|
||||
operating systems. The library translates between the kevent structure
|
||||
@ -21,8 +19,8 @@ Description: kqueue and kevent emulation for Linux
|
||||
Package: libkqueue-dev
|
||||
Section: libdevel
|
||||
Architecture: any
|
||||
Depends: libkqueue (= ${binary:Version})
|
||||
Description: Development-related files for libkqueue
|
||||
Depends: libkqueue0 (= ${binary:Version})
|
||||
Description: Development files for libkqueue
|
||||
Contains the header files, manpages, and static libraries for use in
|
||||
developing applications that use the libkqueue library.
|
||||
.
|
||||
|
@ -1,3 +1,4 @@
|
||||
usr/lib/libkqueue.so
|
||||
usr/lib/pkgconfig/libkqueue.pc
|
||||
usr/lib/libkqueue.a
|
||||
usr/include/kqueue/sys/event.h
|
||||
|
@ -1 +0,0 @@
|
||||
usr/lib/libkqueue.so*
|
2
ports/debian/libkqueue0.files
Normal file
2
ports/debian/libkqueue0.files
Normal file
@ -0,0 +1,2 @@
|
||||
usr/lib/libkqueue.so.*
|
||||
usr/lib/libkqueue.so.*.*
|
Loading…
Reference in New Issue
Block a user