mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
98 lines
3.1 KiB
Diff
98 lines
3.1 KiB
Diff
diff --git a/Makefile.am b/Makefile.am
|
|
index 820378495..bb868ec56 100644
|
|
--- a/Makefile.am
|
|
+++ b/Makefile.am
|
|
@@ -4766,13 +4766,17 @@ else
|
|
if HAVE_GENTOO
|
|
init_SCRIPTS += \
|
|
src/sysv/gentoo/sssd
|
|
+else
|
|
+if HAVE_ALPINE
|
|
+ init_SCRIPTS += \
|
|
+ src/sysv/alpine/sssd
|
|
else
|
|
init_SCRIPTS += \
|
|
src/sysv/sssd
|
|
endif
|
|
endif
|
|
endif
|
|
-
|
|
+endif
|
|
|
|
dist_sssddata_DATA = \
|
|
src/config/etc/sssd.api.conf \
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 5154918b1..efdb5f09c 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -510,7 +510,7 @@ AC_DEFINE_UNQUOTED([ABS_SRC_DIR], ["$my_srcdir"], [Absolute path to the source d
|
|
|
|
AC_CONFIG_FILES([Makefile contrib/sssd.spec src/examples/rwtab src/doxy.config
|
|
contrib/sssd-pcsc.rules
|
|
- src/sysv/sssd src/sysv/gentoo/sssd src/sysv/SUSE/sssd
|
|
+ src/sysv/sssd src/sysv/gentoo/sssd src/sysv/SUSE/sssd src/sysv/alpine/sssd
|
|
po/Makefile.in src/man/Makefile src/tests/cwrap/Makefile
|
|
src/tests/intg/Makefile src/tests/test_CA/Makefile
|
|
src/lib/ipa_hbac/ipa_hbac.pc src/lib/ipa_hbac/ipa_hbac.doxy
|
|
diff --git a/src/external/platform.m4 b/src/external/platform.m4
|
|
index 75853622f..5a2d50427 100644
|
|
--- a/src/external/platform.m4
|
|
+++ b/src/external/platform.m4
|
|
@@ -1,5 +1,5 @@
|
|
AC_ARG_WITH([os],
|
|
- [AC_HELP_STRING([--with-os=OS_TYPE], [Type of your operation system (fedora|redhat|suse|gentoo)])]
|
|
+ [AC_HELP_STRING([--with-os=OS_TYPE], [Type of your operation system (fedora|redhat|suse|gentoo|alpine)])]
|
|
)
|
|
osname=""
|
|
if test x"$with_os" != x ; then
|
|
@@ -7,6 +7,7 @@ if test x"$with_os" != x ; then
|
|
test x"$with_os" = xredhat || \
|
|
test x"$with_os" = xsuse || \
|
|
test x"$with_os" = xgentoo || \
|
|
+ test x"$with_os" = xalpine || \
|
|
test x"$with_os" = xdebian ; then
|
|
osname=$with_os
|
|
else
|
|
@@ -25,6 +26,8 @@ if test x"$osname" = x ; then
|
|
osname="debian"
|
|
elif test -f /etc/gentoo-release ; then
|
|
osname="gentoo"
|
|
+ elif test -f /etc/alpine-release ; then
|
|
+ osname="alpine"
|
|
fi
|
|
|
|
AC_MSG_NOTICE([Detected operating system type: $osname])
|
|
@@ -35,6 +38,7 @@ AM_CONDITIONAL([HAVE_REDHAT], [test x"$osname" = xredhat])
|
|
AM_CONDITIONAL([HAVE_SUSE], [test x"$osname" = xsuse])
|
|
AM_CONDITIONAL([HAVE_DEBIAN], [test x"$osname" = xdebian])
|
|
AM_CONDITIONAL([HAVE_GENTOO], [test x"$osname" = xgentoo])
|
|
+AM_CONDITIONAL([HAVE_ALPINE], [test x"$osname" = xalpine])
|
|
|
|
AS_CASE([$osname],
|
|
[redhat], [AC_DEFINE_UNQUOTED([HAVE_REDHAT], 1, [Build with redhat config])],
|
|
diff --git a/src/sysv/alpine/sssd.in b/src/sysv/alpine/sssd.in
|
|
new file mode 100644
|
|
index 000000000..597bf8ce9
|
|
--- /dev/null
|
|
+++ b/src/sysv/alpine/sssd.in
|
|
@@ -0,0 +1,17 @@
|
|
+#!/sbin/openrc-run
|
|
+
|
|
+depend(){
|
|
+ need localmount netmount clock
|
|
+}
|
|
+
|
|
+start(){
|
|
+ ebegin "Starting sssd"
|
|
+ start-stop-daemon --start --exec ${exec_prefix}/usr/sbin/sssd -- -Df ${SSSD_OPTIONS}
|
|
+ eend ${?}
|
|
+}
|
|
+
|
|
+stop(){
|
|
+ ebegin "Stopping sssd"
|
|
+ start-stop-daemon --stop --pidfile ${prefix}/var/run/sssd.pid
|
|
+ eend ${?}
|
|
+}
|
|
--
|
|
2.27.0
|
|
|