From 9e551f1b3e19bc7ddb14d66fbb255d015d6af2e3 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 8 Feb 2020 23:41:08 +0100 Subject: [PATCH] apache: add postinstall script This script notifies users about the changes that recently went into the package, to prevent surprises. Signed-off-by: Sebastian Kemper --- net/apache/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/net/apache/Makefile b/net/apache/Makefile index 0475c16ed..a784ce295 100644 --- a/net/apache/Makefile +++ b/net/apache/Makefile @@ -96,6 +96,24 @@ define Package/apache/conffiles /etc/init.d/apache2 endef +define Package/apache/postinst +#!/bin/sh +if [ -z "$${IPKG_INSTROOT}" ]; then + echo + echo "o-------------------------------------------------------------------o" + echo "| Apache package changes |" + echo "o-------------------------------------------------------------------o" + echo "| - The server binary was renamed from httpd to apache2 |" + echo "| - A simple init script is installed (/etc/init.d/apache2) |" + echo "| - The server runs as user apache by default now |" + echo "| - Configuration resides in /etc/apache2 instead of /etc/apache |" + echo "| - Modules are installed to /usr/lib/apache2 |" + echo "o-------------------------------------------------------------=^_^=-o" + echo +fi +exit 0 +endef + define Package/apache-ab $(call Package/apache/Default) TITLE:=Apache benchmark utility