DEST=/usr/local/bin ifeq ($(DISTRO_BASE), Debian) APACHE_CONF_DIR=/etc/apache2/conf.d else ifeq ($(DISTRO_BASE), RedHat) APACHE_CONF_DIR=/etc/httpd/conf.d else ifeq ($(DISTRO_BASE), Mandriva) APACHE_CONF_DIR=/etc/httpd/conf/webapps.d else ifeq ($(DISTRO_BASE), SuSE) APACHE_CONF_DIR=/etc/apache2/conf.d else APACHE_CONF_DIR=/unknown endif test: echo $(APACHE_CONF_DIR) $(APACHE_CONF_DIR)/%: apache/%.conf install --mode=644 --preserve-timestamps $^ $@ # Debian: # /etc/apache2/conf.d # /etc/apache2/sites-available/ (default has 'NameVirtualHost *') (default-ssl as well, on lenny; disabled?)) # (etch has no default SSL conf and ssl module is disabled) # # SuSE: # /etc/apache2/conf.d # default DocumentRoot = /srv/www/htdocs (defined in /etc/apache2/default-server.conf) # /etc/apache2/vhosts.d/*.conf (has templates (using ssl_combined on the CustomLog setting)) # /etc/apache2/ssl.*/ -- CRAP CERT; unreadable! (and /etc/apache2/ssl-global.conf) # # Mandriva: # /etc/httpd/conf/webapps.d/*.conf # /etc/httpd/conf/vhosts.d/*.conf (has a default SSL vhost with DocumentRoot "/var/www/html") # /etc/pki/tls/{certs,private} # # Redhat: # /etc/httpd/conf.d/*.conf # (no separate VHosts dir) install_composer: | /etc/php5/conf.d/suhosin_local.ini curl -sS https://getcomposer.org/installer | php -- --install-dir=$(DEST) --filename=composer /etc/php5/conf.d/%: % install --mode=644 --preserve-timestamps $^ $@