From: Nicolas Thill Date: Thu, 19 May 2005 21:55:48 +0000 (+0000) Subject: Convert quagga to new packaging style X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f6ad530929ba554f0879b1abb86a9a9f441c9c6a;p=openwrt%2Fstaging%2Fansuel.git Convert quagga to new packaging style SVN-Revision: 980 --- diff --git a/openwrt/package/quagga/control/quagga-bgpd.control b/openwrt/package/quagga/control/quagga-bgpd.control deleted file mode 100644 index 1b1e80fa25..0000000000 --- a/openwrt/package/quagga/control/quagga-bgpd.control +++ /dev/null @@ -1,6 +0,0 @@ -Package: quagga-bgpd -Priority: optional -Section: net -Maintainer: Johannes 5 Joemann -Source: buildroot internal -Description: bgpd daemon diff --git a/openwrt/package/quagga/control/quagga-ospfd.control b/openwrt/package/quagga/control/quagga-ospfd.control deleted file mode 100644 index 9ebb2bbba1..0000000000 --- a/openwrt/package/quagga/control/quagga-ospfd.control +++ /dev/null @@ -1,6 +0,0 @@ -Package: quagga-ospfd -Priority: optional -Section: net -Maintainer: Johannes 5 Joemann -Source: buildroot internal -Description: ospf daemon diff --git a/openwrt/package/quagga/control/quagga-ripd.control b/openwrt/package/quagga/control/quagga-ripd.control deleted file mode 100644 index eb426081e1..0000000000 --- a/openwrt/package/quagga/control/quagga-ripd.control +++ /dev/null @@ -1,6 +0,0 @@ -Package: quagga-ripd -Priority: optional -Section: net -Maintainer: Johannes 5 Joemann -Source: buildroot internal -Description: rip daemon diff --git a/openwrt/package/quagga/control/quagga-zebra.control b/openwrt/package/quagga/control/quagga-zebra.control deleted file mode 100644 index c948f2f855..0000000000 --- a/openwrt/package/quagga/control/quagga-zebra.control +++ /dev/null @@ -1,6 +0,0 @@ -Package: quagga-zebra -Priority: optional -Section: net -Maintainer: Johannes 5 Joemann -Source: buildroot internal -Description: zebra daemon diff --git a/openwrt/package/quagga/control/quagga.control b/openwrt/package/quagga/control/quagga.control deleted file mode 100644 index 904542721b..0000000000 --- a/openwrt/package/quagga/control/quagga.control +++ /dev/null @@ -1,6 +0,0 @@ -Package: quagga-all -Priority: optional -Section: net -Maintainer: Johannes 5 Joemann -Source: buildroot internal -Description: routing software package that provides TCP/IP based routing services with routing protocols support such as RIPv1, RIPv2, RIPng, OSPFv2, OSPFv3, BGP-4, and BGP-4+ diff --git a/openwrt/package/quagga/ipkg/CONTROL/postinst b/openwrt/package/quagga/ipkg/CONTROL/postinst deleted file mode 100755 index 0bb4bdda6d..0000000000 --- a/openwrt/package/quagga/ipkg/CONTROL/postinst +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -name=quagga -id=51 - -# do not change below -# check if we are on real system -if [ -z "${IPKG_INSTROOT}" ]; then - # create copies of passwd and group, if we use squashfs - rootfs=`mount |awk '/root/ { print $5 }'` - if [ "$rootfs" = "squashfs" ]; then - if [ -h /etc/group ]; then - rm /etc/group - cp /rom/etc/group /etc/group - fi - if [ -h /etc/passwd ]; then - rm /etc/passwd - cp /rom/etc/passwd /etc/passwd - fi - fi -fi - -echo "" -if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/group)" ]; then - echo "adding group $name to /etc/group" - echo "${name}:x:${id}:" >> ${IPKG_INSTROOT}/etc/group -fi - -if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/passwd)" ]; then - echo "adding user $name to /etc/passwd" - echo "${name}:x:${id}:${id}:${name}:/tmp/.${name}:/bin/false" >> ${IPKG_INSTROOT}/etc/passwd -fi - -grep -q '^zebra[[:space:]]*2601/tcp' ${IPKG_INSTROOT}/etc/services 2>/dev/null -if [ $? -ne 0 ]; then -echo "zebrasrv 2600/tcp" >>${IPKG_INSTROOT}/etc/services -echo "zebra 2601/tcp" >>${IPKG_INSTROOT}/etc/services -echo "ripd 2602/tcp" >>${IPKG_INSTROOT}/etc/services -echo "ripngd 2603/tcp" >>${IPKG_INSTROOT}/etc/services -echo "ospfd 2604/tcp" >>${IPKG_INSTROOT}/etc/services -echo "bgpd 2605/tcp" >>${IPKG_INSTROOT}/etc/services -echo "ospf6d 2606/tcp" >>${IPKG_INSTROOT}/etc/services -echo "ospfapi 2607/tcp" >>${IPKG_INSTROOT}/etc/services -echo "isisd 2608/tcp" >>${IPKG_INSTROOT}/etc/services -fi diff --git a/openwrt/package/quagga/ipkg/quagga-bgpd.control b/openwrt/package/quagga/ipkg/quagga-bgpd.control new file mode 100644 index 0000000000..0c2c401c00 --- /dev/null +++ b/openwrt/package/quagga/ipkg/quagga-bgpd.control @@ -0,0 +1,7 @@ +Package: quagga-bgpd +Priority: optional +Section: net +Maintainer: Johannes 5 Joemann +Source: buildroot internal +Description: A BGPv4, BGPv4\+, BGPv4\- routing engine for use + with Quagga routing software diff --git a/openwrt/package/quagga/ipkg/quagga-ospf6d.control b/openwrt/package/quagga/ipkg/quagga-ospf6d.control new file mode 100644 index 0000000000..07ecbe3c30 --- /dev/null +++ b/openwrt/package/quagga/ipkg/quagga-ospf6d.control @@ -0,0 +1,7 @@ +Package: quagga-ospfd +Priority: optional +Section: net +Maintainer: Johannes 5 Joemann +Source: buildroot internal +Description: An OSPFv3 routing engine for use + with Quagga routing software diff --git a/openwrt/package/quagga/ipkg/quagga-ospfd.control b/openwrt/package/quagga/ipkg/quagga-ospfd.control new file mode 100644 index 0000000000..eeab13acb8 --- /dev/null +++ b/openwrt/package/quagga/ipkg/quagga-ospfd.control @@ -0,0 +1,7 @@ +Package: quagga-ospfd +Priority: optional +Section: net +Maintainer: Johannes 5 Joemann +Source: buildroot internal +Description: An OSPFv2 routing engine for use + with Quagga routing software diff --git a/openwrt/package/quagga/ipkg/quagga-ripd.control b/openwrt/package/quagga/ipkg/quagga-ripd.control new file mode 100644 index 0000000000..b9362d907a --- /dev/null +++ b/openwrt/package/quagga/ipkg/quagga-ripd.control @@ -0,0 +1,7 @@ +Package: quagga-ripd +Priority: optional +Section: net +Maintainer: Johannes 5 Joemann +Source: buildroot internal +Description: A RIP routing engine for use + with Quagga routing software diff --git a/openwrt/package/quagga/ipkg/quagga-ripngd.control b/openwrt/package/quagga/ipkg/quagga-ripngd.control new file mode 100644 index 0000000000..aed95e4936 --- /dev/null +++ b/openwrt/package/quagga/ipkg/quagga-ripngd.control @@ -0,0 +1,7 @@ +Package: quagga-ripd +Priority: optional +Section: net +Maintainer: Johannes 5 Joemann +Source: buildroot internal +Description: A RIPNG routing engine for use + with Quagga routing software diff --git a/openwrt/package/quagga/ipkg/quagga-zebra.control b/openwrt/package/quagga/ipkg/quagga-zebra.control new file mode 100644 index 0000000000..b42fc56093 --- /dev/null +++ b/openwrt/package/quagga/ipkg/quagga-zebra.control @@ -0,0 +1,7 @@ +Package: quagga-zebra +Priority: optional +Section: net +Maintainer: Johannes 5 Joemann +Source: buildroot internal +Description: A routing manager for use + with associated Quagga components diff --git a/openwrt/package/quagga/ipkg/quagga.control b/openwrt/package/quagga/ipkg/quagga.control new file mode 100644 index 0000000000..df98871000 --- /dev/null +++ b/openwrt/package/quagga/ipkg/quagga.control @@ -0,0 +1,8 @@ +Package: quagga +Priority: optional +Section: net +Maintainer: Johannes 5 Joemann +Source: buildroot internal +Description: A routing software package that provides TCP/IP + based routing services with routing protocols support such + as RIPv1, RIPv2, RIPng, OSPFv2, OSPFv3, BGP-4, and BGP-4+. diff --git a/openwrt/package/quagga/ipkg/quagga.postinst b/openwrt/package/quagga/ipkg/quagga.postinst new file mode 100644 index 0000000000..0bb4bdda6d --- /dev/null +++ b/openwrt/package/quagga/ipkg/quagga.postinst @@ -0,0 +1,45 @@ +#!/bin/sh + +name=quagga +id=51 + +# do not change below +# check if we are on real system +if [ -z "${IPKG_INSTROOT}" ]; then + # create copies of passwd and group, if we use squashfs + rootfs=`mount |awk '/root/ { print $5 }'` + if [ "$rootfs" = "squashfs" ]; then + if [ -h /etc/group ]; then + rm /etc/group + cp /rom/etc/group /etc/group + fi + if [ -h /etc/passwd ]; then + rm /etc/passwd + cp /rom/etc/passwd /etc/passwd + fi + fi +fi + +echo "" +if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/group)" ]; then + echo "adding group $name to /etc/group" + echo "${name}:x:${id}:" >> ${IPKG_INSTROOT}/etc/group +fi + +if [ -z "$(grep ^\\${name}: ${IPKG_INSTROOT}/etc/passwd)" ]; then + echo "adding user $name to /etc/passwd" + echo "${name}:x:${id}:${id}:${name}:/tmp/.${name}:/bin/false" >> ${IPKG_INSTROOT}/etc/passwd +fi + +grep -q '^zebra[[:space:]]*2601/tcp' ${IPKG_INSTROOT}/etc/services 2>/dev/null +if [ $? -ne 0 ]; then +echo "zebrasrv 2600/tcp" >>${IPKG_INSTROOT}/etc/services +echo "zebra 2601/tcp" >>${IPKG_INSTROOT}/etc/services +echo "ripd 2602/tcp" >>${IPKG_INSTROOT}/etc/services +echo "ripngd 2603/tcp" >>${IPKG_INSTROOT}/etc/services +echo "ospfd 2604/tcp" >>${IPKG_INSTROOT}/etc/services +echo "bgpd 2605/tcp" >>${IPKG_INSTROOT}/etc/services +echo "ospf6d 2606/tcp" >>${IPKG_INSTROOT}/etc/services +echo "ospfapi 2607/tcp" >>${IPKG_INSTROOT}/etc/services +echo "isisd 2608/tcp" >>${IPKG_INSTROOT}/etc/services +fi