Changeset 740 for vendor/current/source4/heimdal_build
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- Location:
- vendor/current/source4/heimdal_build
- Files:
-
- 4 added
- 5 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/heimdal_build/asn1_deps.pl
r414 r740 24 24 my $header = "$dirname/$prefix.h"; 25 25 my $headerx = "$dirname/$prefix.hx"; 26 my $headerpriv = "$dirname/$prefix-priv.h"; 27 my $headerprivx = "$dirname/$prefix-priv.hx"; 26 28 my $o_file = "$dirname/asn1_$prefix.o"; 27 29 my $c_file = "$dirname/asn1_$prefix.c"; … … 36 38 print "$header: $headerx\n"; 37 39 print "\t\@cp $headerx $header\n"; 38 print "$x_file: $header\n"; 40 print "$headerpriv: $headerprivx\n"; 41 print "\t\@cp $headerprivx $headerpriv\n"; 42 print "$x_file: $header $headerpriv\n"; 39 43 print "$c_file: $x_file\n"; 40 44 print "\t\@echo \"#include \\\"config.h\\\"\" > $c_file && cat $x_file >> $c_file\n\n"; -
vendor/current/source4/heimdal_build/config.h
r414 r740 9 9 #include "include/config.h" 10 10 #include "../replace/replace.h" 11 #include "../lib/util/attr.h" 12 #define HEIMDAL_NORETURN_ATTRIBUTE _NORETURN_ 13 #define HEIMDAL_PRINTF_ATTRIBUTE(x) FORMAT_ATTRIBUTE(x) 14 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4"} 11 15 12 #if !defined(HAVE_DIRFD) && !defined(HAVE_DIRFD_DECL) && !defined(dirfd) 13 #define dirfd(d) (-1) 14 #endif 16 #define VERSION "Samba" 17 18 #define PACKAGE VERSION 19 #define PACKAGE_BUGREPORT "https://bugzilla.samba.org/" 20 #define PACKAGE_VERSION VERSION 15 21 16 22 #define RCSID(msg) struct __rcsid { int __rcsdi; } … … 28 34 #undef HAVE_KRB5_ENCRYPT_BLOCK 29 35 30 #if defined(UID_WRAPPER) 31 #if !defined(UID_WRAPPER_REPLACE) && !defined(UID_WRAPPER_NOT_REPLACE) 32 #define UID_WRAPPER_REPLACE 33 #include "../uid_wrapper/uid_wrapper.h" 34 #endif 35 #else 36 #define uwrap_enabled() 0 36 /* Because it can't be defined in roken.h */ 37 #ifndef USE_HCRYPTO_IMATH 38 #define USE_HCRYPTO_IMATH 37 39 #endif 38 40 41 /*Workaround for heimdal define vs samba define*/ 42 #ifdef HAVE_LIBINTL_H 43 #define LIBINTL 39 44 #endif 45 46 /* heimdal now wants some atomic ops - ask for the non-atomic ones for Samba */ 47 #define HEIM_BASE_NON_ATOMIC 1 48 49 #endif -
vendor/current/source4/heimdal_build/et_compile_wrapper.sh
r414 r740 2 2 # 3 3 4 SELF= $05 SELFDIR=`dirname ${SELF}`4 SELF="$0" 5 SELFDIR=`dirname "${SELF}"` 6 6 7 BUILDDIR=$1 8 DESTDIR=$2 9 10 CMD=$3 11 FILE=$4 12 SOURCE=$5 13 shift 5 14 15 test -z "${BUILDDIR}" && { 16 echo "${SELF}:BUILDDIR: '${BUILDDIR}'" >&2; 17 exit 1; 18 } 7 DESTDIR="$1" 8 CMD="$2" 9 FILE="$3" 10 SOURCE="$4" 11 shift 4 19 12 20 13 test -z "${DESTDIR}" && { … … 38 31 } 39 32 40 CURDIR= `pwd`33 CURDIR="`pwd`" 41 34 42 cd ${BUILDDIR} && { 43 ABS_BUILDDIR=`pwd` 44 cd ${CURDIR} 45 } || { 46 echo "${SELF}:cannot cd into '${BUILDDIR}'" >&2; 47 exit 1; 48 } 49 50 cd ${DESTDIR} && { 51 ${ABS_BUILDDIR}/${CMD} ${FILE} >&2 || exit 1; 52 cd ${CURDIR} 35 cd "${DESTDIR}" && { 36 # Remove older copies beforehand - MIT's compile_et uses odd permissions for these 37 # files, which makes Heimdal's compile_et fail mysteriously when writing to them. 38 rm -f `basename "${FILE}" .et`.c 39 rm -f `basename "${FILE}" .et`.h 40 "${CMD}" "${FILE}" >&2 || exit 1; 41 cd "${CURDIR}" 53 42 TMP="${SOURCE}.$$" 54 mv ${SOURCE} ${TMP}&& {55 echo "#include \"config.h\"" > ${SOURCE}&& {56 cat ${TMP} >> ${SOURCE}43 mv "${SOURCE}" "${TMP}" && { 44 echo "#include \"config.h\"" > "${SOURCE}" && { 45 cat "${TMP}" >> "${SOURCE}" 57 46 } 58 47 } 59 rm ${TMP}48 rm -f "${TMP}" 60 49 } || { 61 echo "${SELF}:cannot cd into '${ BUILDDIR}'" >&2;50 echo "${SELF}:cannot cd into '${DESTDIR}'" >&2; 62 51 exit 1; 63 52 } -
vendor/current/source4/heimdal_build/hdb-glue.c
r414 r740 20 20 */ 21 21 22 #include "includes.h"23 #include "system/network.h"24 #include "system/kerberos.h"25 #include "lib/socket/netif.h"26 #include "param/param.h"27 28 22 #include "heimdal/lib/hdb/hdb_locl.h" 29 23 -
vendor/current/source4/heimdal_build/krb5-glue.c
r414 r740 20 20 */ 21 21 22 #include "includes.h"23 #include "system/network.h"24 #include "system/kerberos.h"25 #include "lib/socket/netif.h"26 #include "param/param.h"27 28 22 #include "heimdal/lib/krb5/krb5_locl.h" 29 23 -
vendor/current/source4/heimdal_build/krb5-types.h
r414 r740 9 9 10 10 typedef socklen_t krb5_socklen_t; 11 typedef int krb5_socket_t; 11 12 typedef ssize_t krb5_ssize_t; 12 13 -
vendor/current/source4/heimdal_build/replace.c
r414 r740 84 84 } 85 85 #endif 86 87 const char *heimdal_version = "samba-internal-heimdal";88 const char *heimdal_long_version = "samba-interal-heimdal";89 -
vendor/current/source4/heimdal_build/roken.h
r414 r740 5 5 #define _ROKEN_H_ 6 6 7 #include "config.h" 8 9 /* Support 'weak' keys for now, it can't be worse than NTLM and we don't want to hard-code the behaviour at this point */ 10 #define HEIM_WEAK_CRYPTO 1 11 7 12 /* path to sysconf - should we force this to samba LIBDIR ? */ 8 13 #define SYSCONFDIR "/etc" 9 14 10 /* HDB module dir - set to Samba LIBDIR/hdb ? */ 11 #define HDBDIR "/usr/heimdal/lib" 12 #define LIBDIR "/usr/heimdal/lib" 15 #define rk_PATH_DELIM '/' 16 13 17 #define HEIMDAL_LOCALEDIR "/usr/heimdal/locale" 14 18 … … 20 24 #define PKINIT 1 21 25 22 #define VERSIONLIST {"Lorikeet-Heimdal, Modified for Samba4 0.8pre"}23 24 #define VERSION "Samba"25 26 26 #define ROKEN_LIB_FUNCTION 27 27 #define ROKEN_LIB_CALL 28 #define ROKEN_LIB_VARIABLE 28 29 #define GETHOSTBYADDR_PROTO_COMPATIBLE 29 30 #define GETSERVBYNAME_PROTO_COMPATIBLE … … 103 104 #endif 104 105 106 #ifndef HAVE_INET_NTOP 107 #define HAVE_INET_NTOP 108 #endif 109 110 #ifndef HAVE_INET_PTON 111 #define HAVE_INET_PTON 112 #endif 113 114 #ifndef HAVE_GETTIMEOFDAY 115 #define HAVE_GETTIMEOFDAY 116 #endif 117 118 #ifndef HAVE_SETEGID 119 #define HAVE_SETEGID 120 #endif 121 122 #ifndef HAVE_SETEUID 123 #define HAVE_SETEUID 124 #endif 125 126 /* force the use of the libreplace strerror_r */ 127 #ifndef HAVE_STRERROR_R 128 #define HAVE_STRERROR_R 129 #endif 130 #ifndef STRERROR_R_PROTO_COMPATIBLE 131 #define STRERROR_R_PROTO_COMPATIBLE 132 #endif 133 134 #ifndef HAVE_DIRFD 135 #ifdef HAVE_DIR_DD_FD 136 #define dirfd(x) ((x)->dd_fd) 137 #else 138 #define dirfd(d) (-1) 139 #endif 140 #define HAVE_DIRFD 1 141 #endif 142 143 105 144 /* we lie about having pidfile() so that NetBSD5 can compile. Nothing 106 145 in the parts of heimdal we use actually uses pidfile(), and we … … 128 167 extern const char *heimdal_long_version; 129 168 169 /* we do not want any __APPLE__ magic */ 170 #ifdef __APPLE__ 171 #undef __APPLE__ 130 172 #endif 173 174 #endif
Note:
See TracChangeset
for help on using the changeset viewer.