mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-28 11:19:33 +02:00
disable assertions, add an initscript and some config files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1744 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1bd05f06b6
commit
01e95ed6aa
@ -23,7 +23,7 @@ $(eval $(call PKG_template,LIBAVAHI,libavahi,$(PKG_VERSION)-$(PKG_RELEASE),$(ARC
|
||||
$(PKG_BUILD_DIR)/.configured:
|
||||
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
CFLAGS="$(TARGET_CFLAGS) -DNDEBUG" \
|
||||
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
||||
LDFLAGS="-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
|
||||
PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig" \
|
||||
@ -66,6 +66,8 @@ $(PKG_BUILD_DIR)/.configured:
|
||||
--disable-doxygen-pdf \
|
||||
--disable-xmltoman \
|
||||
--with-distro=openwrt \
|
||||
--with-avahi-user=nobody \
|
||||
--with-avahi-group=nogroup \
|
||||
);
|
||||
touch $@
|
||||
|
||||
@ -79,8 +81,12 @@ $(PKG_BUILD_DIR)/.built:
|
||||
|
||||
$(IPKG_AVAHI_DAEMON):
|
||||
install -d -m0755 $(IDIR_AVAHI_DAEMON)/etc/avahi
|
||||
cp -fpR $(PKG_INSTALL_DIR)/etc/avahi/avahi-daemon.conf $(IDIR_AVAHI_DAEMON)/etc/avahi/
|
||||
cp -fpR $(PKG_INSTALL_DIR)/etc/avahi/services $(IDIR_AVAHI_DAEMON)/etc/avahi/
|
||||
install -m0644 ./files/avahi-daemon.conf $(IDIR_AVAHI_DAEMON)/etc/avahi/
|
||||
install -d -m0755 $(IDIR_AVAHI_DAEMON)/etc/avahi/services
|
||||
install -m0644 ./files/service-http $(IDIR_AVAHI_DAEMON)/etc/avahi/services/http.service
|
||||
install -m0644 ./files/service-ssh $(IDIR_AVAHI_DAEMON)/etc/avahi/services/ssh.service
|
||||
install -d -m0755 $(IDIR_AVAHI_DAEMON)/etc/init.d
|
||||
install -m0755 ./files/avahi-daemon.init $(IDIR_AVAHI_DAEMON)/etc/init.d/avahi-daemon
|
||||
install -d -m0755 $(IDIR_AVAHI_DAEMON)/usr/sbin
|
||||
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/avahi-daemon $(IDIR_AVAHI_DAEMON)/usr/sbin/
|
||||
$(RSTRIP) $(IDIR_AVAHI_DAEMON)
|
||||
|
29
openwrt/package/avahi/files/avahi-daemon.conf
Normal file
29
openwrt/package/avahi/files/avahi-daemon.conf
Normal file
@ -0,0 +1,29 @@
|
||||
[server]
|
||||
#host-name=foo
|
||||
#domain-name=local
|
||||
use-ipv4=yes
|
||||
use-ipv6=no
|
||||
check-response-ttl=no
|
||||
use-iff-running=no
|
||||
enable-dbus=no
|
||||
|
||||
[publish]
|
||||
publish-addresses=yes
|
||||
publish-hinfo=yes
|
||||
publish-workstation=no
|
||||
publish-domain=yes
|
||||
#publish-dns-servers=192.168.1.1
|
||||
#publish-resolv-conf-dns-servers=yes
|
||||
|
||||
[reflector]
|
||||
enable-reflector=no
|
||||
reflect-ipv=no
|
||||
|
||||
[rlimits]
|
||||
#rlimit-as=
|
||||
rlimit-core=0
|
||||
rlimit-data=4194304
|
||||
rlimit-fsize=0
|
||||
rlimit-nofile=30
|
||||
rlimit-stack=4194304
|
||||
rlimit-nproc=1
|
25
openwrt/package/avahi/files/avahi-daemon.init
Normal file
25
openwrt/package/avahi/files/avahi-daemon.init
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
BIN=avahi-daemon
|
||||
DEFAULT=/etc/default/$BIN
|
||||
OPTIONS="-D"
|
||||
RUN_D=/var/run/$BIN
|
||||
[ -f $DEFAULT ] && . $DEFAULT
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
mkdir -p $RUN_D
|
||||
$BIN $OPTIONS
|
||||
;;
|
||||
stop)
|
||||
$BIN -k
|
||||
;;
|
||||
reload)
|
||||
$BIN -r
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 (start|stop|reload)"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
10
openwrt/package/avahi/files/service-http
Normal file
10
openwrt/package/avahi/files/service-http
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
|
||||
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
||||
<service-group>
|
||||
<name replace-wildcards="yes">Web Server on %h</name>
|
||||
<service>
|
||||
<type>_http._tcp</type>
|
||||
<port>80</port>
|
||||
<txt-record>path=/index.html</txt-record>
|
||||
</service>
|
||||
</service-group>
|
9
openwrt/package/avahi/files/service-ssh
Normal file
9
openwrt/package/avahi/files/service-ssh
Normal file
@ -0,0 +1,9 @@
|
||||
<?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>
|
Loading…
Reference in New Issue
Block a user