dnl Last minute substitutions
dnl --------------------------------------------------------------------------
+dnl ac_cv_target_os is now host_os, ac_cv_target_cpu is now host_cpu
AC_SUBST(LIBS)
AC_SUBST(CFLAGS)
command=":SBINDIR:/afpd"
etcdir=":ETCDIR:"
pidfile="/var/run/${name}.pid"
+command_args="-P ${pidfile}"
required_files="$etcdir/afpd.conf $etcdir/AppleVolumes.default $etcdir/AppleVolumes.system"
load_rc_config $name
[Unit]
Description=File and Printer sharing for Macintosh clients
-After=syslog.target network.target
+After=syslog.target network.target slpd.service avahi-daemon.service
[Service]
Type=oneshot
#ifdef HAVE_AVAHI
#include <unistd.h>
+#include <time.h>
#include <avahi-common/strlst.h>
puts( "No" );
#endif
+ printf( " EA support:\t" );
+ puts( EA_MODULES );
+
printf( " ACL support:\t" );
#ifdef HAVE_ACLS
puts( "Yes" );
puts( "No" );
#endif
- printf( " EA support:\t" );
- puts( EA_MODULES );
-
printf( " LDAP support:\t" );
#ifdef HAVE_LDAP
puts( "Yes" );
}
free(e);
+
+ return AFP_OK;
}
#ifdef FCE_TEST_MAIN
}
free(e);
+
+ return AFP_OK;
}
#elif defined(SENDFILE_FLAVOR_BSD )
#include <sys/types.h>
#include <sys/socket.h>
-#include <sys/uio.h><
+#include <sys/uio.h>
ssize_t sys_sendfile(int tofd, int fromfd, off_t *offset, size_t count)
{
return sendfile(fromfd, tofd, *offset, count, NULL, offset, 0);
#include <dirent.h>
int dirfd(DIR *dir)
{
- return dir->dd_fd;
+ return dir->d_fd;
}
#endif
solaris
linux libc5
*/
-#if defined(NEED_RQUOTA) || (defined(sun) && defined(__svr4__)) || \
-(defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ < 6)
+#if defined(NEED_RQUOTA) || defined(SOLARIS) || (defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ < 6)
#ifndef u_int
#define u_int unsigned
AC_DEFINE(_ISOC9X_SOURCE, 1, [Compatibility macro])
AC_DEFINE(NO_STRUCT_TM_GMTOFF, 1, [Define if the gmtoff member of struct tm is not available])
AC_DEFINE(SOLARIS, 1, [Solaris compatibility macro])
+ AC_DEFINE(_XOPEN_SOURCE, 600, [Solaris compilation environment])
+ AC_DEFINE(__EXTENSIONS__, 1, [Solaris compilation environment])
CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
need_dash_r=yes
sysv_style=solaris