usr/src/lib/libneon/install-sfw
changeset 2 8f1801a322e9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/usr/src/lib/libneon/install-sfw	Sun Dec 20 07:12:51 2009 +0200
@@ -0,0 +1,269 @@
+#!/bin/bash
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+#
+# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
+# Use is subject to license terms.
+#
+# ident	"@(#)install-sfw	1.1	09/09/24 SMI"
+
+VERS=neon-0.29.0
+
+GSED=/usr/bin/gsed
+PREFIX=${ROOT}/usr
+BINDIR=${PREFIX}/bin
+LIBDIR=${PREFIX}/lib
+PKGCONFIGDIR=${LIBDIR}/pkgconfig
+INCLUDEDIR=${PREFIX}/include/neon
+LOCALEDIR=${PREFIX}/share/locale
+MAN1DIR=${PREFIX}/share/man/man1
+MAN3DIR=${PREFIX}/share/man/man3
+ROOTMAN1DIR=${MAN1DIR}
+ROOTMAN3DIR=${MAN3DIR}
+HTMLDOCLIBDIR=${PREFIX}/share/doc/neon-0.29.0/html
+
+MANSCRIPT=${TOP}/sunman.sed
+. ${SRC}/tools/install.subr
+
+for file in \
+    "ne_add_request_header.3" \
+    "ne_addr_destroy.3" \
+    "ne_addr_error.3" \
+    "ne_addr_first.3" \
+    "ne_addr_next.3" \
+    "ne_addr_resolve.3" \
+    "ne_addr_result.3" \
+    "ne_buffer.3" \
+    "ne_buffer_altered.3" \
+    "ne_buffer_append.3" \
+    "ne_buffer_clear.3" \
+    "ne_buffer_concat.3" \
+    "ne_buffer_create.3" \
+    "ne_buffer_destroy.3" \
+    "ne_buffer_finish.3" \
+    "ne_buffer_grow.3" \
+    "ne_buffer_ncreate.3" \
+    "ne_buffer_zappend.3" \
+    "ne_calloc.3" \
+    "ne_close_connection.3" \
+    "ne_forget_auth.3" \
+    "ne_get_error.3" \
+    "ne_get_request_flag.3" \
+    "ne_get_response_header.3" \
+    "ne_get_scheme.3" \
+    "ne_get_server_hostport.3" \
+    "ne_get_session_flag.3" \
+    "ne_get_status.3" \
+    "ne_has_support.3" \
+    "ne_i18n_init.3" \
+    "ne_iaddr_cmp.3" \
+    "ne_iaddr_free.3" \
+    "ne_iaddr_make.3" \
+    "ne_iaddr_print.3" \
+    "ne_iaddr_typeof.3" \
+    "ne_malloc.3" \
+    "ne_oom_callback.3" \
+    "ne_print_request_header.3" \
+    "ne_qtoken.3" \
+    "ne_realloc.3" \
+    "ne_request_create.3" \
+    "ne_request_destroy.3" \
+    "ne_request_dispatch.3" \
+    "ne_response_header_iterate.3" \
+    "ne_session_create.3" \
+    "ne_session_destroy.3" \
+    "ne_session_proxy.3" \
+    "ne_set_connect_timeout.3" \
+    "ne_set_error.3" \
+    "ne_set_proxy_auth.3" \
+    "ne_set_read_timeout.3" \
+    "ne_set_request_body_buffer.3" \
+    "ne_set_request_body_fd.3" \
+    "ne_set_request_body_fd64.3" \
+    "ne_set_request_flag.3" \
+    "ne_set_server_auth.3" \
+    "ne_set_session_flag.3" \
+    "ne_set_useragent.3" \
+    "ne_shave.3" \
+    "ne_sock_exit.3" \
+    "ne_sock_init.3" \
+    "ne_ssl_cert_cmp.3" \
+    "ne_ssl_cert_export.3" \
+    "ne_ssl_cert_free.3" \
+    "ne_ssl_cert_identity.3" \
+    "ne_ssl_cert_import.3" \
+    "ne_ssl_cert_issuer.3" \
+    "ne_ssl_cert_read.3" \
+    "ne_ssl_cert_signedby.3" \
+    "ne_ssl_cert_subject.3" \
+    "ne_ssl_cert_write.3" \
+    "ne_ssl_clicert_decrypt.3" \
+    "ne_ssl_clicert_encrypted.3" \
+    "ne_ssl_clicert_free.3" \
+    "ne_ssl_clicert_name.3" \
+    "ne_ssl_clicert_owner.3" \
+    "ne_ssl_clicert_read.3" \
+    "ne_ssl_dname_cmp.3" \
+    "ne_ssl_readable_dname.3" \
+    "ne_ssl_set_verify.3" \
+    "ne_ssl_trust_cert.3" \
+    "ne_ssl_trust_default_ca.3" \
+    "ne_status.3" \
+    "ne_strdup.3" \
+    "ne_strndup.3" \
+    "ne_token.3" \
+    "ne_version_match.3" \
+    "ne_version_string.3" \
+    "ne_xml_create.3" \
+    "ne_xml_destroy.3" \
+    "neon.3"
+do
+    _install M ${INSTDIR}/usr/share/man/man3/${file} ${MAN3DIR}/${file} 0644
+done
+
+for file in \
+    "neon-config.1"
+do
+    _install M ${INSTDIR}/usr/share/man/man1/${file} ${MAN1DIR}/${file} 0644
+done
+
+cd ${TOP}
+
+for file in \
+    "cs" \
+    "de" \
+    "fr" \
+    "ja" \
+    "nn" \
+    "pl" \
+    "ru" \
+    "tr" \
+    "zh_CN"
+do
+    _install N ${INSTDIR}/usr/share/locale/${file}/LC_MESSAGES/neon.mo ${LOCALEDIR}/${file}/LC_MESSAGES/neon.mo 0644
+done
+
+for file in \
+    "api.html" \
+    "biblio.html" \
+    "compliance.html" \
+    "features.html" \
+    "index.html" \
+    "intro.html" \
+    "ref.html" \
+    "refalloc.html" \
+    "refauth.html" \
+    "refbuf.html" \
+    "refbufapp.html" \
+    "refbufcr.html" \
+    "refbufdest.html" \
+    "refbufutil.html" \
+    "refcert.html" \
+    "refclicert.html" \
+    "refconfig.html" \
+    "referr.html" \
+    "reffeat.html" \
+    "refgetst.html" \
+    "refi18n.html" \
+    "refiaddr.html" \
+    "refneon.html" \
+    "refopts.html" \
+    "refreq.html" \
+    "refreqbody.html" \
+    "refreqflags.html" \
+    "refreqhdr.html" \
+    "refresolve.html" \
+    "refresphdr.html" \
+    "refsess.html" \
+    "refsessflags.html" \
+    "refshave.html" \
+    "refsockinit.html" \
+    "refsslca.html" \
+    "refsslcert2.html" \
+    "refsslcertio.html" \
+    "refssldname.html" \
+    "refsslvfy.html" \
+    "refstatus.html" \
+    "reftok.html" \
+    "refvers.html" \
+    "refxml.html" \
+    "security.html" \
+    "using.html" \
+    "xml.html"
+do
+    _install N ${INSTDIR}/usr/share/doc/neon-0.29.0/html/${file} ${HTMLDOCLIBDIR}/${file} 0644
+done
+
+for file in \
+    "ne_207.h" \
+    "ne_acl.h" \
+    "ne_acl3744.h" \
+    "ne_alloc.h" \
+    "ne_auth.h" \
+    "ne_basic.h" \
+    "ne_compress.h" \
+    "ne_dates.h" \
+    "ne_defs.h" \
+    "ne_i18n.h" \
+    "ne_locks.h" \
+    "ne_md5.h" \
+    "ne_pkcs11.h" \
+    "ne_props.h" \
+    "ne_redirect.h" \
+    "ne_request.h" \
+    "ne_session.h" \
+    "ne_socket.h" \
+    "ne_ssl.h" \
+    "ne_string.h" \
+    "ne_uri.h" \
+    "ne_utils.h" \
+    "ne_xml.h" \
+    "ne_xmlreq.h"
+do
+    _install N ${INSTDIR}/usr/include/neon/${file} ${INCLUDEDIR}/${file} 0644
+done
+
+_install N ${INSTDIR}/usr/bin/neon-config ${BINDIR}/neon-config 0755
+
+cd ${INSTDIR}/usr/lib/pkgconfig
+
+${GSED} -e "s#-R/lib ##g" neon.pc > neon.pc.sed
+cp -fp neon.pc.sed neon.pc
+${GSED} -e "s#-L/lib ##g" neon.pc > neon.pc.sed
+cp -fp neon.pc.sed neon.pc
+${GSED} -e "s#-R/usr/lib ##g" neon.pc > neon.pc.sed
+cp -fp neon.pc.sed neon.pc
+rm -f neon.pc.sed
+
+cd ${TOP}
+
+_install N ${INSTDIR}/usr/lib/pkgconfig/neon.pc ${PKGCONFIGDIR}/neon.pc 0644
+
+# because libtool is being 'helpful' with the RUNPATH
+elfedit -e 'dyn:delete RUNPATH' ${INSTDIR}/usr/lib/libneon.so.27.2.0
+elfedit -e 'dyn:delete RPATH' ${INSTDIR}/usr/lib/libneon.so.27.2.0
+
+_install D ${INSTDIR}/usr/lib/libneon.so.27.2.0 ${LIBDIR}/libneon.so.27.2.0 0755
+_install L libneon.so.27.2.0 ${LIBDIR}/libneon.so.27
+_install L libneon.so.27.2.0 ${LIBDIR}/libneon.so
+
+exit 0
+