diff options
author | pav <pav@FreeBSD.org> | 2003-12-23 01:04:59 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2003-12-23 01:04:59 +0800 |
commit | 874b2845cf268894333ee48f80c64b06272db3c5 (patch) | |
tree | 885e4d23bba0bd733c0325d945f77156d74570af /devel | |
parent | 20c014c53f9d50029edb528a81683a4a5bb9b93c (diff) | |
download | freebsd-ports-gnome-874b2845cf268894333ee48f80c64b06272db3c5.tar.gz freebsd-ports-gnome-874b2845cf268894333ee48f80c64b06272db3c5.tar.zst freebsd-ports-gnome-874b2845cf268894333ee48f80c64b06272db3c5.zip |
Add safestr, a simple and safe string handling library for C.
PR: ports/56129
Submitted by: Robert Schlotterbeck <rws@suki.rs.tarrant.tx.us>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/safestr/Makefile | 53 | ||||
-rw-r--r-- | devel/safestr/distinfo | 1 | ||||
-rw-r--r-- | devel/safestr/files/patch-ltmain.sh | 15 | ||||
-rw-r--r-- | devel/safestr/pkg-descr | 19 | ||||
-rw-r--r-- | devel/safestr/pkg-plist | 4 |
6 files changed, 93 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index e75fa429cf00..4b3f065e9861 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1039,6 +1039,7 @@ SUBDIR += rudiments SUBDIR += rvi SUBDIR += rvm + SUBDIR += safestr SUBDIR += scandoc SUBDIR += scons SUBDIR += sdl12 diff --git a/devel/safestr/Makefile b/devel/safestr/Makefile new file mode 100644 index 000000000000..bcd901ae1be9 --- /dev/null +++ b/devel/safestr/Makefile @@ -0,0 +1,53 @@ +# Ports collection makefile for: safestr +# Date created: 28 Aug 2003 +# Whom: Robert Schlotterbeck <robert@rs.tarrant.tx.us> +# +# $FreeBSD$ +# + +PORTNAME= safestr +PORTVERSION= 0.9.5 +CATEGORIES= devel +MASTER_SITES= http://www.zork.org/software/ + +MAINTAINER= robert@rs.tarrant.tx.us +COMMENT= A string handling library for C + +LIB_DEPENDS= xxl.1:${PORTSDIR}/devel/xxl:install + +CONFIGURE_ARGS+= --with-xxl=${LOCALBASE} +GNU_CONFIGURE= yes +INSTALLS_SHLIB= yes + +MAN3= safestr.3 safestr_alloc.3 safestr_charat.3 safestr_clone.3 \ + safestr_compare.3 safestr_concatenate.3 safestr_convertarray.3 \ + safestr_create.3 safestr_delete.3 safestr_duplicate.3 \ + safestr_equal.3 safestr_free.3 safestr_insert.3 safestr_join.3 \ + safestr_length.3 safestr_makereadonly.3 safestr_memzero.3 \ + safestr_printf.3 safestr_reference.3 safestr_replace.3 \ + safestr_search.3 safestr_setmemfns.3 safestr_slice.3 safestr_strdup.3 \ + safestr_truncate.3 safestr_trust.3 + +MLINKS= safestr_charat.3 safestr_setcharat.3 \ + safestr_compare.3 safestr_ncompare.3 \ + safestr_create.3 SAFESTR_TEMP.3 \ + safestr_duplicate.3 safestr_copy.3 \ + safestr_free.3 safestr_release.3 \ + safestr_makereadonly.3 safestr_isreadonly.3 \ + safestr_printf.3 safestr_fprintf.3 \ + safestr_printf.3 safestr_sprintf.3 \ + safestr_search.3 safestr_find.3 \ + safestr_trust.3 safestr_untrust.3 \ + safestr_charat.3 safestr_setcharat_nonfatal.3 \ + safestr_concatenate.3 safestr_append.3 \ + safestr_create.3 SAFESTR_TEMP_TRUSTED.3 \ + safestr_duplicate.3 safestr_ncopy.3 \ + safestr_makereadonly.3 safestr_makewritable.3 \ + safestr_printf.3 safestr_vprintf.3 \ + safestr_printf.3 safestr_vfprintf.3 \ + safestr_printf.3 safestr_vsprintf.3 \ + safestr_search.3 safestr_nfind.3 \ + safestr_trust.3 safestr_istrusted.3 \ + safestr_charat.3 safestr_charat_nonfatal.3 + +.include <bsd.port.mk> diff --git a/devel/safestr/distinfo b/devel/safestr/distinfo new file mode 100644 index 000000000000..102ea3e15fb7 --- /dev/null +++ b/devel/safestr/distinfo @@ -0,0 +1 @@ +MD5 (safestr-0.9.5.tar.gz) = e4f10c2571ee81254066dd53f3ac9d03 diff --git a/devel/safestr/files/patch-ltmain.sh b/devel/safestr/files/patch-ltmain.sh new file mode 100644 index 000000000000..d95cb8218958 --- /dev/null +++ b/devel/safestr/files/patch-ltmain.sh @@ -0,0 +1,15 @@ +--- ltmain.sh.orig Fri Aug 29 13:31:36 2003 ++++ ltmain.sh Fri Aug 29 13:31:59 2003 +@@ -5425,10 +5425,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false ; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" diff --git a/devel/safestr/pkg-descr b/devel/safestr/pkg-descr new file mode 100644 index 000000000000..a6939b0b5884 --- /dev/null +++ b/devel/safestr/pkg-descr @@ -0,0 +1,19 @@ +Safe C String Library v0.9.6 (June 11, 2003) + +The goal of the SafeStr library is to provide a rich string-handling library +for C that has safe semantics yet interoperates with legacy library code in +a straightforward manner. Additionally, porting code that uses standard C +string handling should be straightforward. The library should work on all +modern Unix-like platforms, as well as any 32-bit Microsoft Windows OS. + +The overt security goals of the library are as follows: + + 1. Buffer overflows should not be possible when using the API. + 2. Format string problems should be impossible when using the API. + 3. The API should be capable of tracking whether strings are "trusted", + a la Perl's taint mode. + +The API is meant to provide rich functionality and be easy to use, all the while +improving security. + +WWW: http://www.zork.org/safestr/ diff --git a/devel/safestr/pkg-plist b/devel/safestr/pkg-plist new file mode 100644 index 000000000000..8df8a0229400 --- /dev/null +++ b/devel/safestr/pkg-plist @@ -0,0 +1,4 @@ +include/safestr.h +lib/libsafestr.a +lib/libsafestr.so +lib/libsafestr.so.0 |