make install copies webui to piler localstatedir

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2018-06-10 18:41:42 +02:00
parent ac49647fc3
commit 2e2d04914f
3 changed files with 82 additions and 32 deletions

21
configure vendored
View File

@ -700,7 +700,6 @@ enable_static_build
enable_compat_layout enable_compat_layout
enable_clamd enable_clamd
enable_memcached enable_memcached
enable_tcpwrappers
enable_tweak_sent_time enable_tweak_sent_time
with_database with_database
with_piler_user with_piler_user
@ -1336,7 +1335,6 @@ Optional Features:
--enable-compat-layout support for older storage layout (default: no) --enable-compat-layout support for older storage layout (default: no)
--enable-clamd build clamd antivirus support --enable-clamd build clamd antivirus support
--enable-memcached build memcached support --enable-memcached build memcached support
--enable-tcpwrappers build tcpwrappers support
--tweak-sent-time tweak sent time --tweak-sent-time tweak sent time
Optional Packages: Optional Packages:
@ -3499,7 +3497,7 @@ fi
echo "\"Configure command: ./configure $PARAMS\"" >> $CONFIGURE_PARAMS_FILE echo "\"Configure command: ./configure $PARAMS\"" >> $CONFIGURE_PARAMS_FILE
SUBDIRS="src etc util init.d unit_tests" SUBDIRS="src etc util init.d unit_tests webui"
@ -3546,16 +3544,7 @@ fi
# Check whether --enable-tcpwrappers was given.
if test "${enable_tcpwrappers+set}" = set; then :
enableval=$enable_tcpwrappers; want_tcpwrappers=$enableval
else
want_tcpwrappers="no"
fi
if test "$want_tcpwrappers" = "yes"; then
for ac_header in tcpd.h for ac_header in tcpd.h
do : do :
ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
@ -3565,7 +3554,7 @@ if test "x$ac_cv_header_tcpd_h" = xyes; then :
_ACEOF _ACEOF
have_tcpwrappers=yes have_tcpwrappers=yes
else else
have_tcpwrappers=no echo "tcpd.h is not found"
fi fi
done done
@ -3654,8 +3643,7 @@ ac_cv_lib_wrap=ac_cv_lib_wrap_main
if test "$have_tcpwrappers" = "no"; then if test "$have_tcpwrappers" = "no"; then
echo "can't find either tcpd.h or libwrap"; echo "can't find either tcpd.h or libwrap";
exit 1; exit 1
fi
fi fi
@ -4860,7 +4848,7 @@ CFLAGS="$static -O2 -Wall -g"
LIBS="$antispam_libs $sunos_libs " LIBS="$antispam_libs $sunos_libs "
OBJS="dirs.o base64.o misc.o counters.o cfg.o sig.o decoder.o hash.o parser.o parser_utils.o rules.o smtp.o session.o bdat.o message.o attachment.o digest.o store.o archive.o tai.o import.o import_maildir.o import_mailbox.o import_pop3.o import_imap.o imap.o pop3.o extract.o mydomains.o $objs" OBJS="dirs.o base64.o misc.o counters.o cfg.o sig.o decoder.o hash.o parser.o parser_utils.o rules.o smtp.o session.o bdat.o message.o attachment.o digest.o store.o archive.o tai.o import.o import_maildir.o import_mailbox.o import_pop3.o import_imap.o imap.o pop3.o extract.o mydomains.o $objs"
ac_config_files="$ac_config_files Makefile src/Makefile etc/Makefile util/Makefile init.d/Makefile unit_tests/Makefile contrib/imap/Makefile" ac_config_files="$ac_config_files Makefile src/Makefile etc/Makefile util/Makefile init.d/Makefile unit_tests/Makefile webui/Makefile contrib/imap/Makefile"
cat >confcache <<\_ACEOF cat >confcache <<\_ACEOF
# This file is a shell script that caches the results of configure # This file is a shell script that caches the results of configure
@ -5559,6 +5547,7 @@ do
"util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;; "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
"init.d/Makefile") CONFIG_FILES="$CONFIG_FILES init.d/Makefile" ;; "init.d/Makefile") CONFIG_FILES="$CONFIG_FILES init.d/Makefile" ;;
"unit_tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit_tests/Makefile" ;; "unit_tests/Makefile") CONFIG_FILES="$CONFIG_FILES unit_tests/Makefile" ;;
"webui/Makefile") CONFIG_FILES="$CONFIG_FILES webui/Makefile" ;;
"contrib/imap/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imap/Makefile" ;; "contrib/imap/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/imap/Makefile" ;;
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;

View File

@ -85,7 +85,7 @@ fi
echo "\"Configure command: ./configure $PARAMS\"" >> $CONFIGURE_PARAMS_FILE echo "\"Configure command: ./configure $PARAMS\"" >> $CONFIGURE_PARAMS_FILE
SUBDIRS="src etc util init.d unit_tests" SUBDIRS="src etc util init.d unit_tests webui"
dnl static build dnl static build
@ -115,18 +115,14 @@ AC_ARG_ENABLE(memcached,
[ --enable-memcached build memcached support], want_memcached=$enableval, want_memcached="no") [ --enable-memcached build memcached support], want_memcached=$enableval, want_memcached="no")
AC_ARG_ENABLE(tcpwrappers, dnl tcpwrappers library
[ --enable-tcpwrappers build tcpwrappers support], want_tcpwrappers=$enableval, want_tcpwrappers="no")
AC_CHECK_HEADERS(tcpd.h, have_tcpwrappers=yes, echo "tcpd.h is not found")
if test "$want_tcpwrappers" = "yes"; then
AC_CHECK_HEADERS(tcpd.h, have_tcpwrappers=yes, have_tcpwrappers=no)
AC_CHECK_LIB([wrap],[hosts_access],[AC_CHECK_LIB(wrap, hosts_access, have_tcpwrappers=yes, echo "libwrap is not found"; have_tcpwrappers=no)],[],[])ac_cv_lib_wrap=ac_cv_lib_wrap_main AC_CHECK_LIB([wrap],[hosts_access],[AC_CHECK_LIB(wrap, hosts_access, have_tcpwrappers=yes, echo "libwrap is not found"; have_tcpwrappers=no)],[],[])ac_cv_lib_wrap=ac_cv_lib_wrap_main
if test "$have_tcpwrappers" = "no"; then if test "$have_tcpwrappers" = "no"; then
echo "can't find either tcpd.h or libwrap"; echo "can't find either tcpd.h or libwrap";
exit 1; exit 1
fi
fi fi
@ -538,7 +534,7 @@ CFLAGS="$static -O2 -Wall -g"
LIBS="$antispam_libs $sunos_libs " LIBS="$antispam_libs $sunos_libs "
OBJS="dirs.o base64.o misc.o counters.o cfg.o sig.o decoder.o hash.o parser.o parser_utils.o rules.o smtp.o session.o bdat.o message.o attachment.o digest.o store.o archive.o tai.o import.o import_maildir.o import_mailbox.o import_pop3.o import_imap.o imap.o pop3.o extract.o mydomains.o $objs" OBJS="dirs.o base64.o misc.o counters.o cfg.o sig.o decoder.o hash.o parser.o parser_utils.o rules.o smtp.o session.o bdat.o message.o attachment.o digest.o store.o archive.o tai.o import.o import_maildir.o import_mailbox.o import_pop3.o import_imap.o imap.o pop3.o extract.o mydomains.o $objs"
AC_CONFIG_FILES([Makefile src/Makefile etc/Makefile util/Makefile init.d/Makefile unit_tests/Makefile contrib/imap/Makefile]) AC_CONFIG_FILES([Makefile src/Makefile etc/Makefile util/Makefile init.d/Makefile unit_tests/Makefile webui/Makefile contrib/imap/Makefile])
AC_OUTPUT AC_OUTPUT
echo echo

65
webui/Makefile.in Normal file
View File

@ -0,0 +1,65 @@
SHELL = @SHELL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
includedir = @includedir@
libdir = @libdir@
libexecdir = @libexecdir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
mandir = @mandir@
datarootdir = @datarootdir@
localstatedir = @localstatedir@
CC = @CC@
CFLAGS = @CFLAGS@ @CPPFLAGS@
DEFS = @defs@
INCDIR = -I. -I.. -I../.. -I../../src -I../src @INCDIR@ @mysql_includes@
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../src -L../../src
LIBS = @LIBS@ @mysql_libs@
RUNNING_USER = @RUNNING_USER@
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
OBJS =
INSTALL = @INSTALL@
all:
install:
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/Zend
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/bootstrap
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/controller
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/google-api
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/images
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/language
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/model
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/securimage
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/system
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/view
$(INSTALL) -d -m 0755 $(DESTDIR)$(localstatedir)/piler/www/tmp
$(INSTALL) $(srcdir)/.htaccess $(DESTDIR)$(localstatedir)/piler/www
$(INSTALL) $(srcdir)/config.php $(DESTDIR)$(localstatedir)/piler/www
$(INSTALL) $(srcdir)/index.php $(DESTDIR)$(localstatedir)/piler/www
$(INSTALL) $(srcdir)/js.php $(DESTDIR)$(localstatedir)/piler/www
$(INSTALL) $(srcdir)/qr.php $(DESTDIR)$(localstatedir)/piler/www
$(INSTALL) $(srcdir)/ok.txt $(DESTDIR)$(localstatedir)/piler/www
$(INSTALL) $(srcdir)/sso.php $(DESTDIR)$(localstatedir)/piler/www
cp -R $(srcdir)/Zend/* $(DESTDIR)$(localstatedir)/piler/www/Zend
cp -R $(srcdir)/bootstrap/* $(DESTDIR)$(localstatedir)/piler/www/bootstrap
cp -R $(srcdir)/controller/* $(DESTDIR)$(localstatedir)/piler/www/controller
cp -R $(srcdir)/google-api/* $(DESTDIR)$(localstatedir)/piler/www/google-api
cp -R $(srcdir)/language/* $(DESTDIR)$(localstatedir)/piler/www/language
cp -R $(srcdir)/model/* $(DESTDIR)$(localstatedir)/piler/www/model
cp -R $(srcdir)/securimage/* $(DESTDIR)$(localstatedir)/piler/www/securimage
cp -R $(srcdir)/system/* $(DESTDIR)$(localstatedir)/piler/www/system
cp -R $(srcdir)/view/* $(DESTDIR)$(localstatedir)/piler/www/view
cp -R $(srcdir)/tmp/* $(DESTDIR)$(localstatedir)/piler/www/tmp
clean:
distclean: clean
rm -f Makefile