avahi: install sftp service file if build with sftp support

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-05-24 13:37:44 +02:00
parent 45bdfe98b4
commit e031cea641
2 changed files with 6 additions and 11 deletions

View File

@ -1,9 +0,0 @@
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">Secure Shell on %h</name>
<service>
<type>_ssh._tcp</type>
<port>22</port>
</service>
</service-group>

View File

@ -35,11 +35,15 @@ mkdir -p $INSTALL/etc/avahi
cp $PKG_BUILD/avahi-daemon/hosts $INSTALL/etc/avahi
mkdir -p $INSTALL/etc/avahi/services
# cp $PKG_BUILD/avahi-daemon/sftp-ssh.service $INSTALL/etc/avahi/services
# cp $PKG_BUILD/avahi-daemon/ssh.service $INSTALL/etc/avahi/services
cp $PKG_BUILD/avahi-daemon/ssh.service $INSTALL/etc/avahi/services
cp $PKG_DIR/config/http.service $INSTALL/etc/avahi/services
# cp $PKG_DIR/config/samba.service $INSTALL/etc/avahi/services
if [ $SFTP_SERVER = "yes" ]; then
cp $PKG_BUILD/avahi-daemon/sftp-ssh.service $INSTALL/etc/avahi/services
fi
mkdir -p $INSTALL/etc/dbus-1/system.d
cp $PKG_BUILD/avahi-daemon/avahi-dbus.conf $INSTALL/etc/dbus-1/system.d