diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-10-19 20:36:23 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-10-19 20:36:23 +0000 |
commit | f2366b5a7d3cc9f7ad4dc6b89e30853b474bccec (patch) | |
tree | 6991fbc4c4f944687f9ca9c965c52620b05faae4 /contrib/solaris/buildpkg.sh | |
parent | 368211ee476cf70467823eccb68e9173b8aacc2b (diff) |
- (bal) Fixed up init.d symlink issue and piddir stuff. Patches by
Zoran Milojevic <Zoran.Milojevic@SS8.com> and j.petersen@msh.de
Diffstat (limited to 'contrib/solaris/buildpkg.sh')
-rwxr-xr-x | contrib/solaris/buildpkg.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/solaris/buildpkg.sh b/contrib/solaris/buildpkg.sh index a71417075..05abb2236 100755 --- a/contrib/solaris/buildpkg.sh +++ b/contrib/solaris/buildpkg.sh | |||
@@ -24,6 +24,7 @@ make install-nokeys DESTDIR=$FAKE_ROOT | |||
24 | ## Fill in some details, like prefix and sysconfdir | 24 | ## Fill in some details, like prefix and sysconfdir |
25 | ETCDIR=`grep "^sysconfdir=" Makefile | sed 's/sysconfdir=//'` | 25 | ETCDIR=`grep "^sysconfdir=" Makefile | sed 's/sysconfdir=//'` |
26 | PREFIX=`grep "^prefix=" Makefile | cut -d = -f 2` | 26 | PREFIX=`grep "^prefix=" Makefile | cut -d = -f 2` |
27 | PIDDIR=`grep "^piddir=" Makefile | cut -d = -f 2` | ||
27 | cd $FAKE_ROOT | 28 | cd $FAKE_ROOT |
28 | 29 | ||
29 | ## Setup our run level stuff while we are at it. | 30 | ## Setup our run level stuff while we are at it. |
@@ -37,12 +38,14 @@ mkdir -p $FAKE_ROOT/etc/rc2.d | |||
37 | ## setup our initscript correctly | 38 | ## setup our initscript correctly |
38 | sed -e "s#%%configDir%%#$ETCDIR#g" \ | 39 | sed -e "s#%%configDir%%#$ETCDIR#g" \ |
39 | -e "s#%%openSSHDir%%#$PREFIX#g" \ | 40 | -e "s#%%openSSHDir%%#$PREFIX#g" \ |
41 | -e "s#%%pidDir%%#$PIDDIR#g" \ | ||
40 | ../opensshd.in > $FAKE_ROOT/etc/init.d/opensshd | 42 | ../opensshd.in > $FAKE_ROOT/etc/init.d/opensshd |
41 | chmod 711 $FAKE_ROOT/etc/init.d/opensshd | 43 | chmod 711 $FAKE_ROOT/etc/init.d/opensshd |
42 | 44 | ||
43 | ln -s $FAKE_ROOT/etc/init.d/opensshd $FAKE_ROOT/etc/rcS.d/K30opensshd | 45 | ln -s ../init.d/opensshd $FAKE_ROOT/etc/rcS.d/K30opensshd |
44 | ln -s $FAKE_ROOT/etc/init.d/opensshd $FAKE_ROOT/etc/rc1.d/K30opensshd | 46 | ln -s ../init.d/opensshd $FAKE_ROOT/etc/rc0.d/K30opensshd |
45 | ln -s $FAKE_ROOT/etc/init.d/opensshd $FAKE_ROOT/etc/rc2.d/S98opensshd | 47 | ln -s ../init.d/opensshd $FAKE_ROOT/etc/rc1.d/K30opensshd |
48 | ln -s ../init.d/opensshd $FAKE_ROOT/etc/rc2.d/S98opensshd | ||
46 | 49 | ||
47 | 50 | ||
48 | ## Ok, this is outright wrong, but it will work. I'm tired of pkgmk | 51 | ## Ok, this is outright wrong, but it will work. I'm tired of pkgmk |