Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
httpd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
httpd
Commits
b2a4894d
Commit
b2a4894d
authored
Mar 24, 2019
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit
parents
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
376 additions
and
0 deletions
+376
-0
Makefile
Makefile
+63
-0
httpd-2.4.26-blfs_layout-1.patch
httpd-2.4.26-blfs_layout-1.patch
+292
-0
httpd-2.4.26.tar.bz2
httpd-2.4.26.tar.bz2
+0
-0
httpd.groups
httpd.groups
+21
-0
No files found.
Makefile
0 → 100644
View file @
b2a4894d
all
:
httpd-service
rm
/etc/passwd
mv
-v
/data/etc/passwd /etc/passwd
rm
/etc/group
mv
-v
/data/etc/group /etc/group
rm
/etc/shadow
mv
-v
/data/etc/shadow /etc/shadow
rm
/etc/gshadow
mv
-v
/data/etc/gshadow /etc/gshadow
groupadd
-g
25 apache
useradd
-c
"Apache Server"
-d
/srv/www
-g
apache
-s
/bin/false
-u
25 apache
rm
/etc/passwd-
rm
/etc/group-
rm
/etc/shadow-
rm
/etc/gshadow-
mv
-v
/etc/passwd /data/etc/passwd
ln
-sv
/data/etc/passwd /etc/passwd
mv
-v
/etc/group /data/etc/group
ln
-sv
/data/etc/group /etc/group
mv
-v
/etc/shadow /data/etc/shadow
ln
-sv
/data/etc/shadow /etc/shadow
mv
-v
/etc/gshadow /data/etc/gshadow
ln
-sv
/data/etc/gshadow /etc/gshadow
tar
xf httpd-2.4.26.tar.bz2
patch
-Np1
-d
httpd-2.4.26 < httpd-2.4.26-blfs_layout-1.patch
cd
httpd-2.4.26
&&
sed
'/dir.*CFG_PREFIX/s@^@#@'
-i
support/apxs.in
cd
httpd-2.4.26
&&
./configure
--enable-authnz-fcgi
--enable-layout
=
BLFS
--enable-mods-shared
=
"all cgi"
--enable-mpms-shared
=
all
--enable-suexec
=
shared
--with-apr
=
/usr/bin/apr-1-config
--with-apr-util
=
/usr/bin/apu-1-config
--with-suexec-bin
=
/usr/lib/httpd/suexec
--with-suexec-caller
=
apache
--with-suexec-docroot
=
/srv/www
--with-suexec-logfile
=
/var/log/httpd/suexec.log
--with-suexec-uidmin
=
100
--with-suexec-userdir
=
public_html
$(MAKE)
-C
httpd-2.4.26
$(MAKE)
-C
httpd-2.4.26
install
mv
-v
/usr/sbin/suexec /usr/lib/httpd/suexec
chgrp
apache /usr/lib/httpd/suexec
chmod
4754 /usr/lib/httpd/suexec
chown
-v
-R
apache:apache /srv/www
mkdir
-p
/etc/httpd/conf
cat
/etc/httpd/httpd.conf |
sed
-n
'/^# DocumentRoot:/,/^# DirectoryIndex:/{ /^# DirectoryIndex:.*$$/d; p; }'
>
/etc/httpd/conf/DocumentRoot.conf
sed
'/^# DocumentRoot:/,/^# DirectoryIndex:/{/^# DirectoryIndex:/!d}'
-i
/etc/httpd/httpd.conf
cat
/etc/httpd/httpd.conf |
sed
-n
'/^# DirectoryIndex:/,/^# The following/{ /^# The following.*$$/d; p; }'
>
/etc/httpd/conf/DirectoryIndex.conf
sed
'/^# DirectoryIndex:/,/^# The following/{/^# The following/!d}'
-i
/etc/httpd/httpd.conf
@
echo
"IncludeOptional conf/*.conf"
>>
/etc/httpd/httpd.conf
@
echo
"d /run/httpd 755 root root -"
>
/usr/lib/tmpfiles.d/httpd.conf
@
echo
"
$$
HTTPD_SERVICE"
>
/lib/systemd/system/httpd.service
systemctl
enable
httpd.service
rm
-rf
httpd-2.4.26
httpd-service
:
define
HTTPD_SERVICE
[Unit]
Description
=
Apache Web Server
After
=
network.target remote-fs.target nss-lookup.target
[Service]
Type
=
forking
PIDFile
=
/run/httpd/httpd.pid
ExecStart
=
/usr/sbin/apachectl start
ExecStop
=
/usr/sbin/apachectl graceful-stop
ExecReload
=
/usr/sbin/apachectl graceful
PrivateTmp
=
true
LimitNOFILE
=
infinity
[Install]
WantedBy
=
multi-user.target
endef
export
HTTPD_SERVICE
httpd-2.4.26-blfs_layout-1.patch
0 → 100644
View file @
b2a4894d
Submitted By: Armin K. <krejzi at email dot com>
Date: 2013-04-17
Initial Package Version: 2.4.4
Comment: rediffed for version 2.4.10 (Fernando de Oliveira
<famobr at yahoo dot com dot br>)
Upstream Status: Not applicable
Origin: Self
Description: Patches the build system to install stuff into BLFS
specific paths, and adjusts proper permissions
on installed files and directories.
diff -Naur httpd-2.4.10.orig/config.layout httpd-2.4.10/config.layout
--- httpd-2.4.10.orig/config.layout 2012-04-17 11:01:41.000000000 -0300
+++ httpd-2.4.10/config.layout 2014-07-23 09:06:17.325921549 -0300
@@ -9,6 +9,30 @@
## (This may become a configurable parameter at some point.)
##
+<Layout BLFS>
+ prefix:
+ exec_prefix: ${prefix}/usr
+ bindir: ${exec_prefix}/bin
+ sbindir: ${exec_prefix}/sbin
+ libdir: ${exec_prefix}/lib
+ libexecdir: ${exec_prefix}/lib/httpd/modules
+ mandir: ${exec_prefix}/share/man
+ sysconfdir: ${prefix}/etc/httpd
+ datadir: ${exec_prefix}/share/httpd
+ iconsdir: ${datadir}/icons
+ htdocsdir: ${prefix}/srv/www
+ manualdir: ${datadir}/manual
+ cgidir: ${exec_prefix}/lib/httpd/cgi-bin
+ includedir: ${exec_prefix}/include/httpd
+ localstatedir: ${prefix}/var/lock/httpd
+ runtimedir: ${prefix}/var/run/httpd
+ logfiledir: ${prefix}/var/log/httpd
+ proxycachedir: ${prefix}/var/cache/httpd/proxy
+ infodir: ${exec_prefix}/share/info
+ installbuilddir: ${datadir}/build
+ errordir: ${datadir}/error
+</Layout>
+
# Classical Apache path layout.
<Layout Apache>
prefix: /usr/local/apache2
diff -Naur httpd-2.4.10.orig/configure httpd-2.4.10/configure
--- httpd-2.4.10.orig/configure 2014-07-15 14:15:03.000000000 -0300
+++ httpd-2.4.10/configure 2014-07-23 09:06:17.337921270 -0300
@@ -33031,17 +33031,17 @@
cat >>confdefs.h <<_ACEOF
-#define HTTPD_ROOT "${ap_prefix}"
+#define HTTPD_ROOT "/etc/httpd"
_ACEOF
cat >>confdefs.h <<_ACEOF
-#define SERVER_CONFIG_FILE "${rel_sysconfdir}/${progname}.conf"
+#define SERVER_CONFIG_FILE "${progname}.conf"
_ACEOF
cat >>confdefs.h <<_ACEOF
-#define AP_TYPES_CONFIG_FILE "${rel_sysconfdir}/mime.types"
+#define AP_TYPES_CONFIG_FILE "mime.types"
_ACEOF
diff -Naur httpd-2.4.10.orig/configure.in httpd-2.4.10/configure.in
--- httpd-2.4.10.orig/configure.in 2014-02-20 16:36:12.000000000 -0300
+++ httpd-2.4.10/configure.in 2014-07-23 09:06:17.338921244 -0300
@@ -826,11 +826,11 @@
echo $MODLIST | $AWK -f $srcdir/build/build-modules-c.awk > modules.c
APR_EXPAND_VAR(ap_prefix, $prefix)
-AC_DEFINE_UNQUOTED(HTTPD_ROOT, "${ap_prefix}",
+AC_DEFINE_UNQUOTED(HTTPD_ROOT, "/etc/httpd",
[Root directory of the Apache install area])
-AC_DEFINE_UNQUOTED(SERVER_CONFIG_FILE, "${rel_sysconfdir}/${progname}.conf",
+AC_DEFINE_UNQUOTED(SERVER_CONFIG_FILE, "${progname}.conf",
[Location of the config file, relative to the Apache root directory])
-AC_DEFINE_UNQUOTED(AP_TYPES_CONFIG_FILE, "${rel_sysconfdir}/mime.types",
+AC_DEFINE_UNQUOTED(AP_TYPES_CONFIG_FILE, "mime.types",
[Location of the MIME types config file, relative to the Apache root directory])
perlbin=`$ac_aux_dir/PrintPath perl`
diff -Naur httpd-2.4.10.orig/docs/conf/httpd.conf.in httpd-2.4.10/docs/conf/httpd.conf.in
--- httpd-2.4.10.orig/docs/conf/httpd.conf.in 2012-11-08 00:05:38.000000000 -0300
+++ httpd-2.4.10/docs/conf/httpd.conf.in 2014-07-23 09:06:17.339921217 -0300
@@ -28,7 +28,7 @@
# same ServerRoot for multiple httpd daemons, you will need to change at
# least PidFile.
#
-ServerRoot "@@ServerRoot@@"
+#ServerRoot "@@ServerRoot@@"
#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
@@ -74,8 +74,8 @@
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
-User daemon
-Group daemon
+User apache
+Group apache
</IfModule>
@@ -96,7 +96,7 @@
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. admin@your-domain.com
#
-ServerAdmin you@example.com
+ServerAdmin admin@localhost
#
# ServerName gives the name and port that the server uses to identify itself.
@@ -105,7 +105,7 @@
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
-#ServerName www.example.com:@@Port@@
+#ServerName localhost:@@Port@@
#
# Deny access to the entirety of your server's filesystem. You must
@@ -181,7 +181,7 @@
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
-ErrorLog "@rel_logfiledir@/error_log"
+ErrorLog "@rel_logfiledir@/error.log"
#
# LogLevel: Control the number of messages logged to the error_log.
@@ -210,13 +210,13 @@
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
- CustomLog "@rel_logfiledir@/access_log" common
+ CustomLog "@rel_logfiledir@/access.log" common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
- #CustomLog "@rel_logfiledir@/access_log" combined
+ #CustomLog "@rel_logfiledir@/access.log" combined
</IfModule>
<IfModule alias_module>
diff -Naur httpd-2.4.10.orig/include/ap_config_layout.h.in httpd-2.4.10/include/ap_config_layout.h.in
--- httpd-2.4.10.orig/include/ap_config_layout.h.in 2006-07-11 17:55:32.000000000 -0300
+++ httpd-2.4.10/include/ap_config_layout.h.in 2014-07-23 09:06:17.340921189 -0300
@@ -60,5 +60,6 @@
#define DEFAULT_REL_LOGFILEDIR "@rel_logfiledir@"
#define DEFAULT_EXP_PROXYCACHEDIR "@exp_proxycachedir@"
#define DEFAULT_REL_PROXYCACHEDIR "@rel_proxycachedir@"
+#define DEFAULT_PIDLOG "/var/run/httpd/httpd.pid"
#endif /* AP_CONFIG_LAYOUT_H */
diff -Naur httpd-2.4.10.orig/include/httpd.h httpd-2.4.10/include/httpd.h
--- httpd-2.4.10.orig/include/httpd.h 2014-07-12 15:19:16.000000000 -0300
+++ httpd-2.4.10/include/httpd.h 2014-07-23 09:06:17.341921161 -0300
@@ -109,7 +109,7 @@
#define DOCUMENT_LOCATION HTTPD_ROOT "/docs"
#else
/* Set default for non OS/2 file system */
-#define DOCUMENT_LOCATION HTTPD_ROOT "/htdocs"
+#define DOCUMENT_LOCATION "/srv/www"
#endif
#endif /* DOCUMENT_LOCATION */
diff -Naur httpd-2.4.10.orig/Makefile.in httpd-2.4.10/Makefile.in
--- httpd-2.4.10.orig/Makefile.in 2012-12-17 08:50:41.000000000 -0300
+++ httpd-2.4.10/Makefile.in 2014-07-23 09:06:17.341921161 -0300
@@ -91,9 +91,9 @@
done ; \
done ; \
if test -f "$(builddir)/envvars-std"; then \
- cp -p envvars-std $(DESTDIR)$(sbindir); \
- if test ! -f $(DESTDIR)$(sbindir)/envvars; then \
- cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
+ install -o root -g root -m644 envvars-std $(DESTDIR)$(installbuilddir); \
+ if test ! -f $(DESTDIR)$(sysconfdir)/envvars; then \
+ install -o root -g root -m644 envvars-std $(DESTDIR)$(sysconfdir)/envvars ; \
fi ; \
fi
@@ -145,7 +145,7 @@
if test -d $(htdocs-srcdir) && test "x$(RSYNC)" != "x" && test -x $(RSYNC) ; then \
$(RSYNC) --exclude .svn -rlpt --numeric-ids $(htdocs-srcdir)/ $(DESTDIR)$(htdocsdir)/; \
else \
- test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(DESTDIR)$(htdocsdir)) ; \
+ test -d $(htdocs-srcdir) && (cd $(htdocs-srcdir) && cp -rp * $(DESTDIR)$(htdocsdir) && chown -R root:root $(DESTDIR)$(htdocsdir)) ; \
cd $(DESTDIR)$(htdocsdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
fi; \
fi
@@ -156,7 +156,7 @@
else \
echo Installing error documents ; \
$(MKINSTALLDIRS) $(DESTDIR)$(errordir) ; \
- cd $(top_srcdir)/docs/error && cp -rp * $(DESTDIR)$(errordir) ; \
+ cd $(top_srcdir)/docs/error && cp -rp * $(DESTDIR)$(errordir) && chown -R root:root $(DESTDIR)$(errordir); \
test "x$(errordir)" != "x" && cd $(DESTDIR)$(errordir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
fi
@@ -166,7 +166,7 @@
else \
echo Installing icons ; \
$(MKINSTALLDIRS) $(DESTDIR)$(iconsdir) ; \
- cd $(top_srcdir)/docs/icons && cp -rp * $(DESTDIR)$(iconsdir) ; \
+ cd $(top_srcdir)/docs/icons && cp -rp * $(DESTDIR)$(iconsdir) && chown -R root:root $(DESTDIR)$(iconsdir); \
test "x$(iconsdir)" != "x" && cd $(DESTDIR)$(iconsdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
fi
@@ -176,7 +176,7 @@
else \
echo Installing CGIs ; \
$(MKINSTALLDIRS) $(DESTDIR)$(cgidir) ; \
- cd $(top_srcdir)/docs/cgi-examples && cp -rp * $(DESTDIR)$(cgidir) ; \
+ cd $(top_srcdir)/docs/cgi-examples && cp -rp * $(DESTDIR)$(cgidir) && chown -R root:root $(DESTDIR)$(cgidir); \
test "x$(cgidir)" != "x" && cd $(DESTDIR)$(cgidir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
fi
@@ -229,12 +229,12 @@
@test -d $(DESTDIR)$(mandir)/man1 || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man1
@test -d $(DESTDIR)$(mandir)/man8 || $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man8
@test -d $(DESTDIR)$(manualdir) || $(MKINSTALLDIRS) $(DESTDIR)$(manualdir)
- @cp -p $(top_srcdir)/docs/man/*.1 $(DESTDIR)$(mandir)/man1
- @cp -p $(top_srcdir)/docs/man/*.8 $(DESTDIR)$(mandir)/man8
+ @install -o root -g root -m644 $(top_srcdir)/docs/man/*.1 $(DESTDIR)$(mandir)/man1
+ @install -o root -g root -m644 $(top_srcdir)/docs/man/*.8 $(DESTDIR)$(mandir)/man8
@if test "x$(RSYNC)" != "x" && test -x $(RSYNC) ; then \
$(RSYNC) --exclude .svn -rlpt --numeric-ids $(top_srcdir)/docs/manual/ $(DESTDIR)$(manualdir)/; \
else \
- cd $(top_srcdir)/docs/manual && cp -rp * $(DESTDIR)$(manualdir); \
+ cd $(top_srcdir)/docs/manual && cp -rp * $(DESTDIR)$(manualdir) && chown -R root:root $(DESTDIR)$(manualdir); \
cd $(DESTDIR)$(manualdir) && find . -name ".svn" -type d -print | xargs rm -rf 2>/dev/null || true; \
fi
diff -Naur httpd-2.4.10.orig/support/apachectl.in httpd-2.4.10/support/apachectl.in
--- httpd-2.4.10.orig/support/apachectl.in 2012-02-01 00:47:28.000000000 -0300
+++ httpd-2.4.10/support/apachectl.in 2014-07-23 09:06:17.342921133 -0300
@@ -45,8 +45,8 @@
HTTPD='@exp_sbindir@/@progname@'
#
# pick up any necessary environment variables
-if test -f @exp_sbindir@/envvars; then
- . @exp_sbindir@/envvars
+if test -f @exp_sysconfdir@/envvars; then
+ . @exp_sysconfdir@/envvars
fi
#
# a command that outputs a formatted text version of the HTML at the
diff -Naur httpd-2.4.10.orig/support/Makefile.in httpd-2.4.10/support/Makefile.in
--- httpd-2.4.10.orig/support/Makefile.in 2012-12-11 07:37:25.000000000 -0300
+++ httpd-2.4.10/support/Makefile.in 2014-07-23 09:06:17.342921133 -0300
@@ -16,23 +16,23 @@
@test -d $(DESTDIR)$(bindir) || $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
@test -d $(DESTDIR)$(sbindir) || $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
@test -d $(DESTDIR)$(libexecdir) || $(MKINSTALLDIRS) $(DESTDIR)$(libexecdir)
- @cp -p $(top_builddir)/server/httpd.exp $(DESTDIR)$(libexecdir)
+ @test -d $(DESTDIR)$(sysconfdir) || $(MKINSTALLDIRS) $(DESTDIR)$(sysconfdir)
+ @test -d $(DESTDIR)$(installbuilddir) || $(MKINSTALLDIRS) $(DESTDIR)$(installbuilddir)
+ @install -o root -g root -m644 $(top_builddir)/server/httpd.exp $(DESTDIR)$(libexecdir)
@for i in apxs dbmmanage; do \
if test -f "$(builddir)/$$i"; then \
- cp -p $$i $(DESTDIR)$(bindir); \
- chmod 755 $(DESTDIR)$(bindir)/$$i; \
+ install -o root -g root -m755 $$i $(DESTDIR)$(bindir); \
fi ; \
done
@for i in apachectl; do \
if test -f "$(builddir)/$$i"; then \
- cp -p $$i $(DESTDIR)$(sbindir); \
- chmod 755 $(DESTDIR)$(sbindir)/$$i; \
+ install -o root -g root -m755 $$i $(DESTDIR)$(sbindir); \
fi ; \
done
@if test -f "$(builddir)/envvars-std"; then \
- cp -p envvars-std $(DESTDIR)$(sbindir); \
- if test ! -f $(DESTDIR)$(sbindir)/envvars; then \
- cp -p envvars-std $(DESTDIR)$(sbindir)/envvars ; \
+ install -o root -g root -m644 envvars-std $(DESTDIR)$(installbuilddir); \
+ if test ! -f $(DESTDIR)$(sysconfdir)/envvars; then \
+ install -o root -g root -m644 envvars-std $(DESTDIR)$(sysconfdir)/envvars ; \
fi ; \
fi
httpd-2.4.26.tar.bz2
0 → 100644
View file @
b2a4894d
File added
httpd.groups
0 → 100644
View file @
b2a4894d
etc
/etc/.*
bin
/usr/bin/.*
/usr/sbin/.*
/usr/share/httpd/icons/.*
/usr/share/httpd/build/.*
/usr/share/httpd/error/.*
/usr/lib/tmpfiles.d/.*
/lib/systemd/system/.*
/usr/lib/httpd/modules/.*
/usr/lib/httpd/cgi-bin/.*
/usr/lib/httpd/suexec
headers
/usr/include/.*
man
/usr/share/man/.*
doc
/usr/share/httpd/manual/.*
www
/srv/www/.*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment