Skip to content

Commit 577f55f

Browse files
committed
Empty project
Signed-off-by: Martin Sustrik <[email protected]>
0 parents  commit 577f55f

File tree

12 files changed

+395
-0
lines changed

12 files changed

+395
-0
lines changed

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
aclocal.m4
2+
autom4te.cache/
3+
compile
4+
config.guess
5+
config.sub
6+
configure
7+
depcomp
8+
install-sh
9+
ltmain.sh
10+
m4/*
11+
missing
12+
test-driver

AUTHORS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Full list of copyright holders:
2+
3+
Luca Barbato <[email protected]>
4+
Martin Lucina <[email protected]>
5+
Martin Sustrik <[email protected]>
6+
7+
* Future patches by this author are submitted under MIT/X11 license

COPYING

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
Permission is hereby granted, free of charge, to any person obtaining a copy
3+
of this software and associated documentation files (the "Software"),
4+
to deal in the Software without restriction, including without limitation
5+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
6+
and/or sell copies of the Software, and to permit persons to whom
7+
the Software is furnished to do so, subject to the following conditions:
8+
9+
The above copyright notice and this permission notice shall be included
10+
in all copies or substantial portions of the Software.
11+
12+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
15+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
17+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18+
IN THE SOFTWARE.
19+

Makefile.am

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
#
2+
# Copyright (c) 2015 Martin Sustrik All rights reserved.
3+
# Copyright (c) 2013 Luca Barbato
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"),
7+
# to deal in the Software without restriction, including without limitation
8+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
9+
# and/or sell copies of the Software, and to permit persons to whom
10+
# the Software is furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included
13+
# in all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21+
# IN THE SOFTWARE.
22+
23+
ACLOCAL_AMFLAGS = -I m4
24+
25+
################################################################################
26+
# mill library #
27+
################################################################################
28+
29+
millincludedir = $(includedir)
30+
millinclude_HEADERS = millsocks.h
31+
32+
lib_LTLIBRARIES = libmillsocks.la
33+
34+
libmill_la_SOURCES =
35+
36+
pkgconfigdir = $(libdir)/pkgconfig
37+
pkgconfig_DATA = millsocks.pc
38+
39+
libmill_la_LDFLAGS = -no-undefined -version-info @MILLSOCKS_LIBTOOL_VERSION@
40+
41+
################################################################################
42+
# automated tests #
43+
################################################################################
44+
45+
check_PROGRAMS =
46+
47+
LDADD = libmillsocks.la
48+
49+
TESTS = $(check_PROGRAMS)
50+
51+
################################################################################
52+
# additional packaging-related stuff #
53+
################################################################################
54+
55+
# Generate ChangeLog file from git.
56+
# Also, there's no git availabe when building from the source package and
57+
# thus no way to obtain package version. Therefore, package version is
58+
# saved into a file when building a source package.
59+
dist-hook:
60+
@if test -d "$(srcdir)/.git"; \
61+
then \
62+
echo Creating ChangeLog; \
63+
cd "$(top_srcdir)"; \
64+
(echo '# Generated by Makefile. Do not edit.'; echo; \
65+
./missing --run git log --decorate ) > ChangeLog.tmp; \
66+
mv -f ChangeLog.tmp $(top_distdir)/ChangeLog; \
67+
rm -f ChangeLog.tmp; \
68+
else \
69+
cp -f ChangeLog $(top_distdir)/ChangeLog || \
70+
echo Failed to generate ChangeLog >&2; \
71+
fi; \
72+
$(srcdir)/package_version.sh > $(distdir)/.version
73+
74+
EXTRA_DIST = \
75+
./abi_version.sh \
76+
./package_version.sh \
77+
./CMakeLists.txt
78+
79+
distclean-local:
80+
-rm -f config.h
81+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Millsocks: Socket library for libmill

abi_version.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/bin/sh
2+
3+
# Copyright (c) 2013 Luca Barbato
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"),
7+
# to deal in the Software without restriction, including without limitation
8+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
9+
# and/or sell copies of the Software, and to permit persons to whom
10+
# the Software is furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included
13+
# in all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21+
# IN THE SOFTWARE.
22+
23+
if [ ! -f millsocks.h ]; then
24+
echo "abi_version.sh: error: millsocks.h does not exist" 1>&2
25+
exit 1
26+
fi
27+
28+
CURRENT=`egrep '^#define +MILLSOCKS_VERSION_CURRENT +[0-9]+$' millsocks.h`
29+
REVISION=`egrep '^#define +MILLSOCKS_VERSION_REVISION +[0-9]+$' millsocks.h`
30+
AGE=`egrep '^#define +MILLSOCKS_VERSION_AGE +[0-9]+$' millsocks.h`
31+
32+
if [ -z "$CURRENT" -o -z "$REVISION" -o -z "$AGE" ]; then
33+
echo "abi_version.sh: error: could not extract version from millsocks.h" 1>&2
34+
exit 1
35+
fi
36+
37+
CURRENT=`echo $CURRENT | awk '{ print $3 }'`
38+
REVISION=`echo $REVISION | awk '{ print $3 }'`
39+
AGE=`echo $AGE | awk '{ print $3 }'`
40+
41+
case $1 in
42+
-libtool)
43+
printf '%s' "$CURRENT:$REVISION:$AGE"
44+
;;
45+
*)
46+
printf '%s' "$CURRENT.$REVISION.$AGE"
47+
;;
48+
esac
49+

autogen.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
autoreconf -ifv

configure.ac

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
#
2+
# Copyright (c) 2013 Luca Barbato
3+
# Copyright (c) 2015 Martin Sustrik All rights reserved.
4+
#
5+
# Permission is hereby granted, free of charge, to any person obtaining a copy
6+
# of this software and associated documentation files (the "Software"),
7+
# to deal in the Software without restriction, including without limitation
8+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
9+
# and/or sell copies of the Software, and to permit persons to whom
10+
# the Software is furnished to do so, subject to the following conditions:
11+
#
12+
# The above copyright notice and this permission notice shall be included
13+
# in all copies or substantial portions of the Software.
14+
#
15+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21+
# IN THE SOFTWARE.
22+
23+
################################################################################
24+
# Start the configuration phase. #
25+
################################################################################
26+
27+
AC_PREREQ([2.53])
28+
29+
AC_INIT([millsocks], [m4_esyscmd([./package_version.sh])],
30+
[[email protected]], [millsocks], [http://libmill.org/])
31+
AC_CONFIG_SRCDIR([millsocks.pc.in])
32+
AM_INIT_AUTOMAKE([1.6 foreign subdir-objects tar-ustar])
33+
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
34+
35+
AC_CANONICAL_HOST
36+
37+
################################################################################
38+
# Retrieve the versions. #
39+
################################################################################
40+
41+
AC_PROG_SED
42+
AC_PROG_AWK
43+
44+
MILL_ABI_VERSION=m4_esyscmd([./abi_version.sh])
45+
MILL_PACKAGE_VERSION=m4_esyscmd([./package_version.sh])
46+
MILL_LIBTOOL_VERSION=m4_esyscmd([./abi_version.sh -libtool])
47+
48+
AC_SUBST(MILLSOCKS_ABI_VERSION)
49+
AC_SUBST(MILLSOCKS_PACKAGE_VERSION)
50+
AC_SUBST(MILLSOCKS_LIBTOOL_VERSION)
51+
52+
AC_MSG_NOTICE([Millsocks package version: $MILLSOCKS_PACKAGE_VERSION])
53+
AC_MSG_NOTICE([Millsocks ABI version: $MILLSOCKS_ABI_VERSION])
54+
55+
################################################################################
56+
# Check the compilers. #
57+
################################################################################
58+
59+
AC_PROG_CC_C99
60+
AM_PROG_CC_C_O
61+
62+
################################################################################
63+
# --enable-debug #
64+
################################################################################
65+
66+
AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug],
67+
[Enable debugging information [default=no]])])
68+
69+
if test "x$enable_debug" = "xyes"; then
70+
# Override original optimisation level - last option specified wins.
71+
CFLAGS="$CFLAGS -g -O0"
72+
fi
73+
74+
################################################################################
75+
# Feature checks. #
76+
################################################################################
77+
78+
# SunOS has sockets in a separate library.
79+
AC_CHECK_LIB([socket], [socket])
80+
81+
################################################################################
82+
# Libtool #
83+
################################################################################
84+
85+
LT_INIT
86+
87+
################################################################################
88+
# Finish the configuration phase. #
89+
################################################################################
90+
91+
AC_CONFIG_MACRO_DIR([m4])
92+
93+
AC_OUTPUT([Makefile millsocks.pc])
94+
cp confdefs.h config.h
95+

libsocks.pc.in

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=@prefix@
2+
exec_prefix=@exec_prefix@
3+
libdir=@libdir@
4+
includedir=@includedir@
5+
6+
Name: millsocks
7+
Description: Socket library for libmill
8+
URL: http://libmill.org/
9+
Version: @MILLSOCKS_ABI_VERSION@
10+
Requires:
11+
Libs: -L${libdir} -lmillsocks @LIBS@
12+
Cflags: -I${includedir}

m4/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)