Initial import of libgpg-error 0.7

Libgpg-error is a small library with error codes and descriptions shared
by most GnuPG related software.
This commit is contained in:
sturm 2004-05-07 20:26:19 +00:00
parent d262f72421
commit cd1eac8912
9 changed files with 155 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# $OpenBSD: Makefile,v 1.1.1.1 2004/05/07 20:26:19 sturm Exp $
COMMENT= "error codes for GnuPG related software"
DISTNAME= libgpg-error-0.7
CATEGORIES= security devel
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/alpha/libgpg-error/ \
ftp://gd.tuwien.ac.at/privacy/gnupg/alpha/libgpg-error/ \
http://ftp.planetmirror.com/pub/gnupg/alpha/libgpg-error/ \
http://sunsite.dk/pub/security/gcrypt/alpha/libgpg-error/ \
http://ftp.linux.it/pub/mirrors/gnupg/alpha/libgpg-error/
MODULES= gettext
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (libgpg-error-0.7.tar.gz) = 5340fa28c365049c995996e8dc0f880c
RMD160 (libgpg-error-0.7.tar.gz) = 626404321a90da044114e1c07a66215468bb34e1
SHA1 (libgpg-error-0.7.tar.gz) = edc85d3ca11d72971d59024ef419b4a20d9dd8d7

View File

@ -0,0 +1,55 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2004/05/07 20:26:19 sturm Exp $
--- ltmain.sh.orig 2004-04-16 18:53:42.000000000 +0200
+++ ltmain.sh 2004-04-16 18:57:11.000000000 +0200
@@ -1775,10 +1775,6 @@ compiler."
continue
fi
- if test "$installed" = no; then
- notinst_deplibs="$notinst_deplibs $lib"
- need_relink=yes
- fi
if test -n "$old_archive_from_expsyms_cmds"; then
# figure out the soname
@@ -4577,40 +4573,6 @@ relink_command=\"$relink_command\""
# Exit here if they wanted silent mode.
test "$show" = ":" && exit 0
- echo "----------------------------------------------------------------------"
- echo "Libraries have been installed in:"
- for libdir in $libdirs; do
- echo " $libdir"
- done
- echo
- echo "If you ever happen to want to link against installed libraries"
- echo "in a given directory, LIBDIR, you must either use libtool, and"
- echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
- echo "flag during linking and do at least one of the following:"
- if test -n "$shlibpath_var"; then
- echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
- echo " during execution"
- fi
- if test -n "$runpath_var"; then
- echo " - add LIBDIR to the \`$runpath_var' environment variable"
- echo " during linking"
- fi
- if test -n "$hardcode_libdir_flag_spec"; then
- libdir=LIBDIR
- eval flag=\"$hardcode_libdir_flag_spec\"
-
- echo " - use the \`$flag' linker flag"
- fi
- if test -n "$admincmds"; then
- echo " - have your system administrator run these commands:$admincmds"
- fi
- if test -f /etc/ld.so.conf; then
- echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
- fi
- echo
- echo "See any operating system documentation about shared libraries for"
- echo "more information, such as the ld(1) and ld.so(8) manual pages."
- echo "----------------------------------------------------------------------"
exit 0
;;

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2004/05/07 20:26:19 sturm Exp $
--- src/Makefile.in.orig 2004-03-07 21:25:50.000000000 +0100
+++ src/Makefile.in 2004-04-17 16:39:31.000000000 +0200
@@ -191,11 +191,11 @@ libgpg_error_la_SOURCES = gpg-error.h ge
strsource.c strerror.c code-to-errno.c code-from-errno.c
-libgpg_error_la_LIBADD = @LTLIBINTL@
+libgpg_error_la_LIBADD =
bin_PROGRAMS = gpg-error
gpg_error_SOURCES = strsource-sym.c strerror-sym.c gpg-error.c
-gpg_error_LDADD = ./libgpg-error.la
+gpg_error_LDADD = ./libgpg-error.la $(LTLIBINTL)
subdir = src
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
@@ -650,10 +650,10 @@ mkerrcodes.h: Makefile mkerrcodes.awk
# It is correct to use $(CC_FOR_BUILD) here. We want to run the
# program at build time.
mkerrcodes: mkerrcodes.c mkerrcodes.h Makefile
- $(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $<
+ $(CC_FOR_BUILD) -I. -I$(srcdir) -o $@ $(srcdir)/mkerrcodes.c
code-from-errno.h: mkerrcodes Makefile
- ./$< | $(AWK) -f $(srcdir)/mkerrcodes2.awk >$@
+ ./mkerrcodes | $(AWK) -f $(srcdir)/mkerrcodes2.awk >$@
errnos-sym.h: Makefile mkstrtable.awk errnos.in
$(AWK) -f $(srcdir)/mkstrtable.awk -v textidx=2 -v nogettext=1 \

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_gpg-error-config_in,v 1.1.1.1 2004/05/07 20:26:19 sturm Exp $
--- src/gpg-error-config.in.orig 2004-04-17 16:26:41.000000000 +0200
+++ src/gpg-error-config.in 2004-04-17 16:27:40.000000000 +0200
@@ -65,7 +65,7 @@ while test $# -gt 0; do
if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/lib"; then
output="$output -L$libdir"
fi
- output="$output -lgpg-error"
+ output="$output -lgpg-error @LTLIBINTL@"
;;
*)
usage 1 1>&2

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-tests_Makefile_in,v 1.1.1.1 2004/05/07 20:26:19 sturm Exp $
--- tests/Makefile.in.orig 2004-03-07 21:25:50.000000000 +0100
+++ tests/Makefile.in 2004-04-17 16:28:14.000000000 +0200
@@ -175,7 +175,7 @@ PROGRAMS = $(noinst_PROGRAMS)
t_strerror_SOURCES = t-strerror.c
t_strerror_OBJECTS = t-strerror.$(OBJEXT)
-t_strerror_LDADD = $(LDADD)
+t_strerror_LDADD = $(LDADD) @LTLIBINTL@
t_strerror_DEPENDENCIES = ../src/libgpg-error.la
t_strerror_LDFLAGS =

View File

@ -0,0 +1,2 @@
Libgpg-error is a small library with error codes and descriptions shared
by most GnuPG related software.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2004/05/07 20:26:19 sturm Exp $
lib/libgpg-error.so.1.2
DYNLIBDIR(%D/lib)

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/05/07 20:26:19 sturm Exp $
bin/gpg-error
bin/gpg-error-config
include/gpg-error.h
lib/libgpg-error.a
lib/libgpg-error.la
share/aclocal/gpg-error.m4
share/locale/de/LC_MESSAGES/libgpg-error.mo
%%SHARED%%