libbsd: Branch 'master' - 5 commits
Guillem Jover
guillem at kemper.freedesktop.org
Sat Jul 26 12:52:49 PDT 2008
Makefile | 14 ++++++++------
TODO | 4 ++++
include/bsd/inet.h | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 47 insertions(+), 6 deletions(-)
New commits:
commit aefc6f441aa1ae51135fea33d25572e39222cce7
Author: Guillem Jover <guillem at hadrons.org>
Date: Sat Jul 26 22:42:39 2008 +0300
Do not include .gitignore in the dist tarball
diff --git a/Makefile b/Makefile
index 09a24d7..904d21b 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,7 @@ ChangeLog:
dist: ChangeLog
mkdir $(TAR_NAME)
cp -a include src man $(LIB_DIST) $(TAR_NAME)
- tar czf $(TAR_FILE) $(TAR_NAME)
+ tar czf $(TAR_FILE) --exclude=.gitignore $(TAR_NAME)
rm -rf $(TAR_NAME)
gpg -a -b $(TAR_FILE)
commit f2d93325e6d073681c55f6959bed3a172bc15989
Author: Guillem Jover <guillem at hadrons.org>
Date: Sat Jul 26 22:39:29 2008 +0300
Install md5.3 as md5.3bsd
This man page is pretty common in other source projects, so we use a
suffix to distinguish it.
diff --git a/Makefile b/Makefile
index 4759bcd..09a24d7 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ LIB_SRCS := \
LIB_SRCS := $(patsubst %,src/%,$(LIB_SRCS))
LIB_GEN_SRCS := \
- man/md5.3 \
+ man/md5.3bsd \
src/hash/md5hl.c
LIB_INCLUDES := \
@@ -61,7 +61,7 @@ LIB_MANS := \
fgetln.3 \
fmtcheck.3 \
setmode.3 \
- md5.3
+ md5.3bsd
LIB_MANS := $(patsubst %,man/%,$(LIB_MANS))
LIB_STATIC_OBJS := $(LIB_SRCS:%.c=%.o)
@@ -92,7 +92,7 @@ man: $(LIB_MANS)
%.o: %.c
$(CC) -o $@ $(MK_CFLAGS) $(CFLAGS) -c $<
-man/md5.3: man/mdX.3
+man/md5.3bsd: man/mdX.3
sed -e 's/mdX/md5/g' -e 's/mdY/md4/g' -e 's/MDX/MD5/g' $< > $@
src/hash/md5hl.c: src/hash/helper.c
commit 5e1a78211983e2547838ce3fd2dd607e0a320393
Author: Guillem Jover <guillem at hadrons.org>
Date: Sat Jul 26 22:36:14 2008 +0300
Add a TODO list
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..3a1e3dc
--- /dev/null
+++ b/TODO
@@ -0,0 +1,4 @@
+* Add more functions used by ported packages (check openssh).
+* Fix includes on man pages.
+* Add missing man pages.
+* Add a README.import file.
commit 4c9c8ed74c946338310a46cc41122b904d0b934d
Author: Guillem Jover <guillem at hadrons.org>
Date: Sat Jul 26 22:35:31 2008 +0300
Add a new header file to expose inet_net_pton prototype
diff --git a/Makefile b/Makefile
index 5f65d1d..4759bcd 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ LIB_GEN_SRCS := \
LIB_INCLUDES := \
bsd/err.h \
bsd/getopt.h \
+ bsd/inet.h \
bsd/ip_icmp.h \
bsd/random.h \
bsd/queue.h \
diff --git a/include/bsd/inet.h b/include/bsd/inet.h
new file mode 100644
index 0000000..d9a63a5
--- /dev/null
+++ b/include/bsd/inet.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2008 Guillem Jover
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote products
+ * derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+ * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+ * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#ifndef LIBBSD_INET_H
+#define LIBBSD_INET_H
+
+#include <stddef.h>
+
+int inet_net_pton(int af, const char *src, void *dst, siez_t size);
+
+#endif
+
commit 6dc84320cc267b5ed6c2e1de9e4b9d49e465dc54
Author: Guillem Jover <guillem at hadrons.org>
Date: Sat Jul 26 22:25:22 2008 +0300
Add a micro version part
diff --git a/Makefile b/Makefile
index da02e39..5f65d1d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,14 @@
LIB_NAME := libbsd
LIB_VERSION_MAJOR := 0
LIB_VERSION_MINOR := 0
-LIB_VERSION := $(LIB_VERSION_MAJOR).$(LIB_VERSION_MINOR)
+LIB_VERSION_MICRO := 1
+LIB_VERSION := $(LIB_VERSION_MAJOR).$(LIB_VERSION_MINOR).$(LIB_VERSION_MICRO)
LIB_PKGCONFIG := $(LIB_NAME).pc
LIB_STATIC := $(LIB_NAME).a
LIB_SHARED_SO := $(LIB_NAME).so
LIB_SONAME := $(LIB_SHARED_SO).$(LIB_VERSION_MAJOR)
-LIB_SHARED := $(LIB_SONAME).$(LIB_VERSION_MINOR)
+LIB_SHARED := $(LIB_SONAME).$(LIB_VERSION_MINOR).$(LIB_VERSION_MICRO)
TAR_NAME := $(LIB_NAME)-$(LIB_VERSION)
TAR_FILE := $(TAR_NAME).tar.gz
More information about the libbsd
mailing list