Skip to content

Commit 30a9839

Browse files
committed
Fixes for Solaris
1 parent 4f63e02 commit 30a9839

File tree

17 files changed

+78
-12
lines changed

17 files changed

+78
-12
lines changed

catChangeLog

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ flag=0
132132
nonewline=0
133133
bullet=0
134134
highlights=0
135+
[ -x /usr/xpg4/bin/grep ] && grep="/usr/xpg4/bin/grep" || grep="/usr/bin/grep"
135136
exec 0<$file
136137
while read line
137138
do
@@ -167,13 +168,13 @@ do
167168
flag=2
168169
continue
169170
fi
170-
echo $line | grep -E "^o " > /dev/null
171+
echo $line | $grep -E "^o " > /dev/null
171172
if [ $? -eq 0 ] ; then
172173
bullet=1
173174
else
174175
bullet=0
175176
fi
176-
echo "$line" |grep -E "^[0-9]|^[0-9][0-9]|^[0-9][0-9][0-9]" > /dev/null
177+
echo "$line" |$grep -E "^[0-9]|^[0-9][0-9]|^[0-9][0-9][0-9]" > /dev/null
177178
if [ $? -eq 0 ] ; then
178179
if [ $option -eq 2 -a $nonewline -eq 1 ] ; then
179180
echo

daemontools-x/Makefile.SUNOS

Whitespace-only changes.

daemontools-x/Makevars.SUNOS

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
prefix = $(shell head -1 conf-prefix 2>/dev/null)
2+
qmaildir = $(shell head -1 conf-qmail 2>/dev/null)
3+
mandir = $(shell [ -d "`head -1 conf-prefix`"/man ] && echo "`head -1 conf-prefix`/man" || echo "`head -1 conf-prefix`/share/man")
4+
shareddir = $(shell head -1 conf-shared 2>/dev/null)
5+
qsysconfdir = $(shell head -1 conf-sysconfdir 2>/dev/null)
6+
libexecdir = $(shell head -1 conf-libexec 2>/dev/null)
7+
servicedir = $(shell head -1 conf-servicedir 2>/dev/null)
8+
version = $(shell cat conf-version)
9+
release = $(shell cat conf-release 2>/dev/null ||echo "1.1")
10+
ucspitcp_version = $(shell [ -f ../ucspi-tcp-x/conf-version ] && cat ../ucspi-tcp-x/conf-version || echo "1.0")
11+
DATE = $(shell date)
12+
HOST = $(shell echo "`uname -m`-pc-`uname -s`-`uname -o|cut -d/ -f1`"|tr "[:upper:]" "[:lower:]")
13+
logdir = $(shell cat conf-logdir)
14+
bash = $(shell [ -f /usr/local/bin/bash ] && echo "/usr/local/bin/bash" || echo "/bin/bash")
15+
SYSTEM = $(shell uname -s | tr "[:lower:]" "[:upper:]")
16+
email = $(shell cat conf-email)

daemontools-x/conf-cc-SUNOS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-Wimplicit -fno-strict-aliasing -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-align -Wwrite-strings

daemontools-x/conf-ld-SUNOS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-L/usr/lib/64

daemontools-x/default.configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if [ ! -f conf-release ] ; then
44
fi
55
SYSTEM=$(uname -s)
66
case "$SYSTEM" in
7-
Linux)
7+
Linux|SunOS)
88
sed 's{PREFIX{/usr{' conf-prefix.in > conf-prefix
99
sed 's{QMAIL{/var/indimail{' conf-qmail.in > conf-qmail
1010
sed 's{SYSCONFDIR{/etc/indimail{' conf-sysconfdir.in > conf-sysconfdir

daemontools-x/doc/ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ Release @version@-@release@ Start 08/01/2026 End --/--/----
1919
into background
2020
- 24/02/2026
2121
12. svscan.c: set SV_PWD for main process
22+
- 25/03/2026
23+
13. Fixes for Solaris
2224

2325
* Thu Dec 18 2025 11:46:14 +0000 Manvendra Bhangui <daemontools@indimail.org 1.1.7-1.1%{?dist}
2426
Release 1.1.7-1.1 Start 27/12/2024 End 18/12/2025

daemontools-x/installer.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
/*
2-
* $Id: installer.c,v 1.30 2025-02-23 13:17:10+05:30 Cprogrammer Exp mbhangui $
2+
* $Id: installer.c,v 1.31 2026-03-25 22:32:16+05:30 Cprogrammer Exp mbhangui $
33
* taken from ezmlm-0.54
44
*/
55
#include <sys/types.h>
6+
#ifdef SUNOS
7+
#include <sys/mkdev.h>
8+
#endif
69
#if defined(linux)
710
#include <sys/sysmacros.h>
811
#endif
@@ -703,14 +706,17 @@ main(int argc, char **argv)
703706
void
704707
getversion_installer_c()
705708
{
706-
static const char *x = "$Id: installer.c,v 1.30 2025-02-23 13:17:10+05:30 Cprogrammer Exp mbhangui $";
709+
static const char *x = "$Id: installer.c,v 1.31 2026-03-25 22:32:16+05:30 Cprogrammer Exp mbhangui $";
707710

708711
if (x)
709712
x++;
710713
}
711714

712715
/*
713716
* $Log: installer.c,v $
717+
* Revision 1.31 2026-03-25 22:32:16+05:30 Cprogrammer
718+
* fix compilation on Solaris
719+
*
714720
* Revision 1.30 2025-02-23 13:17:10+05:30 Cprogrammer
715721
* fix SIGSEGV
716722
*

indimail-mta-x/installer.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
/*
2-
* $Id: installer.c,v 1.30 2025-02-23 13:17:10+05:30 Cprogrammer Exp mbhangui $
2+
* $Id: installer.c,v 1.31 2026-03-25 22:32:16+05:30 Cprogrammer Exp mbhangui $
33
* taken from ezmlm-0.54
44
*/
55
#include <sys/types.h>
6+
#ifdef SUNOS
7+
#include <sys/mkdev.h>
8+
#endif
69
#if defined(linux)
710
#include <sys/sysmacros.h>
811
#endif
@@ -703,14 +706,17 @@ main(int argc, char **argv)
703706
void
704707
getversion_installer_c()
705708
{
706-
static const char *x = "$Id: installer.c,v 1.30 2025-02-23 13:17:10+05:30 Cprogrammer Exp mbhangui $";
709+
static const char *x = "$Id: installer.c,v 1.31 2026-03-25 22:32:16+05:30 Cprogrammer Exp mbhangui $";
707710

708711
if (x)
709712
x++;
710713
}
711714

712715
/*
713716
* $Log: installer.c,v $
717+
* Revision 1.31 2026-03-25 22:32:16+05:30 Cprogrammer
718+
* fix compilation on Solaris
719+
*
714720
* Revision 1.30 2025-02-23 13:17:10+05:30 Cprogrammer
715721
* fix SIGSEGV
716722
*

ucspi-tcp-x/Makevars.SUNOS

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
prefix = $(shell head -1 conf-prefix 2>/dev/null)
2+
mandir = $(shell [ -d $(prefix)/man ] && echo $(prefix)/man || echo $(prefix)/share/man)
3+
shareddir = $(shell head -1 conf-shared 2>/dev/null)
4+
libexecdir = $(shell head -1 conf-libexec 2>/dev/null)
5+
qsysconfdir = $(shell head -1 conf-sysconfdir 2>/dev/null)
6+
servicedir = $(shell head -1 conf-servicedir 2>/dev/null)
7+
DEFS = $(shell uname -s | tr "[:lower:]" "[:upper:]")
8+
SYSTEM = $(shell uname -s | tr "[:lower:]" "[:upper:]")
9+
version = $(shell cat conf-version)
10+
release = $(shell cat conf-release 2>/dev/null ||echo "1.1")
11+
email = $(shell cat conf-email)

0 commit comments

Comments
 (0)