This commit is contained in:
parent
2d97837c13
commit
334ae24e4e
@ -1,9 +1,10 @@
|
||||
#! /bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: avahi-bookmarks
|
||||
# Required-Start: avahi-dnsconfd
|
||||
# Required-Start: $network $remote_fs avahi-dnsconfd
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop:
|
||||
# Short-Description: ZeroConf Bookmarks server
|
||||
# Description: Avahi ZeroConf Bookmarks server
|
||||
### END INIT INFO
|
||||
|
||||
|
28
avahi-init-lsb.patch
Normal file
28
avahi-init-lsb.patch
Normal file
@ -0,0 +1,28 @@
|
||||
--- initscript/suse/avahi-daemon.in
|
||||
+++ initscript/suse/avahi-daemon.in
|
||||
@@ -1,9 +1,10 @@
|
||||
#! /bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: avahi
|
||||
-# Required-Start: $network dbus
|
||||
+# Required-Start: $network $remote_fs dbus
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop:
|
||||
+# Short-Description: ZeroConf daemon
|
||||
# Description: Avahi, a ZeroConf daemon for mDNS and service registration
|
||||
### END INIT INFO
|
||||
|
||||
--- initscript/suse/avahi-dnsconfd.in
|
||||
+++ initscript/suse/avahi-dnsconfd.in
|
||||
@@ -1,9 +1,10 @@
|
||||
#! /bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: avahi-dnsconfd
|
||||
-# Required-Start: avahi
|
||||
+# Required-Start: $remote_fs avahi
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop:
|
||||
+# Short-Description: ZeroConf daemon
|
||||
# Description: Avahi, a ZeroConf daemon for mDNS and service registration
|
||||
### END INIT INFO
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 11 14:36:43 CEST 2007 - sbrabec@suse.de
|
||||
|
||||
- Updated dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 6 17:03:54 CEST 2007 - bk@suse.de
|
||||
|
||||
|
840
avahi-mono.spec
840
avahi-mono.spec
File diff suppressed because it is too large
Load Diff
@ -1,3 +1,16 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 9 19:07:37 CEST 2007 - sbrabec@suse.cz
|
||||
|
||||
- Rename packages according to shared library naming policy.
|
||||
- Make devel packages binding specific to deliver correct
|
||||
dependencies (#193817).
|
||||
- Rename python package according to python package naming policy.
|
||||
- Prepend library devel packages names by "lib".
|
||||
- libavahi-ui moved to libavahi-glib to prevent depending of avahi
|
||||
core on libglade2.
|
||||
- Split commands line utilities and GTK+ UI utilities to separate
|
||||
packages to not force them for daemon or Qt binding users.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 5 23:22:37 CEST 2007 - maw@suse.de
|
||||
|
||||
|
846
avahi.spec
846
avahi.spec
File diff suppressed because it is too large
Load Diff
49
avahi_spec-prepare.sh
Normal file
49
avahi_spec-prepare.sh
Normal file
@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Autobuild doesn't support package names with macros. This script will update versions in package names.
|
||||
|
||||
ORIG_SPEC=${2%-mono}
|
||||
# Never update -mono file when it is already opened. It will break advanced build scripts:
|
||||
if test "$2" != "$ORIG_SPEC" ; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if ! test -f $1/$ORIG_SPEC.spec ; then
|
||||
exit
|
||||
fi
|
||||
|
||||
for PKGNAME in avahi-client avahi-common avahi-core avahi-ui avahi-glib avahi-qt3 avahi-qt4 ; do
|
||||
# Packages with name ending by number needs separator
|
||||
if test x`echo $PKGNAME | sed "s/.*[0-9]$//"` = x ; then
|
||||
SEPARATOR=-
|
||||
else
|
||||
SEPARATOR=
|
||||
fi
|
||||
sed -i "
|
||||
1,/%changelog/ {
|
||||
# Copy ${PKGNAME//-/_}_soname to hold space
|
||||
/^%define ${PKGNAME//-/_}_soname / {
|
||||
h;
|
||||
s/^%define ${PKGNAME//-/_}_soname //;
|
||||
x;
|
||||
};
|
||||
|
||||
# Update ${PKGNAME}_soname everywhere
|
||||
/$PKGNAME$SEPARATOR[0-9][0-9]*\([[:space:]].*\|\)\$/ {
|
||||
G;
|
||||
s/$PKGNAME$SEPARATOR[0-9][0-9]*\([[:space:]].*\|\)\n\(.*\)/$PKGNAME$SEPARATOR\2\1/;
|
||||
};
|
||||
};" $1/$ORIG_SPEC.spec
|
||||
done
|
||||
|
||||
# Edit file to fit -mono build needs:
|
||||
sed '
|
||||
s/build_mono\ 0/build_mono 1/;
|
||||
s/^.ame:.*/&-mono/;
|
||||
# No more needed.
|
||||
#s/^..hangelog.*/& mono/;
|
||||
s/^\(# WARNING:\).*After editing.*/\1 Do not edit this auto generated file./
|
||||
' <$1/$ORIG_SPEC.spec >$1/$ORIG_SPEC-mono.spec
|
||||
|
||||
# Not wanted for avahi:
|
||||
#cp -a $1/$ORIG_SPEC.changes $1/$ORIG_SPEC-mono.changes
|
@ -1,18 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
function fail {
|
||||
echo Something failed. Too bad.
|
||||
exit 1
|
||||
}
|
||||
|
||||
rm -f avahi-mono.spec.tmp
|
||||
|
||||
cat avahi.spec \
|
||||
| sed 's/^Name: *avahi/Name: avahi-mono/g' \
|
||||
| sed 's/^%define *build_mono 0/%define build_mono 1/g' \
|
||||
> avahi-mono.spec.tmp || fail
|
||||
|
||||
mv avahi-mono.spec.tmp avahi-mono.spec || fail
|
||||
|
||||
echo Fixed up avahi-mono.spec.
|
||||
|
||||
bash avahi_spec-prepare.sh "$PWD" avahi
|
||||
|
Loading…
x
Reference in New Issue
Block a user