1 |
qnikst 12/09/01 09:12:01 |
2 |
|
3 |
Added: libdkim.ver aclocal.m4 Makefile.in libdkim.pc.in |
4 |
configure.ac |
5 |
Log: |
6 |
adding libdkim ebuild, thanks to slepnoga #262919 |
7 |
|
8 |
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 mail-filter/libdkim/files/debianize/libdkim.ver |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/libdkim.ver?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/libdkim.ver?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: libdkim.ver |
17 |
=================================================================== |
18 |
{ |
19 |
global: DKIM*; |
20 |
local: *; |
21 |
}; |
22 |
|
23 |
|
24 |
|
25 |
1.1 mail-filter/libdkim/files/debianize/aclocal.m4 |
26 |
|
27 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/aclocal.m4?rev=1.1&view=markup |
28 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/aclocal.m4?rev=1.1&content-type=text/plain |
29 |
|
30 |
Index: aclocal.m4 |
31 |
=================================================================== |
32 |
# generated automatically by aclocal 1.9.6 -*- Autoconf -*- |
33 |
|
34 |
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
35 |
# 2005 Free Software Foundation, Inc. |
36 |
# This file is free software; the Free Software Foundation |
37 |
# gives unlimited permission to copy and/or distribute it, |
38 |
# with or without modifications, as long as this notice is preserved. |
39 |
|
40 |
# This program is distributed in the hope that it will be useful, |
41 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
42 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
43 |
# PARTICULAR PURPOSE. |
44 |
|
45 |
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- |
46 |
# |
47 |
# Copyright © 2004 Scott James Remnant <scott@××××××××.com>. |
48 |
# |
49 |
# This program is free software; you can redistribute it and/or modify |
50 |
# it under the terms of the GNU General Public License as published by |
51 |
# the Free Software Foundation; either version 2 of the License, or |
52 |
# (at your option) any later version. |
53 |
# |
54 |
# This program is distributed in the hope that it will be useful, but |
55 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
56 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
57 |
# General Public License for more details. |
58 |
# |
59 |
# You should have received a copy of the GNU General Public License |
60 |
# along with this program; if not, write to the Free Software |
61 |
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
62 |
# |
63 |
# As a special exception to the GNU General Public License, if you |
64 |
# distribute this file as part of a program that contains a |
65 |
# configuration script generated by Autoconf, you may include it under |
66 |
# the same distribution terms that you use for the rest of that program. |
67 |
|
68 |
# PKG_PROG_PKG_CONFIG([MIN-VERSION]) |
69 |
# ---------------------------------- |
70 |
AC_DEFUN([PKG_PROG_PKG_CONFIG], |
71 |
[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) |
72 |
m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) |
73 |
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl |
74 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
75 |
AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) |
76 |
fi |
77 |
if test -n "$PKG_CONFIG"; then |
78 |
_pkg_min_version=m4_default([$1], [0.9.0]) |
79 |
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) |
80 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
81 |
AC_MSG_RESULT([yes]) |
82 |
else |
83 |
AC_MSG_RESULT([no]) |
84 |
PKG_CONFIG="" |
85 |
fi |
86 |
|
87 |
fi[]dnl |
88 |
])# PKG_PROG_PKG_CONFIG |
89 |
|
90 |
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) |
91 |
# |
92 |
# Check to see whether a particular set of modules exists. Similar |
93 |
# to PKG_CHECK_MODULES(), but does not set variables or print errors. |
94 |
# |
95 |
# |
96 |
# Similar to PKG_CHECK_MODULES, make sure that the first instance of |
97 |
# this or PKG_CHECK_MODULES is called, or make sure to call |
98 |
# PKG_CHECK_EXISTS manually |
99 |
# -------------------------------------------------------------- |
100 |
AC_DEFUN([PKG_CHECK_EXISTS], |
101 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
102 |
if test -n "$PKG_CONFIG" && \ |
103 |
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then |
104 |
m4_ifval([$2], [$2], [:]) |
105 |
m4_ifvaln([$3], [else |
106 |
$3])dnl |
107 |
fi]) |
108 |
|
109 |
|
110 |
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) |
111 |
# --------------------------------------------- |
112 |
m4_define([_PKG_CONFIG], |
113 |
[if test -n "$PKG_CONFIG"; then |
114 |
if test -n "$$1"; then |
115 |
pkg_cv_[]$1="$$1" |
116 |
else |
117 |
PKG_CHECK_EXISTS([$3], |
118 |
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], |
119 |
[pkg_failed=yes]) |
120 |
fi |
121 |
else |
122 |
pkg_failed=untried |
123 |
fi[]dnl |
124 |
])# _PKG_CONFIG |
125 |
|
126 |
# _PKG_SHORT_ERRORS_SUPPORTED |
127 |
# ----------------------------- |
128 |
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], |
129 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) |
130 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
131 |
_pkg_short_errors_supported=yes |
132 |
else |
133 |
_pkg_short_errors_supported=no |
134 |
fi[]dnl |
135 |
])# _PKG_SHORT_ERRORS_SUPPORTED |
136 |
|
137 |
|
138 |
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], |
139 |
# [ACTION-IF-NOT-FOUND]) |
140 |
# |
141 |
# |
142 |
# Note that if there is a possibility the first call to |
143 |
# PKG_CHECK_MODULES might not happen, you should be sure to include an |
144 |
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac |
145 |
# |
146 |
# |
147 |
# -------------------------------------------------------------- |
148 |
AC_DEFUN([PKG_CHECK_MODULES], |
149 |
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl |
150 |
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl |
151 |
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl |
152 |
|
153 |
pkg_failed=no |
154 |
AC_MSG_CHECKING([for $1]) |
155 |
|
156 |
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) |
157 |
_PKG_CONFIG([$1][_LIBS], [libs], [$2]) |
158 |
|
159 |
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS |
160 |
and $1[]_LIBS to avoid the need to call pkg-config. |
161 |
See the pkg-config man page for more details.]) |
162 |
|
163 |
if test $pkg_failed = yes; then |
164 |
_PKG_SHORT_ERRORS_SUPPORTED |
165 |
if test $_pkg_short_errors_supported = yes; then |
166 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` |
167 |
else |
168 |
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` |
169 |
fi |
170 |
# Put the nasty error message in config.log where it belongs |
171 |
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD |
172 |
|
173 |
ifelse([$4], , [AC_MSG_ERROR(dnl |
174 |
[Package requirements ($2) were not met: |
175 |
|
176 |
$$1_PKG_ERRORS |
177 |
|
178 |
Consider adjusting the PKG_CONFIG_PATH environment variable if you |
179 |
installed software in a non-standard prefix. |
180 |
|
181 |
_PKG_TEXT |
182 |
])], |
183 |
[AC_MSG_RESULT([no]) |
184 |
$4]) |
185 |
elif test $pkg_failed = untried; then |
186 |
ifelse([$4], , [AC_MSG_FAILURE(dnl |
187 |
[The pkg-config script could not be found or is too old. Make sure it |
188 |
is in your PATH or set the PKG_CONFIG environment variable to the full |
189 |
path to pkg-config. |
190 |
|
191 |
_PKG_TEXT |
192 |
|
193 |
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])], |
194 |
[$4]) |
195 |
else |
196 |
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS |
197 |
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS |
198 |
AC_MSG_RESULT([yes]) |
199 |
ifelse([$3], , :, [$3]) |
200 |
fi[]dnl |
201 |
])# PKG_CHECK_MODULES |
202 |
|
203 |
|
204 |
|
205 |
|
206 |
1.1 mail-filter/libdkim/files/debianize/Makefile.in |
207 |
|
208 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/Makefile.in?rev=1.1&view=markup |
209 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/Makefile.in?rev=1.1&content-type=text/plain |
210 |
|
211 |
Index: Makefile.in |
212 |
=================================================================== |
213 |
# libdkim makefile for UNIX |
214 |
# |
215 |
srcdir = @srcdir@ |
216 |
VPATH = @srcdir@ |
217 |
|
218 |
prefix = @prefix@ |
219 |
exec_prefix = @exec_prefix@ |
220 |
bindir = @bindir@ |
221 |
libdir = @libdir@ |
222 |
includedir = @includedir@ |
223 |
|
224 |
OBJEXT = @OBJEXT@ |
225 |
LIBS = @LIBS@ @libcrypto_LIBS@ |
226 |
|
227 |
CC = @CC@ |
228 |
CXX = @CXX@ |
229 |
|
230 |
CFLAGS = @CFLAGS@ |
231 |
CXXFLAGS = @CXXFLAGS@ |
232 |
CPPFLAGS = @CPPFLAGS@ |
233 |
|
234 |
INCL = |
235 |
LDFLAGS = @LDFLAGS@ |
236 |
|
237 |
libdkim_SOURCES = dkim.cpp dns.cpp dkimbase.cpp dkimsign.cpp dkimverify.cpp |
238 |
HEADERS = dkim.h dns.h dkimbase.h dkimsign.h dkimverify.h |
239 |
|
240 |
libdkim_OBJS = $(libdkim_SOURCES:.cpp=.$(OBJEXT)) |
241 |
libdkim_PURE_OBJS = $(libdkim_SOURCES:.cpp=.p$(OBJEXT)) |
242 |
|
243 |
libdkimtest_SOURCES = libdkimtest.cpp |
244 |
libdkimtest_OBJS = libdkimtest.$(OBJEXT) |
245 |
|
246 |
SHLIBFORLINK = libdkim.so |
247 |
SHLIBSONAME = $(SHLIBFORLINK).$(SHLIBMAJOR) |
248 |
SHLIBTARGET = $(SHLIBFORLINK) |
249 |
SHLIBLINK = $(CXX) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -Wl,-version-script=libdkim.ver |
250 |
SHLIBMAJOR = 1d |
251 |
SHLIBMINOR = 1 |
252 |
SHLIBFILE = $(SHLIBSONAME).$(SHLIBMINOR) |
253 |
SHLIBCFLAGS = -fPIC |
254 |
|
255 |
ARFLAGS = crs |
256 |
|
257 |
TARGETS = libdkim.a $(SHLIBTARGET) libdkimtest |
258 |
|
259 |
all: $(TARGETS) |
260 |
|
261 |
libdkim.a: $(libdkim_OBJS) |
262 |
-rm -f $@ |
263 |
$(AR) $(ARFLAGS) $@ $(libdkim_OBJS) |
264 |
|
265 |
$(SHLIBFORLINK): $(libdkim_PURE_OBJS) |
266 |
$(SHLIBLINK) -o $@ $(libdkim_PURE_OBJS) $(LIBS) |
267 |
-mkdir .lib 2>/dev/null |
268 |
[ -z "$(SHLIBSONAME)" ] || (cd .lib \ |
269 |
&& ln -sf ../$(SHLIBFORLINK) $(SHLIBSONAME)) |
270 |
|
271 |
libdkimtest: $(libdkimtest_OBJS) $(SHLIBFORLINK) |
272 |
$(CXX) ${LDFLAGS} -L. -o $@ libdkimtest.o -ldkim $(LIBS) |
273 |
|
274 |
libdkimtest.o: $(libdkimtest_SOURCES) $(HDRS) |
275 |
$(CXX) $(CXXFLAGS) -o $@ -c $< |
276 |
|
277 |
%.$(OBJEXT): %.cpp $(HDRS) |
278 |
$(CXX) $(CXXFLAGS) -o $@ -c $< |
279 |
|
280 |
%.p$(OBJEXT): %.cpp $(HDRS) |
281 |
$(CXX) $(SHLIBCFLAGS) $(CXXFLAGS) -o $@ -c $< |
282 |
|
283 |
clean: |
284 |
-rm -f *.$(OBJEXT) *.p$(OBJEXT) $(TARGETS) |
285 |
-rm -rf .lib |
286 |
|
287 |
distclean: clean |
288 |
-rm -f config.status config.log Makefile libdkim.pc |
289 |
|
290 |
install: all |
291 |
install -m 755 -d $(DESTDIR)$(libdir) |
292 |
install -m 755 -d $(DESTDIR)$(libdir)/pkgconfig |
293 |
install -m 755 -d $(DESTDIR)$(includedir) |
294 |
install -m 644 libdkim.a $(DESTDIR)$(libdir) |
295 |
install -m 755 $(SHLIBFORLINK) $(DESTDIR)$(libdir)/$(SHLIBFILE) |
296 |
[ -z "$(SHLIBSONAME)" ] \ |
297 |
|| (cd $(DESTDIR)$(libdir) \ |
298 |
&& ln -sf $(SHLIBFILE) $(SHLIBSONAME) \ |
299 |
&& ln -sf $(SHLIBFILE) $(SHLIBFORLINK) ) |
300 |
install -m 644 $(srcdir)/dkim.h $(DESTDIR)$(includedir) |
301 |
install -m 644 libdkim.pc $(DESTDIR)$(libdir)/pkgconfig |
302 |
install -m 755 -d $(DESTDIR)$(bindir) |
303 |
install -m 755 libdkimtest $(DESTDIR)$(bindir) |
304 |
|
305 |
.PHONY: all install clean distclean |
306 |
|
307 |
|
308 |
|
309 |
1.1 mail-filter/libdkim/files/debianize/libdkim.pc.in |
310 |
|
311 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/libdkim.pc.in?rev=1.1&view=markup |
312 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/libdkim.pc.in?rev=1.1&content-type=text/plain |
313 |
|
314 |
Index: libdkim.pc.in |
315 |
=================================================================== |
316 |
prefix=@prefix@ |
317 |
exec_prefix=@exec_prefix@ |
318 |
libdir=@libdir@ |
319 |
includedir=@includedir@ |
320 |
|
321 |
Name: @PACKAGE_NAME@ |
322 |
Description: DomainKeys Identified Mail library from Alt-N Inc. |
323 |
Version: @PACKAGE_VERSION@ |
324 |
Requires.private: libcrypto |
325 |
Libs: -L${libdir} -ldkim |
326 |
Libs.private: @LIBS@ |
327 |
Cflags: -I${includedir} |
328 |
|
329 |
|
330 |
|
331 |
1.1 mail-filter/libdkim/files/debianize/configure.ac |
332 |
|
333 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/configure.ac?rev=1.1&view=markup |
334 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/libdkim/files/debianize/configure.ac?rev=1.1&content-type=text/plain |
335 |
|
336 |
Index: configure.ac |
337 |
=================================================================== |
338 |
# -*- Autoconf -*- |
339 |
# Process this file with autoconf to produce a configure script. |
340 |
|
341 |
AC_PREREQ(2.61) |
342 |
AC_INIT(libdkim, 1.0.21) |
343 |
AC_CONFIG_SRCDIR([dkim.cpp]) |
344 |
##AC_CONFIG_HEADER([config.h]) |
345 |
|
346 |
# Checks for programs. |
347 |
AC_PROG_CXX |
348 |
PKG_PROG_PKG_CONFIG |
349 |
|
350 |
# Checks for libraries. |
351 |
#AC_CHECK_LIB([crypto], [PEM_read_PrivateKey]) |
352 |
PKG_CHECK_MODULES([libcrypto], [libcrypto]) |
353 |
AC_SEARCH_LIBS([res_query], [resolv c],, |
354 |
[AC_SEARCH_LIBS(__res_query,resolv bind)]) |
355 |
|
356 |
# Checks for header files. |
357 |
AC_HEADER_RESOLV |
358 |
AC_HEADER_STDC |
359 |
AC_CHECK_HEADERS([netdb.h netinet/in.h inttypes.h stdlib.h string.h]) |
360 |
|
361 |
# Checks for typedefs, structures, and compiler characteristics. |
362 |
AC_HEADER_STDBOOL |
363 |
AC_C_CONST |
364 |
AC_C_INLINE |
365 |
AC_HEADER_TIME |
366 |
AC_TYPE_UINT16_T |
367 |
AC_TYPE_UINT32_T |
368 |
|
369 |
# Checks for library functions. |
370 |
AC_FUNC_MEMCMP |
371 |
AC_FUNC_SELECT_ARGTYPES |
372 |
AC_CHECK_FUNCS([select socket strchr]) |
373 |
|
374 |
AC_CONFIG_FILES([Makefile libdkim.pc]) |
375 |
AC_OUTPUT |