mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-19 21:16:55 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
aefc6f441a | ||
![]() |
f2d93325e6 | ||
![]() |
5e1a782119 | ||
![]() |
4c9c8ed74c | ||
![]() |
6dc84320cc |
14
Makefile
14
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
|
||||
@@ -36,12 +37,13 @@ LIB_SRCS := \
|
||||
LIB_SRCS := $(patsubst %,src/%,$(LIB_SRCS))
|
||||
|
||||
LIB_GEN_SRCS := \
|
||||
man/md5.3 \
|
||||
man/md5.3bsd \
|
||||
src/hash/md5hl.c
|
||||
|
||||
LIB_INCLUDES := \
|
||||
bsd/err.h \
|
||||
bsd/getopt.h \
|
||||
bsd/inet.h \
|
||||
bsd/ip_icmp.h \
|
||||
bsd/random.h \
|
||||
bsd/queue.h \
|
||||
@@ -59,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)
|
||||
@@ -90,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
|
||||
@@ -128,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)
|
||||
|
||||
|
4
TODO
Normal file
4
TODO
Normal file
@@ -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.
|
35
include/bsd/inet.h
Normal file
35
include/bsd/inet.h
Normal file
@@ -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
|
||||
|
Reference in New Issue
Block a user