]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/commitdiff
Change file layout of the makefiles.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 Sep 2011 09:41:57 +0000 (11:41 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 25 Sep 2011 09:41:57 +0000 (11:41 +0200)
459 files changed:
config/ipfire-3-i686.conf
pkgs/X11vnc/X11vnc.nm
pkgs/acl/acl.nm
pkgs/acpid/acpid.nm
pkgs/aiccu/aiccu.nm
pkgs/attr/attr.nm
pkgs/audit/audit.nm
pkgs/authconfig/authconfig.nm
pkgs/autoconf/autoconf.nm
pkgs/autogen/autogen.nm
pkgs/automake/automake.nm
pkgs/avahi/avahi.nm
pkgs/basesystem/basesystem.nm
pkgs/bash/bash.nm
pkgs/bc/bc.nm
pkgs/beep/beep.nm
pkgs/bind/bind.nm
pkgs/binutils/binutils.nm
pkgs/bird/bird.nm
pkgs/bison/bison.nm
pkgs/boost/boost.nm
pkgs/br2684ctl/br2684ctl.nm
pkgs/bridge-utils/bridge-utils.nm
pkgs/btrfs-progs/btrfs-progs.nm
pkgs/build-essentials/build-essentials.nm [deleted file]
pkgs/build-essentials/buildsystem-tools/chroot-shell [deleted file]
pkgs/build-essentials/buildsystem-tools/cleanup [deleted file]
pkgs/build-essentials/buildsystem-tools/common-functions [deleted file]
pkgs/build-essentials/buildsystem-tools/dependency-tracker [deleted file]
pkgs/build-essentials/buildsystem-tools/functions-common [deleted file]
pkgs/build-essentials/buildsystem-tools/functions-constants [deleted file]
pkgs/build-essentials/buildsystem-tools/functions-directories [deleted file]
pkgs/build-essentials/buildsystem-tools/functions-files [deleted file]
pkgs/build-essentials/buildsystem-tools/functions-lists [deleted file]
pkgs/build-essentials/buildsystem-tools/functions-logging [deleted file]
pkgs/build-essentials/buildsystem-tools/functions-packager-find [deleted file]
pkgs/build-essentials/buildsystem-tools/patch [deleted file]
pkgs/build-essentials/buildsystem-tools/perl.prov [deleted file]
pkgs/build-essentials/buildsystem-tools/perl.req [deleted file]
pkgs/build-essentials/buildsystem-tools/pkg-config.prov [deleted file]
pkgs/build-essentials/buildsystem-tools/pkg-config.req [deleted file]
pkgs/build-essentials/buildsystem-tools/py-compile [deleted file]
pkgs/build-essentials/buildsystem-tools/stripper [deleted file]
pkgs/build-essentials/buildsystem.sh [deleted file]
pkgs/build-essentials/buildsystem/Constants [deleted file]
pkgs/build-essentials/buildsystem/Functions [deleted file]
pkgs/build-essentials/buildsystem/Include [deleted file]
pkgs/build-essentials/buildsystem/Targets [deleted file]
pkgs/build-essentials/buildsystem/Templates [deleted file]
pkgs/build-essentials/buildsystem/__gmsl [deleted file]
pkgs/build-essentials/buildsystem/gmsl [deleted file]
pkgs/build-essentials/quality-agent/quality-agent [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/001-include-files [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-info-files [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-static-libs [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/001-unsafe-files [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/002-bad-symlinks [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/003-libs-location [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-canary [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-execstacks [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-invalid-interpreters [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-needed [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-soname [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-nx [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-relro [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-root-links-to-usr [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/050-rpaths [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/090-man-pages [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/090-python-hardlinks [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/090-remove-empty-dirs [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/095-directory-layout [deleted file]
pkgs/build-essentials/quality-agent/quality-agent.d/qa-include [deleted file]
pkgs/bwm-ng/bwm-ng.nm
pkgs/bzip2/bzip2.nm
pkgs/c_icap/c_icap.nm
pkgs/c_icap_modules/c_icap_modules.nm
pkgs/cairo/cairo.nm
pkgs/ccache/ccache.nm
pkgs/chrony/chrony.nm
pkgs/chrpath/chrpath.nm
pkgs/clamav/clamav.nm
pkgs/cloog-ppl/cloog-ppl.nm
pkgs/cmake/cmake.nm
pkgs/coreutils/coreutils.nm
pkgs/cpio/cpio.nm
pkgs/cpufrequtils/cpufrequtils.nm
pkgs/cracklib/cracklib.nm
pkgs/crda/crda.nm
pkgs/cronie/cronie.nm
pkgs/cryptsetup-luks/cryptsetup-luks.nm
pkgs/cups/cups.nm
pkgs/curl/curl.nm
pkgs/cyrus-sasl/cyrus-sasl.nm
pkgs/dansguardian/dansguardian.nm
pkgs/db4/db4.nm
pkgs/dbus-glib/dbus-glib.nm
pkgs/dbus/dbus.nm
pkgs/dejagnu/dejagnu.nm
pkgs/dhcp/dhcp.nm
pkgs/dhcping/dhcping.nm
pkgs/diffutils/diffutils.nm
pkgs/directfb/directfb.nm
pkgs/dmidecode/dmidecode.nm
pkgs/dmraid/dmraid.nm
pkgs/dos2unix/dos2unix.nm
pkgs/dosfstools/dosfstools.nm
pkgs/dracut/dracut.nm
pkgs/dvdrtools/dvdrtools.nm
pkgs/e2fsprogs/e2fsprogs.nm
pkgs/ebtables/ebtables.nm
pkgs/ed/ed.nm
pkgs/eggdbus/eggdbus.nm
pkgs/eject/eject.nm
pkgs/elfutils/elfutils.nm
pkgs/elinks/elinks.nm
pkgs/etherwake/etherwake.nm
pkgs/ethtool/ethtool.nm
pkgs/expat/expat.nm
pkgs/expect/expect.nm
pkgs/ez-ipupdate/ez-ipupdate.nm
pkgs/fail2ban/fail2ban.nm
pkgs/file/file.nm
pkgs/filesystem/filesystem.nm
pkgs/findutils/findutils.nm
pkgs/firewall/firewall.nm
pkgs/flex/flex.nm
pkgs/fontconfig/fontconfig.nm
pkgs/freeradius/freeradius.nm
pkgs/freetype/freetype.nm
pkgs/fuse-sshfs/fuse-sshfs.nm
pkgs/fuse/fuse.nm
pkgs/gawk/gawk.nm
pkgs/gcc/gcc.nm
pkgs/gdb/gdb.nm
pkgs/gdbm/gdbm.nm
pkgs/gettext/gettext.nm
pkgs/ghostscript/ghostscript.nm
pkgs/git/git.nm
pkgs/glib2/glib2.nm
pkgs/glibc/glibc.nm
pkgs/gmp/gmp.nm
pkgs/gnupg2/gnupg2.nm
pkgs/gnutls/gnutls.nm
pkgs/gobject-introspection/gobject-introspection.nm
pkgs/gperf/gperf.nm
pkgs/grep/grep.nm
pkgs/groff/groff.nm
pkgs/grub/grub.nm
pkgs/gssdp/gssdp.nm
pkgs/guile/guile.nm
pkgs/gupnp-av/gupnp-av.nm
pkgs/gupnp-igd/gupnp-igd.nm
pkgs/gupnp/gupnp.nm
pkgs/gzip/gzip.nm
pkgs/hdparm/hdparm.nm
pkgs/help2man/help2man.nm
pkgs/hostapd/hostapd.nm
pkgs/hplip/hplip.nm
pkgs/htop/htop.nm
pkgs/hwdata/hwdata.nm
pkgs/iana-etc/iana-etc.nm
pkgs/icecream/icecream.nm
pkgs/iftop/iftop.nm
pkgs/igmpproxy/igmpproxy.nm
pkgs/initscripts/initscripts.nm
pkgs/intltool/intltool.nm
pkgs/iproute2/iproute2.nm
pkgs/iptables/iptables.nm
pkgs/iputils/iputils.nm
pkgs/iscsi-initiator-utils/iscsi-initiator-utils.nm
pkgs/iw/iw.nm
pkgs/joe/joe.nm
pkgs/jwhois/jwhois.nm
pkgs/kbd/kbd.nm
pkgs/kernel/kernel.nm
pkgs/l7-protocols/l7-protocols.nm
pkgs/ldapvi/ldapvi.nm
pkgs/less/less.nm
pkgs/libICE/libICE.nm
pkgs/libSM/libSM.nm
pkgs/libVNCServer/libVNCServer.nm
pkgs/libX11/libX11.nm
pkgs/libXau/libXau.nm
pkgs/libXaw/libXaw.nm
pkgs/libXdamage/libXdamage.nm
pkgs/libXdmcp/libXdmcp.nm
pkgs/libXext/libXext.nm
pkgs/libXfixes/libXfixes.nm
pkgs/libXfont/libXfont.nm
pkgs/libXft/libXft.nm
pkgs/libXi/libXi.nm
pkgs/libXmu/libXmu.nm
pkgs/libXpm/libXpm.nm
pkgs/libXrandr/libXrandr.nm
pkgs/libXrender/libXrender.nm
pkgs/libXres/libXres.nm
pkgs/libXt/libXt.nm
pkgs/libXtst/libXtst.nm
pkgs/libXv/libXv.nm
pkgs/libXvMC/libXvMC.nm
pkgs/libXxf86vm/libXxf86vm.nm
pkgs/libaal/libaal.nm
pkgs/libaio/libaio.nm
pkgs/libarchive/libarchive.nm
pkgs/libart/libart.nm
pkgs/libassuan/libassuan.nm
pkgs/libatasmart/libatasmart.nm
pkgs/libcap-ng/libcap-ng.nm
pkgs/libcap/libcap.nm
pkgs/libcgroup/libcgroup.nm
pkgs/libdaemon/libdaemon.nm
pkgs/libdnet/libdnet.nm
pkgs/libdrm/libdrm.nm
pkgs/libedit/libedit.nm
pkgs/libevent/libevent.nm
pkgs/libffi/libffi.nm
pkgs/libfontenc/libfontenc.nm
pkgs/libgcrypt/libgcrypt.nm
pkgs/libgpg-error/libgpg-error.nm
pkgs/libgssglue/libgssglue.nm
pkgs/libidn/libidn.nm
pkgs/libjpeg/libjpeg.nm
pkgs/libksba/libksba.nm
pkgs/libmng/libmng.nm
pkgs/libmpc/libmpc.nm
pkgs/libnet/libnet.nm
pkgs/libnetfilter_conntrack/libnetfilter_conntrack.nm
pkgs/libnetfilter_log/libnetfilter_log.nm
pkgs/libnetfilter_queue/libnetfilter_queue.nm
pkgs/libnfnetlink/libnfnetlink.nm
pkgs/libnfsidmap/libnfsidmap.nm
pkgs/libnl/libnl.nm
pkgs/libpcap/libpcap.nm
pkgs/libpciaccess/libpciaccess.nm
pkgs/libpipeline/libpipeline.nm
pkgs/libpng/libpng.nm
pkgs/librpcsecgss/librpcsecgss.nm
pkgs/libselinux/libselinux.nm
pkgs/libsemanage/libsemanage.nm
pkgs/libsepol/libsepol.nm
pkgs/libsigc++/libsigc++.nm
pkgs/libsolv/libsolv.nm
pkgs/libsoup/libsoup.nm
pkgs/libssh2/libssh2.nm
pkgs/libtasn1/libtasn1.nm
pkgs/libtiff/libtiff.nm
pkgs/libtool/libtool.nm
pkgs/libtorrent/libtorrent.nm
pkgs/libusb-compat/libusb-compat.nm
pkgs/libusb/libusb.nm
pkgs/libuser/libuser.nm
pkgs/libvirt/libvirt.nm
pkgs/libxcb/libxcb.nm
pkgs/libxkbfile/libxkbfile.nm
pkgs/libxml2/libxml2.nm
pkgs/libxslt/libxslt.nm
pkgs/libyaml/libyaml.nm
pkgs/lighttpd/lighttpd.nm
pkgs/linux-atm/linux-atm.nm
pkgs/linux-firmware/linux-firmware.nm
pkgs/lldpd/lldpd.nm
pkgs/lm-sensors/lm-sensors.nm
pkgs/logrotate/logrotate.nm
pkgs/lsof/lsof.nm
pkgs/lua/lua.nm
pkgs/lvm2/lvm2.nm
pkgs/lzo/lzo.nm
pkgs/m4/m4.nm
pkgs/mailcap/mailcap.nm
pkgs/make/make.nm
pkgs/man-db/man-db.nm
pkgs/man-pages/man-pages.nm
pkgs/mc/mc.nm
pkgs/mdadm/mdadm.nm
pkgs/memtest86+/memtest86+.nm
pkgs/mesa/mesa.nm
pkgs/minicom/minicom.nm
pkgs/module-init-tools/module-init-tools.nm
pkgs/mpfr/mpfr.nm
pkgs/multipath-tools/multipath-tools.nm
pkgs/nano/nano.nm
pkgs/nasm/nasm.nm
pkgs/ncurses/ncurses.nm
pkgs/net-snmp/net-snmp.nm
pkgs/net-tools/net-tools.nm
pkgs/netplug/netplug.nm
pkgs/nettle/nettle.nm
pkgs/network/network.nm
pkgs/newt/newt.nm
pkgs/nfs-utils/nfs-utils.nm
pkgs/nmap/nmap.nm
pkgs/noip/noip.nm
pkgs/nspr/nspr.nm
pkgs/nss-myhostname/nss-myhostname.nm
pkgs/nss-softokn/nss-softokn.nm
pkgs/nss-util/nss-util.nm
pkgs/nss/nss.nm
pkgs/nss_ldap/nss_ldap.nm
pkgs/openl2tp/openl2tp.nm
pkgs/openldap/openldap.nm
pkgs/openssh/openssh.nm
pkgs/openssl/openssl.nm
pkgs/openvpn/openvpn.nm
pkgs/os-prober/os-prober.nm
pkgs/p11-kit/p11-kit.nm
pkgs/pakfire/pakfire.nm
pkgs/pam/pam.nm
pkgs/pam_ldap/pam_ldap.nm
pkgs/pango/pango.nm
pkgs/parted/parted.nm
pkgs/passwd/passwd.nm
pkgs/patch/patch.nm
pkgs/pax-utils/pax-utils.nm
pkgs/paxctl/paxctl.nm
pkgs/paxtest/paxtest.nm
pkgs/pcapy/pcapy.nm
pkgs/pciutils/pciutils.nm
pkgs/pcre/pcre.nm
pkgs/pdns-recursor/pdns-recursor.nm
pkgs/pdns/pdns.nm
pkgs/perl-HTML-Parser/perl-HTML-Parser.nm
pkgs/perl-HTML-Tagset/perl-HTML-Tagset.nm
pkgs/perl-Test-Simple/perl-Test-Simple.nm
pkgs/perl-URI/perl-URI.nm
pkgs/perl-XML-Parser/perl-XML-Parser.nm
pkgs/perl-libwww-perl/perl-libwww-perl.nm
pkgs/perl/perl.nm
pkgs/pinentry/pinentry.nm
pkgs/pixman/pixman.nm
pkgs/pkg-config/pkg-config.nm
pkgs/polkit/polkit.nm
pkgs/popt/popt.nm
pkgs/powertop/powertop.nm
pkgs/ppl/ppl.nm
pkgs/ppp/ppp.nm
pkgs/pptp/pptp.nm
pkgs/procps/procps.nm
pkgs/psmisc/psmisc.nm
pkgs/pth/pth.nm
pkgs/pyQt/pyQt.nm
pkgs/pychecker/pychecker.nm
pkgs/pyfire/pyfire.nm
pkgs/pygobject2/pygobject2.nm
pkgs/pyliblzma/pyliblzma.nm
pkgs/pyserial/pyserial.nm
pkgs/python-IPy/python-IPy.nm
pkgs/python-cairo/python-cairo.nm
pkgs/python-cryptsetup/python-cryptsetup.nm
pkgs/python-dbus/python-dbus.nm
pkgs/python-decorator/python-decorator.nm
pkgs/python-distutils-extra/python-distutils-extra.nm
pkgs/python-gudev/python-gudev.nm
pkgs/python-m2crypto/python-m2crypto.nm
pkgs/python-netfilter_conntrack/python-netfilter_conntrack.nm
pkgs/python-parted/python-parted.nm
pkgs/python-piksemel/python-piksemel.nm
pkgs/python-progressbar/python-progressbar.nm
pkgs/python-pyaspects/python-pyaspects.nm
pkgs/python-pyblock/python-pyblock.nm
pkgs/python-pycurl/python-pycurl.nm
pkgs/python-qtermwidget/python-qtermwidget.nm
pkgs/python-setuptools/python-setuptools.nm
pkgs/python-tornado/python-tornado.nm
pkgs/python-urlgrabber/python-urlgrabber.nm
pkgs/python/python.nm
pkgs/pyxattr/pyxattr.nm
pkgs/qemu/qemu.nm
pkgs/qt/qt.nm
pkgs/qtermwidget/qtermwidget.nm
pkgs/quagga/quagga.nm
pkgs/radvd/radvd.nm
pkgs/readline/readline.nm
pkgs/reiser4progs/reiser4progs.nm
pkgs/reiserfsprogs/reiserfsprogs.nm
pkgs/rrdtool/rrdtool.nm
pkgs/rstp/rstp.nm
pkgs/rsync/rsync.nm
pkgs/rsyslog/rsyslog.nm
pkgs/rtorrent/rtorrent.nm
pkgs/samba/samba.nm
pkgs/sane/sane.nm
pkgs/screen/screen.nm
pkgs/sdl/sdl.nm
pkgs/sed/sed.nm
pkgs/setup/setup.nm
pkgs/sg3-utils/sg3-utils.nm
pkgs/shadow-utils/shadow-utils.nm
pkgs/sip/sip.nm
pkgs/slang/slang.nm
pkgs/smartmontools/smartmontools.nm
pkgs/sqlite/sqlite.nm
pkgs/squashfs-tools/squashfs-tools.nm
pkgs/squid/squid.nm
pkgs/squidGuard/squidGuard.nm
pkgs/strace/strace.nm
pkgs/strongswan/strongswan.nm
pkgs/sudo/sudo.nm
pkgs/suricata/suricata.nm
pkgs/swig/swig.nm
pkgs/sysfsutils/sysfsutils.nm
pkgs/syslinux/syslinux.nm
pkgs/system-release/system-release.nm
pkgs/systemd/systemd.nm
pkgs/sysvinit/sysvinit.nm
pkgs/tar/tar.nm
pkgs/tcl/tcl.nm
pkgs/tcpdump/tcpdump.nm
pkgs/telnet/telnet.nm
pkgs/texinfo/texinfo.nm
pkgs/tinc/tinc.nm
pkgs/traceroute/traceroute.nm
pkgs/transmission/transmission.nm
pkgs/tunctl/tunctl.nm
pkgs/udev/udev.nm
pkgs/udisks/udisks.nm
pkgs/ulogd2/ulogd2.nm
pkgs/unzip/unzip.nm
pkgs/upower/upower.nm
pkgs/usb-modemswitch/usb-modeswitch.nm
pkgs/usbutils/usbutils.nm
pkgs/ustr/ustr.nm
pkgs/util-linux/util-linux.nm
pkgs/vala/vala.nm
pkgs/vim/vim.nm
pkgs/vlan/vlan.nm
pkgs/vsftpd/vsftpd.nm
pkgs/wavemon/wavemon.nm
pkgs/wget/wget.nm
pkgs/which/which.nm
pkgs/wireless-regdb/wireless-regdb.nm
pkgs/wireless-tools/wireless-tools.nm
pkgs/wpa_supplicant/wpa_supplicant.nm
pkgs/xcb-proto/xcb-proto.nm
pkgs/xcb-util/xcb-util.nm
pkgs/xen/xen.nm
pkgs/xfsprogs/xfsprogs.nm
pkgs/xkeyboard-config/xkeyboard-config.nm
pkgs/xorg-x11-drv-ati/xorg-x11-drv-ati.nm
pkgs/xorg-x11-drv-evdev/xorg-x11-drv-evdev.nm
pkgs/xorg-x11-drv-intel/xorg-x11-drv-intel.nm
pkgs/xorg-x11-drv-keyboard/xorg-x11-drv-keyboard.nm
pkgs/xorg-x11-drv-mouse/xorg-x11-drv-mouse.nm
pkgs/xorg-x11-drv-nv/xorg-x11-drv-nv.nm
pkgs/xorg-x11-drv-synaptics/xorg-x11-drv-synaptics.nm
pkgs/xorg-x11-drv-vesa/xorg-x11-drv-vesa.nm
pkgs/xorg-x11-drv-vmware/xorg-x11-drv-vmware.nm
pkgs/xorg-x11-font-utils/xorg-x11-font-utils.nm
pkgs/xorg-x11-fonts/xorg-x11-fonts.nm
pkgs/xorg-x11-proto-devel/xorg-x11-proto-devel.nm
pkgs/xorg-x11-server/xorg-x11-server.nm
pkgs/xorg-x11-util-macros/xorg-x11-util-macros.nm
pkgs/xorg-x11-xinit/xorg-x11-xinit.nm
pkgs/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm
pkgs/xorg-x11-xtrans-devel/xorg-x11-xtrans-devel.nm
pkgs/xrandr/xrandr.nm
pkgs/xterm/xterm.nm
pkgs/xz/xz.nm
pkgs/zerofree/zerofree.nm
pkgs/zlib/zlib.nm

index 1e7e9b7e6772a0b53768d5f5ea22a727f4cf76b0..f8045d86b51e60e415b791fd7a1eb02534d908ef 100644 (file)
@@ -4,9 +4,12 @@ name = IPFire
 version = 3.0-alpha2
 slogan = Gluttony
 
+maintainer = IPFire Development Team <developers@ipfire.org>
 vendor = ipfire
 arch = i686
 
+source_dl = http://source.ipfire.org/sources-3.x/
+
 [testingbay]
 description = IPFire Testing Repository
 
index f62da62f7ff62e12bb9946293a0c3c5a8a69110b..f4b2b7795cb09e2abb6b87396efbaf8baa8f9322 100644 (file)
@@ -1,58 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = X11vnc
-PKG_VER        = 0.9.12
-PKG_REL        = 0
-
-PKG_MAINTAINER = 
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.karlrunge.com/x11vnc/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = VNC server for the current X11 session.
+name       = X11vnc
+version    = 0.9.12
+release    = 0
 
-PKG_BUILD_DEPS+= libX11-devel libXdamage-devel libXext-devel libXi-devel \
-       libXfixes-devel libXtst-devel libjpeg-devel libVNCServer-devel \
-       openssl-devel xorg-x11-proto-devel zlib-devel
-PKG_DEPS      += xorg-x11-server
+groups     = Development/Tools
+url        = http://www.karlrunge.com/x11vnc/
+license    = GPLv2
+summary    = VNC server for the current X11 session.
 
-define PKG_DESCRIPTION
+description
        X11vnc provides a VNC access to the current X11 session.
-endef
-
-PKG_TARBALL    = x11vnc-$(PKG_VER).tar.gz
-
-DIR_APP        = $(DIR_SRC)/x11vnc-$(PKG_VER)
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --with-system-libvncserver \
-       --without-tightvnc-filetransfer
-
-# Remove java executables
-define STAGE_INSTALL_CMDS
-       cd $(BUILDROOT) && find -name '*.jar' -exec rm {} \;
-endef
+end
+
+source_dl  = http://sourceforge.net/projects/libvncserver/files/x11vnc/%{version}/
+sources    = x11vnc-%{version}.tar.gz
+
+build
+       requires
+               libX11-devel
+               libXdamage-devel
+               libXext-devel
+               libXi-devel
+               libXfixes-devel
+               libXtst-devel
+               libjpeg-devel
+               libVNCServer-devel
+               openssl-devel
+               xorg-x11-proto-devel
+               zlib-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/x11vnc-%{version}
+
+       configure_options += \
+               --mandir=/usr/share/man \
+               --with-system-libvncserver \
+               --without-tightvnc-filetransfer
+
+       # Remove java executables
+       install_cmds
+               cd %{BUILDROOT} && find -name '*.jar' -exec rm {} \;
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       xorg-x11-server
+               end
+       end
+end
index 1d4fa0a317ae0c0864d00f4909a7e1f7afc3d699..f75a039ffd48aecddd294a41f4bfdf201f9c30ad 100644 (file)
@@ -1,65 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = acl
+version    = 2.2.47
+release    = 1
 
-PKG_NAME       = acl
-PKG_VER        = 2.2.47
-PKG_REL        = 0
+groups     = System/Filesystems
+url        = http://oss.sgi.com/projects/xfs/
+license    = GPLv2+
+summary    = Access control list utilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://oss.sgi.com/projects/xfs/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Access control list utilities.
-
-define PKG_DESCRIPTION
-       This package contains the getfacl and setfacl utilities needed for \
+description
+       This package contains the getfacl and setfacl utilities needed for
        manipulating access control lists.
-endef
-
-PKG_BUILD_DEPS+= gettext libattr-devel libnfsidmap-devel libtool
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += libacl libacl-devel
-
-PKG_FILES-libacl       = $(PKG_FILES-$(PKG_NAME_REAL)-libs)
-PKG_FILES-libacl-devel = $(PKG_FILES-$(PKG_NAME_REAL)-devel)
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --disable-static \
-       --mandir=/usr/share/man
-
-STAGE_BUILD_TARGETS += LIBTOOL="libtool --tag=CC"
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/{,usr/}lib $(BUILDROOT)/usr/include/{acl,sys}
-       install -v -m0755 $(DIR_APP)/libacl/.libs/libacl.so.1.2.0 $(BUILDROOT)/lib
-       ln -vsf libacl.so.1.2.0 $(BUILDROOT)/lib/libacl.so.1
-       ln -vsf ../../lib/libacl.so.1 $(BUILDROOT)/usr/lib/libacl.so
-       cp -vf $(DIR_APP)/include/libacl.h $(BUILDROOT)/usr/include/acl/
-       cp -vf $(DIR_APP)/include/acl.h $(BUILDROOT)/usr/include/sys/
-endef
+end
+
+source_dl  = ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/
+
+build
+       requires
+               gettext
+               libattr-devel
+               libnfsidmap-devel
+               libtool
+       end
+
+       configure_options += \
+               --bindir=/bin \
+               --disable-static \
+               --mandir=/usr/share/man
+
+       make_build_targets += LIBTOOL="libtool --tag=CC"
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/{,usr/}lib %{BUILDROOT}/usr/include/{acl,sys}
+               install -v -m0755 %{DIR_APP}/libacl/.libs/libacl.so.1.2.0 %{BUILDROOT}/lib
+               ln -vsf libacl.so.1.2.0 %{BUILDROOT}/lib/libacl.so.1
+               ln -vsf ../../lib/libacl.so.1 %{BUILDROOT}/usr/lib/libacl.so
+               cp -vf %{DIR_APP}/include/libacl.h %{BUILDROOT}/usr/include/acl/
+               cp -vf %{DIR_APP}/include/acl.h %{BUILDROOT}/usr/include/sys/
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package libacl
+               template LIBS
+       end
+       
+       package libacl-devel
+               template DEVEL
+       end
+end
index ba89365d38157c115dac497681cbe9d340c533fb..01f28f74a0891d6f8d30cf4acd01cd3219f88c8f 100644 (file)
@@ -1,55 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = acpid
-PKG_VER        = 2.0.9
-PKG_REL        = 4
+name       = acpid
+version    = 2.0.9
+release    = 4
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Daemons
-PKG_URL        = http://tedfelix.com/linux/acpid-netlink.html
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = ACPI Event Daemon.
+groups     = Base System/Daemons
+url        = http://tedfelix.com/linux/acpid-netlink.html
+license    = GPLv2+
+summary    = ACPI Event Daemon.
 
-define PKG_DESCRIPTION
+description
        acpid is a daemon that dispatches ACPI events to user-space programs.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && sed -e "s/-Werror//g" -i Makefile
-       cd $(DIR_APP) && make CC=gcc RPM_OPT_FLAGS="$(CFLAGS)" $(PARALLLEISMFLAGS)
-endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/acpi/{actions,events}
-       cp -vf $(DIR_SOURCE)/power $(BUILDROOT)/etc/acpi/events/
-       cp -vf $(DIR_SOURCE)/power.sh $(BUILDROOT)/etc/acpi/actions/
-
-       -mkdir -pv $(BUILDROOT)/etc/sysconfig
-       cp -vf $(DIR_SOURCE)/acpid.sysconfig $(BUILDROOT)/etc/sysconfig/acpid
-endef
+end
+
+source_dl  = http://tedfelix.com/linux/
+
+build
+       build
+               sed -e "s/-Werror//g" -i Makefile
+               make CC=gcc RPM_OPT_FLAGS="%{CFLAGS}" %{PARALLLEISMFLAGS}
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/acpi/{actions,events}
+               cp -vf %{DIR_SOURCE}/power %{BUILDROOT}/etc/acpi/events/
+               cp -vf %{DIR_SOURCE}/power.sh %{BUILDROOT}/etc/acpi/actions/
+
+               mkdir -pv %{BUILDROOT}/etc/sysconfig
+               cp -vf %{DIR_SOURCE}/acpid.sysconfig %{BUILDROOT}/etc/sysconfig/acpid
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index d950dd377186fea97ff25f2f8aece6f48468b871..7334bfd3171dc98d393b8f453bfe8ffcb1dcbb4c 100644 (file)
@@ -1,56 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = aiccu
+version    = 20070115
+release    = 1
 
-PKG_NAME       = aiccu
-PKG_VER        = 20070115
-PKG_REL        = 0
+groups     = System/Daemons
+url        = http://www.sixxs.net/tools/aiccu/
+license    = BSD
+summary    = Automatic IPv6 Connectivity Client Utility for SixXS tunnels.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Daemons
-PKG_URL        = http://www.sixxs.net/tools/aiccu/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Automatic IPv6 Connectivity Client Utility for SixXS tunnels.
+description
+       This client automatically gives one IPv6 connectivity without having
+       to manually configure interfaces etc. One does need a SixXS account
+       and at least a tunnel.
+end
 
-PKG_BUILD_DEPS+= gnutls-devel
+source_dl  = http://www.sixxs.net/archive/sixxs/aiccu/unix/
 
-define PKG_DESCRIPTION
-       This client automatically gives one IPv6 connectivity without having \
-       to manually configure interfaces etc. One does need a SixXS account \
-       and at least a tunnel.
-endef
+build
+       requires
+               gnutls-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       DIR_APP = %{DIR_SRC}/%{name}
 
-DIR_APP = $(DIR_SRC)/$(PKG_NAME)
+       build
+               %{DO_FIX_LIBTOOL}
+               make %{PARALLELISMFLAGS} RPM_OPT_FLAGS="%{CFLAGS}"
+       end
 
-define STAGE_BUILD
-       $(DO_FIX_LIBTOOL)
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) RPM_OPT_FLAGS="$(CFLAGS)"
-endef
+       install_cmds
+               rm -rvf %{BUILDROOT}/{etc,usr/share}
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       rm -rvf $(BUILDROOT)/{etc,usr/share}
-endef
+packages
+       package %{name}
+       end
+end
index 15c3e2958cbfee8245a47df61f493c8346ac4baa..cc27de0a5ecd81916905c696a801dbed2f61f434 100644 (file)
@@ -1,66 +1,53 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = attr
+version    = 2.4.43
+release    = 1
 
-PKG_NAME       = attr
-PKG_VER        = 2.4.43
-PKG_REL        = 0
+groups     = System/Filesystems
+url        = http://oss.sgi.com/projects/xfs/
+license    = GPLv2+ LGPLv2+
+summary    = Tools for extended attribute support.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://oss.sgi.com/projects/xfs/
-PKG_LICENSE    = GPLv2+ LGPLv2+
-PKG_SUMMARY    = Tools for extended attribute support.
-
-define PKG_DESCRIPTION
+description
        A set of tools for manipulating extended attributes on filesystem \
        objects.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_BUILD_DEPS+= gettext libtool
-
-PKG_PACKAGES   = libattr libattr-devel
-
-PKG_FILES-libattr       = $(PKG_FILES-$(PKG_NAME_REAL)-libs)
-PKG_FILES-libattr-devel = $(PKG_FILES-$(PKG_NAME_REAL)-devel)
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --enable-shared \
-       --mandir=/usr/share/man
-
-STAGE_BUILD_TARGETS += LIBTOOL="libtool --tag=CC"
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/{,usr/}lib
-       install -v -m0755 $(DIR_APP)/libattr/.libs/libattr.so.1.1.0 $(BUILDROOT)/lib
-       ln -vsf libattr.so.1.1.0 $(BUILDROOT)/lib/libattr.so.1
-       ln -vsf ../../lib/libattr.so.1 $(BUILDROOT)/usr/lib/libattr.so
-       install -v -d $(BUILDROOT)/usr/include/attr
-       cp -vf $(DIR_APP)/include/{attributes.h,error_context.h,libattr.h,xattr.h} \
-               $(BUILDROOT)/usr/include/attr/
-endef
+end
+
+source_dl  = ftp://oss.sgi.com/projects/xfs/previous/cmd_tars/
+
+build
+       requires
+               gettext
+               libtool
+       end
+
+       configure_options += \
+               --bindir=/bin \
+               --enable-shared \
+               --mandir=/usr/share/man
+
+       make_build_targets += LIBTOOL="libtool --tag=CC"
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/{,usr/}lib
+               install -v -m0755 %{DIR_APP}/libattr/.libs/libattr.so.1.1.0 %{BUILDROOT}/lib
+               ln -vsf libattr.so.1.1.0 %{BUILDROOT}/lib/libattr.so.1
+               ln -vsf ../../lib/libattr.so.1 %{BUILDROOT}/usr/lib/libattr.so
+               install -v -d %{BUILDROOT}/usr/include/attr
+               cp -vf %{DIR_APP}/include/{attributes.h,error_context.h,libattr.h,xattr.h} \
+                       %{BUILDROOT}/usr/include/attr/
+       end
+end
+
+packages
+       package lib%{name}
+       end
+       
+       package lib%{name}-devel
+               template DEVEL
+       end
+end
index 07cbbb5b0983034791c39699a8d65c4200df7c96..04d258f437166d259bbe406f86ba77b0434f5458 100644 (file)
@@ -1,72 +1,70 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = audit
+version    = 2.0.5
+release    = 1
 
-PKG_NAME       = audit
-PKG_VER        = 2.0.5
-PKG_REL        = 0
+groups     = System/Daemons
+url        = http://people.redhat.com/sgrubb/audit/
+license    = GPLv2+
+summary    = User space tools for 2.6 kernel auditing.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Daemons
-PKG_URL        = http://people.redhat.com/sgrubb/audit/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = User space tools for 2.6 kernel auditing.
+description
+       The audit package contains the user space utilities for
+       storing and searching the audit records generate by
+       the audit subsystem in the Linux 2.6 kernel.
+end
 
-PKG_BUILD_DEPS+= autoconf automake libcap-ng-devel libtool openldap-devel \
-       python-devel swig
+source_dl  = http://people.redhat.com/sgrubb/audit/
 
-define PKG_DESCRIPTION
-       The audit package contains the user space utilities for \
-       storing and searching the audit records generate by \
-       the audit subsystem in the Linux 2.6 kernel.
-endef
+build
+       requires
+               autoconf
+               automake
+               libcap-ng-devel
+               libtool
+               openldap-devel
+               python-devel
+               swig
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --sysconfdir=/etc \
+               --sbindir=/sbin \
+               --libdir=/lib \
+               --without-prelude \
+               --without-libwrap \
+               --enable-gssapi-krb5=no \
+               --with-libcap-ng=yes
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+       prepare_cmds
+               autoreconf -fvi
+       end
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --sbindir=/sbin \
-       --libdir=/lib \
-       --without-prelude \
-       --without-libwrap \
-       --enable-gssapi-krb5=no \
-       --with-libcap-ng=yes
+       install_cmds
+               rm -vf %{BUILDROOT}/lib/libau{dit,parse}.so
+               ln -svf ../../lib/libaudit.so.1 %{BUILDROOT}/usr/lib/libaudit.so
+               ln -svf ../../lib/libauparse.so.0 %{BUILDROOT}/usr/lib/libauparse.so
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -fvi
-endef
+               mkdir -pv %{BUILDROOT}/usr/sbin/
+               mv -v %{BUILDROOT}/sbin/audisp*remote %{BUILDROOT}/usr/sbin/
 
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/lib/libau{dit,parse}.so
-       ln -svf ../../lib/libaudit.so.1 $(BUILDROOT)/usr/lib/libaudit.so
-       ln -svf ../../lib/libauparse.so.0 $(BUILDROOT)/usr/lib/libauparse.so
+               rm -rfv %{BUILDROOT}/etc/{rc.d,sysconfig}
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       mv -v $(BUILDROOT)/sbin/audisp*remote $(BUILDROOT)/usr/sbin/
+packages
+       package %{name}
+       end
 
-       rm -rfv $(BUILDROOT)/etc/{rc.d,sysconfig}
-endef
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 85ccebbe2747ca7bda3477ba588a2bee897b2b3c..f89d1aba5620f3e0e0111fac4653e6358962ed9a 100644 (file)
@@ -1,84 +1,75 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = authconfig
+version    = 6.1.14
+release    = 2
 
-PKG_NAME       = authconfig
-PKG_VER        = 6.1.14
-PKG_REL        = 2
+groups     = System/Base
+url        = https://fedorahosted.org/authconfig
+license    = GPLv2+
+summary    = Command line tool for setting up authentication from network services.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = https://fedorahosted.org/authconfig
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Command line tool for setting up authentication from network services.
-
-PKG_BUILD_DEPS+= intltool python-devel
-PKG_DEPS      += newt-python
-
-define PKG_DESCRIPTION
+description
        Authconfig is a command line utility which can configure a workstation\
        to use shadow (more secure) passwords.  Authconfig can also configure a \
        system to be a client for certain networked user information and \
-       authentication schemes. 
-endef
+       authentication schemes.
+end
+
+source_dl  = https://fedorahosted.org/releases/a/u/authconfig/
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               intltool
+               python-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       configure_options += \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --disable-static
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --localstatedir=/var \
-       --disable-static
+       # Hack to allow installation of the desktop file
+       prepare_cmds
+               ln -s /bin/true /usr/bin/desktop-file-install
+       end
 
-# Hack to allow installation of the desktop file
-define STAGE_PREPARE_CMDS
-       ln -s /bin/true /usr/bin/desktop-file-install
-endef
+       install_cmds
+               # Remove useless symlinks in /usr/bin
+               rm -rf %{BUILDROOT}/usr/bin
 
-define STAGE_INSTALL_CMDS
-       # Remove useless symlinks in /usr/bin
-       rm -rf $(BUILDROOT)/usr/bin
+               # Replace absolute symlinks by relative ones
+               cd %{BUILDROOT}/usr/sbin && ln -sf ../share/authconfig/authconfig.py authconfig
+               cd %{BUILDROOT}/usr/sbin && ln -sf ../share/authconfig/authconfig-tui.py authconfig-tui
 
-       # Replace absolute symlinks by relative ones
-       cd $(BUILDROOT)/usr/sbin && ln -sf ../share/authconfig/authconfig.py authconfig
-       cd $(BUILDROOT)/usr/sbin && ln -sf ../share/authconfig/authconfig-tui.py authconfig-tui
+               # Remove symlinks for gtk
+               rm -rf %{BUILDROOT}/usr/sbin/authconfig-gtk
+               rm -rf %{BUILDROOT}/usr/sbin/system-config-authentication
 
-       # Remove symlinks for gtk
-       rm -rf $(BUILDROOT)/usr/sbin/authconfig-gtk
-       rm -rf $(BUILDROOT)/usr/sbin/system-config-authentication
+               # Remove files for authconfig-gtk and system-config-authentication
+               rm -rf %{BUILDROOT}/etc/pam.d/authconfig-gtk
+               rm -rf %{BUILDROOT}/etc/pam.d/system-config-authentication
+               rm -rf %{BUILDROOT}/etc/security/console.apps/authconfig-gtk
+               rm -rf %{BUILDROOT}/etc/security/console.apps/system-config-authentication
+               rm -rf %{BUILDROOT}/usr/share/authconfig/authconfig-gtk.*
+               rm -rf %{BUILDROOT}/usr/share/man/man8/authconfig-gtk.8
+               rm -rf %{BUILDROOT}/usr/share/man/man8/system-config-authentication.8
 
-       # Remove files for authconfig-gtk and system-config-authentication
-       rm -rf $(BUILDROOT)/etc/pam.d/authconfig-gtk
-       rm -rf $(BUILDROOT)/etc/pam.d/system-config-authentication
-       rm -rf $(BUILDROOT)/etc/security/console.apps/authconfig-gtk
-       rm -rf $(BUILDROOT)/etc/security/console.apps/system-config-authentication
-       rm -rf $(BUILDROOT)/usr/share/authconfig/authconfig-gtk.*
-       rm -rf $(BUILDROOT)/usr/share/man/man8/authconfig-gtk.8
-       rm -rf $(BUILDROOT)/usr/share/man/man8/system-config-authentication.8
+               # Remove app icons for authconfig
+               rm -rf %{BUILDROOT}/usr/share/icons
+       end
+end
 
-       # Remove app icons for authconfig
-       rm -rf $(BUILDROOT)/usr/share/icons
-endef
+packages
+       package %{name}
+               requires += newt-python
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 7dda01448541c7a636f325a9b069168a87cbed57..e8fd519b12dad268fec09d3efdc9b78c45ac5e27 100644 (file)
@@ -1,48 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = autoconf
-PKG_VER        = 2.68
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = autoconf
+version    = 2.68
+release    = 1
+arch       = noarch
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/autoconf/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A GNU tool for automatically configuring source code.
+groups     = Development/Tools
+url        = http://www.gnu.org/software/autoconf/
+license    = GPLv2+
+summary    = A GNU tool for automatically configuring source code.
 
-PKG_BUILD_DEPS+= m4 perl
-PKG_DEPS      += m4
-
-define PKG_DESCRIPTION
+description
        GNU's Autoconf is a tool for configuring source code and Makefiles. \
        Using Autoconf, programmers can create portable and configurable \
        packages, since the person building the package is allowed to \
        specify various configuration options.
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/autoconf/
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               m4
+               perl
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.xz
+packages
+       package %{name}
+               requires = m4
+       end
+end
index 54fef040e8e9b1e6626c59592442a84849dca9d8..6e6ee13ebee9ac0d609d19f35a71def376f37933 100644 (file)
@@ -1,46 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = autogen
-PKG_VER        = 5.9.4
-PKG_REL        = 1
+name       = autogen
+version    = 5.9.4
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/autogen/
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = Automated text file generator.
+groups     = Development/Tools
+url        = http://www.gnu.org/software/autogen/
+license    = GPLv3
+summary    = Automated text file generator.
 
-PKG_BUILD_DEPS+= guile-devel libxml2-devel
-
-define PKG_DESCRIPTION
+description
        AutoGen is a tool designed to simplify the creation and maintenance of \
        programs that contain large amounts of repetitious text. It is especially \
        valuable in programs that have several blocks of text that must be kept \
        synchronised.
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/autogen/
+
+build
+       requires
+               guile-devel
+               libxml2-devel
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+       end
+end
index 803fb8df4b93421f3704562582fafb06df1acfb2..c25f1e9df6fb8bfe1d5981806077815fbb28adc6 100644 (file)
@@ -1,46 +1,35 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = automake
-PKG_VER        = 1.11.1
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = automake
+version    = 1.11.1
+release    = 1
+arch       = noarch
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/automake/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A GNU tool for automatically configuring source code.
+groups     = Development/Tools
+url        = http://www.gnu.org/software/automake/
+license    = GPLv2+
+summary    = A GNU tool for automatically configuring source code.
 
-PKG_BUILD_DEPS+= autoconf perl
-PKG_DEPS      += autoconf
-
-define PKG_DESCRIPTION
+description
        Automake is a tool for automatically generating Makefile.in \
        files compliant with the GNU Coding Standards.
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/automake/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               autoconf
+               perl
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+packages
+       package %{name}
+               requires = autoconf
+       end
+end
index ae2d27744bdb60660598afc8d3f009f497b97bc8..2ca00ecff854537d0bb48452c312ff2d7f97cfb3 100644 (file)
@@ -1,40 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = avahi
-PKG_VER        = 0.6.30
-PKG_REL        = 1
+name       = avahi
+version    = 0.6.30
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Zeroconf
-PKG_URL        = http://avahi.org/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Local network service discovery
+groups     = Networking/Zeroconf
+url        = http://avahi.org/
+license    = LGPLv2+
+summary    = Local network service discovery
 
-define PKG_DESCRIPTION
+description
        Avahi is a system which facilitates service discovery on \
        a local network -- this means that you can plug your laptop or \
        computer into a network and instantly be able to view other people who \
@@ -42,27 +20,51 @@ define PKG_DESCRIPTION
        shared. This kind of technology is already found in MacOS X (branded \
        'Rendezvous', 'Bonjour' and sometimes 'ZeroConf') and is very \
        convenient.
-endef
+end
 
-PKG_BUILD_DEPS+= dbus-devel dbus-glib-devel expat-devel gcc-c++ gettext \
-       libdaemon-devel>=0.14 intltool perl perl-XML-Parser pkg-config python-devel \
-       python-dbus
-PKG_DEPS-avahi+= libdaemon>=0.14
+source_dl  = http://avahi.org/download/
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               dbus-devel
+               dbus-glib-devel
+               expat-devel
+               gcc-c++
+               gettext
+               libdaemon-devel>=0.14
+               intltool
+               perl
+               perl-XML-Parser
+               pkg-config
+               python-devel
+               python-dbus
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+       configure_options += \
+               --bindir=/bin \
+               --mandir=/usr/share/man \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --with-distro=none \
+               --disable-gdbm \
+               --disable-qt3 \
+               --disable-qt4 \
+               --disable-gtk \
+               --disable-gtk3 \
+               --disable-pygtk \
+               --disable-mono
+end
 
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --mandir=/usr/share/man \
-       --sysconfdir=/etc \
-       --localstatedir=/var \
-       --with-distro=none \
-       --disable-gdbm \
-       --disable-qt3 \
-       --disable-qt4 \
-       --disable-gtk \
-       --disable-gtk3 \
-       --disable-pygtk \
-       --disable-mono
+packages
+       package %{name}
+               requires = libdaemon>=0.14
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+end
index c50d90d7ded9f95676d2a8144e2ff12165682482..7b972846b2519bce2ae32200093f1dc1e85b5d22 100644 (file)
@@ -1,59 +1,66 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = basesystem
+version    = 2.99
+release    = 4
+epoch      = 1
+arch       = noarch
 
-PKG_NAME       = basesystem
-PKG_VER        = 2.99
-PKG_REL        = 4
-PKG_EPOCH      = 1
-PKG_ARCH       = noarch
+groups     = Base System/Base
+url        =
+license    = GPLv3+
+summary    = Basic system files.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Base
-PKG_URL        =
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = Basic system files.
-
-PKG_BUILD_DEPS = # There are no build dependencies
+description
+       This package contains files that are needed to run basic
+       functions of the system.
+end
 
-# This is a package that pulls lots of other dependencies to always have a
-# useable system.
-PKG_DEPS      += /bin/sh /sbin/init \
-       coreutils file filesystem findutils gawk grep iana-etc initscripts kbd \
-       less module-init-tools network pakfire passwd procps psmisc sed setup \
-       syslog system-release tar udev util-linux
+# Package doesn't have any tarball.
+sources   =
 
-define PKG_DESCRIPTION
-       This package contains files that are needed to run basic \
-       functions of the system.
-endef
+build
+       build
+               : # Nothing to do.
+       end
 
-STAGE_PREPARE = # Nothing to do
-STAGE_BUILD = # Nothing to do
+       install
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/resolv.conf %{BUILDROOT}/etc/
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/resolv.conf $(BUILDROOT)/etc/
-endef
+packages
+       package %{name}
+               requires
+                       /bin/sh
+                       /sbin/init
+                       coreutils
+                       file
+                       filesystem
+                       findutils
+                       gawk
+                       grep
+                       iana-etc
+                       initscripts
+                       kbd
+                       less
+                       module-init-tools
+                       network
+                       pakfire
+                       passwd
+                       procps
+                       psmisc
+                       sed
+                       setup
+                       syslog
+                       system-release
+                       tar
+                       udev
+                       util-linux
+               end
+       end
+end
index 3e27abeecea46416c31ac4c5328be3b6b7ba7218..bc9662d3e4eaca7fee926f6c8d1b368057e041a9 100644 (file)
@@ -1,83 +1,72 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = bash
-PKG_VER        = 4.2
-PKG_REL        = 2
+name       = bash
+version    = 4.2
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Tools
-PKG_URL        = http://www.gnu.org/software/bash/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Bash is short for born again shell.
+groups     = Base Build System/Tools
+url        = http://www.gnu.org/software/bash/
+license    = GPLv2+
+summary    = Bash is short for born again shell.
 
-define PKG_DESCRIPTION
+description
        Bash is the shell, or command language interpreter, that will appear in \
        the GNU operating system. Bash is an sh-compatible shell that incorporates \
        useful features from the Korn shell (ksh) and C shell (csh). It is intended \
        to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard.
-endef
-
-PKG_BUILD_DEPS+= autoconf automake bison ncurses-devel readline-devel
-PKG_DEPS      += /etc/bashrc /etc/profile
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_PREPARE_CMDS
-       # Bash uses the RTLD_LAZY option when loading libraries. We want to use
-       # RTLD_NOW (it is defined from <dlfcn.h>:
-       cd $(DIR_APP) && sed -e "s/filename, RTLD_LAZY/filename, RTLD_NOW/" \
-               -i builtins/enable.def
-
-       cd $(DIR_APP) && sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/$(THISAPP)|" \
-               Makefile.in
-endef
-
-CONFIGURE_ENVIRONMENT += ac_cv_func_working_mktime=yes
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --without-bash-malloc \
-       --with-installed-readline
-
-# Test hangs forever
-#define STAGE_TEST
-#      cd $(DIR_APP) && make tests
-#endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/{bin,etc/profile.d,root}
-
-       # Bash startup files
-       cp -vf $(DIR_SOURCE)/dot_bash_logout $(BUILDROOT)/root/.bash_logout
-       cp -vf $(DIR_SOURCE)/dot_bash_profile $(BUILDROOT)/root/.bash_profile
-       cp -vf $(DIR_SOURCE)/dot_bashrc $(BUILDROOT)/root/.bashrc
-
-       # /etc/profile.d
-       cp -vf $(DIR_SOURCE)/profile.d/* $(BUILDROOT)/etc/profile.d
-
-       ln -svf bash $(BUILDROOT)/bin/sh
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/bash/
+
+build
+       requires
+               autoconf
+               automake
+               bison
+               ncurses-devel
+               readline-devel
+       end
+
+       prepare_cmds
+               # Bash uses the RTLD_LAZY option when loading libraries. We want to use
+               # RTLD_NOW (it is defined from <dlfcn.h>:
+               sed -e "s/filename, RTLD_LAZY/filename, RTLD_NOW/" \
+                       -i builtins/enable.def
+
+               sed -i "s|htmldir = @htmldir@|htmldir = /usr/share/doc/%{thisapp}|" \
+                       Makefile.in
+       end
+
+       configure_options += \
+               --bindir=/bin \
+               --without-bash-malloc \
+               --with-installed-readline
+
+       # Test hangs forever
+       #def test
+       #       make tests
+       #end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/{bin,etc/profile.d,root}
+
+               # Bash startup files
+               cp -vf %{DIR_SOURCE}/dot_bash_logout %{BUILDROOT}/root/.bash_logout
+               cp -vf %{DIR_SOURCE}/dot_bash_profile %{BUILDROOT}/root/.bash_profile
+               cp -vf %{DIR_SOURCE}/dot_bashrc %{BUILDROOT}/root/.bashrc
+
+               # /etc/profile.d
+               cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d
+
+               ln -svf bash %{BUILDROOT}/bin/sh
+       end
+end
+
+packages
+       package %{name}
+               requires = /etc/bashrc /etc/profile
+       end
+end
index 9700e76c9b07db5a9070a977b4e8657368e48d22..71d89a40252ae56f12df4da4b6e0f3fe30f92c99 100644 (file)
@@ -1,56 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = bc
-PKG_VER        = 1.06
-PKG_REL        = 0
+name       = bc
+version    = 1.06
+release    = 0
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Tools
-PKG_URL        = http://www.gnu.org/software/bc/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = bc is an arbitrary precision numeric processing language.
+groups     = System/Tools
+url        = http://www.gnu.org/software/bc/
+license    = GPLv2+
+summary    = bc is an arbitrary precision numeric processing language.
 
-PKG_BUILD_DEPS+= flex
-
-define PKG_DESCRIPTION
+description
        bc is a language that supports arbitrary precision numbers with \
        interactive execution of statements. There are some similarities in the \
        syntax to the C programming language.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --disable-static
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i '/PROTO.*readline/d' bc/scan.l
-       cd $(DIR_APP) && sed -i '/flex -I8/s/8//' configure
-       cd $(DIR_APP) && sed -i '/stdlib/a #include <string.h>' lib/number.c
-       cd $(DIR_APP) && sed -i 's/program.*save/static &/' bc/load.c
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/bc/
+
+build
+       requires
+               flex
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man \
+               --disable-static
+
+       prepare_cmds
+               sed -i '/PROTO.*readline/d' bc/scan.l
+               sed -i '/flex -I8/s/8//' configure
+               sed -i '/stdlib/a #include <string.h>' lib/number.c
+               sed -i 's/program.*save/static &/' bc/load.c
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 9c1ffe787d470616fe8aa3416de8da7c205f8d28..d4da7d29270d44d09029de57806613ccf9080d3d 100644 (file)
@@ -1,58 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = beep
+version    = 1.2.2
+release    = 1
 
-PKG_NAME       = beep
-PKG_VER        = 1.2.2
-PKG_REL        = 1
+groups     = Applications/System
+url        = http://www.johnath.com/beep/
+license    = GPLv2+
+summary    = Beep the PC speaker any number of ways.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://www.johnath.com/beep/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Beep the PC speaker any number of ways.
-
-define PKG_DESCRIPTION
+description
        Beep allows the user to control the PC speaker with precision, \
        allowing different sounds to indicate different events. While it \
        can be run quite happily on the commandline, it's intended place \
        of residence is within shell/perl scripts, notifying the user when \
        something interesting occurs. Of course, it has no notion of \
        what's interesting, but it's real good at that notifying part.
-endef
+end
+
+source_dl  = http://www.johnath.com/beep/
+tarball    = %{thisapp}.tar.gz
+
+build
+       build
+               make FLAGS="%{CFLAGS}" %{PARALLELISMFLAGS}
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       install
+               mkdir -pv %{BUILDROOT}/usr/bin
+               mkdir -pv %{BUILDROOT}/usr/share/man/man1
 
-define STAGE_BUILD
-       $(DO_FIX_LIBTOOL)
-       cd $(DIR_APP) && make FLAGS="$(CFLAGS)" $(PARALLELISMFLAGS)
-endef
+               install -m 0755 beep %{BUILDROOT}/usr/bin
+               cp beep.1.gz %{BUILDROOT}/usr/share/man/man1
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       -mkdir -pv $(BUILDROOT)/usr/share/man/man1
-       cd $(DIR_APP) && install -m 0755 beep $(BUILDROOT)/usr/bin
-       cd $(DIR_APP) && cp beep.1.gz $(BUILDROOT)/usr/share/man/man1
-endef
+packages
+       package beep
+end
index 7ca8cd6baeb67a481bcb9b0c6ba9039f546daea5..4daec6de8044dc129de7529ff3b4d0f2cc9e3eac 100644 (file)
@@ -1,64 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = bind
+version    = 9.7.2-P3
+release    = 1
 
-PKG_NAME       = bind
-PKG_VER        = 9.7.2-P3
-PKG_REL        = 0
+groups     = Networking/Tools
+url        = http://www.isc.org/products/BIND/
+license    = Proprietary
+summary    = BIND provides tools for the DNS.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://www.isc.org/products/BIND/
-PKG_LICENSE    = Proprietary
-PKG_SUMMARY    = BIND provides tools for the DNS.
-
-PKG_BUILD_DEPS+= db4-devel openssl-devel
-
-define PKG_DESCRIPTION
-       BIND (Berkeley Internet Name Domain or named) is the most commonly used \
+description
+       BIND (Berkeley Internet Name Domain or named) is the most commonly used
        DNS server on the Internet, especially on Unix-like systems.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  = ftp://ftp.isc.org/isc/bind/%{version}/
 
-PKG_PACKAGES   = bind-utils
+build
+       requires
+               db4-devel
+               openssl-devel
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && \
+       build
                ./configure \
                        --prefix=/usr \
                        --mandir=/usr/share/man
 
-       cd $(DIR_APP) && make -C lib/dns #$(PARALLELISMFLAGS)
-       cd $(DIR_APP) && make -C lib/isc #$(PARALLELISMFLAGS)
-       cd $(DIR_APP) && make -C lib/bind9 #$(PARALLELISMFLAGS)
-       cd $(DIR_APP) && make -C lib/isccfg #$(PARALLELISMFLAGS)
-       cd $(DIR_APP) && make -C lib/lwres #$(PARALLELISMFLAGS)
-       cd $(DIR_APP) && make -C bin/dig #$(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make -C bin/dig install DESTDIR=$(BUILDROOT)
-endef
+               make -C lib/dns #%{PARALLELISMFLAGS}
+               make -C lib/isc #%{PARALLELISMFLAGS}
+               make -C lib/bind9 #%{PARALLELISMFLAGS}
+               make -C lib/isccfg #%{PARALLELISMFLAGS}
+               make -C lib/lwres #%{PARALLELISMFLAGS}
+               make -C bin/dig #%{PARALLELISMFLAGS}
+       end
+
+       install
+               make -C bin/dig install DESTDIR=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}-utils
+               template MAIN
+       end
+end
index ca7027d775f6c39a29b8741855107f32c58d476a..f8c808ee417b9f6b0db96748ffc3d67bc9b204e7 100644 (file)
@@ -1,85 +1,79 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = binutils
-PKG_VER        = 2.21.51.0.8
-PKG_REL        = 1
+name       = binutils
+version    = 2.21.51.0.8
+release    = 1
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/binutils/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = The GNU Binutils are a collection of binary tools.
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Tools
+url        = http://www.gnu.org/software/binutils/
+license    = GPLv2+
+summary    = The GNU Binutils are a collection of binary tools.
 
-define PKG_DESCRIPTION
-       The GNU Binary Utilities, or binutils, is a collection of programming \
+description
+       The GNU Binary Utilities, or binutils, is a collection of programming
        tools for the manipulation of object code in various object file formats.
-endef
-
-PKG_BUILD_DEPS+= bison dejagnu flex gcc-c++ texinfo zlib-devel
-
-PKG_TARBALL   += $(THISAPP).tar.gz
-
-define STAGE_PREPARE_CMDS
-       -mkdir -pv $(DIR_SRC)/binutils-build
-
-       # Suppress the installation of an outdated standards.info file as a newer
-       # one is installed later on in the Autoconf instructions:
-       cd $(DIR_APP) && rm -fv etc/standards.info
-       cd $(DIR_APP) && sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in
-
-       cd $(DIR_APP) && sed -i -e 's/%''{release}/$(PKG_RELEASE)/g' bfd/Makefile{.am,.in}
-endef
-
-BINUTILS_TARGET_PLATFORM = $(subst -gnu,,$(DISTRO_MACHINE))
-
-define STAGE_BUILD
-       cd $(DIR_SRC)/binutils-build && \
-               ../$(THISAPP)/configure \
-                       --host=$(BINUTILS_TARGET_PLATFORM) \
-                       --build=$(BINUTILS_TARGET_PLATFORM) \
-                       --target=$(BINUTILS_TARGET_PLATFORM) \
-                       --prefix=/usr \
-                       --mandir=/usr/share/man \
-                       --enable-shared \
-                       --disable-nls \
-                       --disable-werror \
-                       --disable-static
-
-       cd $(DIR_SRC)/binutils-build && make tooldir=/usr $(PARALLELISMFLAGS)
-endef
-
-#define STAGE_TEST
-       # Apply a sed substitution to prevent a testsuite error:
-       #cd $(DIR_APP) && sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c
-       #cd $(DIR_SRC)/binutils-build && make check
-#endef
-
-define STAGE_INSTALL
-       cd $(DIR_SRC)/binutils-build && make tooldir=/usr install DESTDIR=$(BUILDROOT)
-
-       cp -fv $(DIR_APP)/include/libiberty.h $(BUILDROOT)/usr/include
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/binutils/
+
+build
+       requires
+               bison
+               dejagnu
+               flex
+               gcc-c++
+               texinfo
+               zlib-devel
+       end
+
+       prepare_cmds
+               mkdir -pv %{DIR_SRC}/binutils-build
+
+               # Suppress the installation of an outdated standards.info file as a newer
+               # one is installed later on in the Autoconf instructions:
+               rm -fv etc/standards.info
+               sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in
+
+               sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in}
+       end
+
+
+       build
+               BINUTILS_TARGET_PLATFORM=$(echo "%{DISTRO_MACHINE}" | sed -e "s/-gnu//")
+
+               cd %{DIR_SRC}/binutils-build && \
+                       ../%{thisapp}/configure \
+                               --host=${BINUTILS_TARGET_PLATFORM} \
+                               --build=${BINUTILS_TARGET_PLATFORM} \
+                               --target=${BINUTILS_TARGET_PLATFORM} \
+                               --prefix=/usr \
+                               --mandir=/usr/share/man \
+                               --enable-shared \
+                               --disable-nls \
+                               --disable-werror \
+                               --disable-static
+
+               cd %{DIR_SRC}/binutils-build && make tooldir=/usr %{PARALLELISMFLAGS}
+       end
+
+       #def test
+       #       # Apply a sed substitution to prevent a testsuite error:
+       #       sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c
+       #       cd %{DIR_SRC}/binutils-build && make check
+       #end
+
+       install
+               cd %{DIR_SRC}/binutils-build && make tooldir=/usr install DESTDIR=%{BUILDROOT}
+
+               cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index b8ecdb56cd8039fa967f6913b159800116762015..e86eda2599529792fd65a1102b3f97a9cc58889c 100644 (file)
@@ -1,70 +1,61 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = bird
+version    = 1.3.1
+release    = 1
 
-PKG_NAME       = bird
-PKG_VER        = 1.3.1
-PKG_REL        = 1
+groups     = Networking/Routing
+url        = http://bird.network.cz/
+license    = GPLv2+
+summary    = BIRD Internet Routing Daemon.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Routing
-PKG_URL        = http://bird.network.cz/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = BIRD Internet Routing Daemon.
-
-PKG_BUILD_DEPS+= bison flex ncurses-devel readline-devel
-
-define PKG_DESCRIPTION
+description
        BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
        protocols BGP, RIP and OSPF.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --localstatedir=/var
-
-define STAGE_PREPARE_CMDS
-       -mkdir -pv $(DIR_APP)/ipv6
-       cd $(DIR_APP) && tar c --exclude ipv6 . | tar x -C ipv6
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && \
-               ./configure $(CONFIGURE_OPTIONS)
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-
-       cd $(DIR_APP)/ipv6 && \
-               ./configure $(CONFIGURE_OPTIONS) --enable-ipv6
-       cd $(DIR_APP)/ipv6 && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-       cd $(DIR_APP)/ipv6 && make install DESTDIR=$(BUILDROOT)
-
-       rm -rfv $(BUILDROOT)/var
-endef
+end
+
+source_dl  = ftp://bird.network.cz/pub/bird/
+
+build
+       requires
+               bison
+               flex
+               ncurses-devel
+               readline-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --localstatedir=/var
+
+       prepare_cmds
+               mkdir -pv %{DIR_APP}/ipv6
+               tar c --exclude ipv6 . | tar x -C ipv6
+       end
+
+       build
+               ./configure %{configure_options}
+               make %{PARALLELISMFLAGS}
+
+               cd ipv6
+               ./configure %{configure_options} --enable-ipv6
+               make %{PARALLELISMFLAGS}
+       end
+
+       install
+               make install DESTDIR=%{BUILDROOT}
+
+               cd ipv6
+               make install DESTDIR=%{BUILDROOT}
+
+               rm -rfv %{BUILDROOT}/var
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 6d9b1aec065ac38c0760bc02a3e95cc3c8641c85..ab7ad3c7ff870aeca2edc4e128de2929d1592b02 100644 (file)
@@ -1,63 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = bison
-PKG_VER        = 2.5
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/bison/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = GNU Bison is a parser generator.
+name       = bison
+version    = 2.5
+release    = 1
 
-PKG_BUILD_DEPS+= m4
-PKG_DEPS      += m4
+groups     = Development/Tools
+url        = http://www.gnu.org/software/bison/
+license    = GPLv2+
+summary    = GNU Bison is a parser generator.
 
-define PKG_DESCRIPTION
+description
        Bison is a general-purpose parser generator that converts an annotated \
        context-free grammar into an LALR(1) or GLR parser for that grammar.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_CONFIGURE_CMDS
-       cd $(DIR_APP) && echo '#define YYENABLE_NLS 1' >> lib/config.h
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       cd $(DIR_APP)/lib && gcc -shared -Wl,-soname,liby.so.$(PKG_VER) \
-               -o liby.so.$(PKG_VER) $(CFLAGS) main.o yyerror.o
-       cd $(DIR_APP)/lib && install -v liby.so.$(PKG_VER) \
-               $(BUILDROOT)/usr/lib/liby.so.$(PKG_VER)
-       ln -vsf liby.so.$(PKG_VER) $(BUILDROOT)/usr/lib/liby.so.2
-       ln -vsf liby.so.2 $(BUILDROOT)/usr/lib/liby.so
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/bison/
+
+build
+       requires
+               m4
+       end
+
+       configure_cmds
+               echo '#define YYENABLE_NLS 1' >> lib/config.h
+       end
+
+       test
+               make check
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               cd %{DIR_APP}/lib && gcc -shared -Wl,-soname,liby.so.%{version} \
+                       -o liby.so.%{version} %{CFLAGS} main.o yyerror.o
+               cd %{DIR_APP}/lib && install -v liby.so.%{version} \
+                       %{BUILDROOT}/usr/lib/liby.so.%{version}
+               ln -vsf liby.so.%{version} %{BUILDROOT}/usr/lib/liby.so.2
+               ln -vsf liby.so.2 %{BUILDROOT}/usr/lib/liby.so
+       end
+end
+
+packages
+       package %{name}
+               requires += m4
+       end
+end
index 16cbc08139313684901d39c52a2a373075dbf56a..0493c0859f10edd2785668e9a602a04ad0a2f37d 100644 (file)
@@ -1,84 +1,76 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = boost
-PKG_VER        = 1.41.0
-PKG_REL        = 0
+name       = boost
+version    = 1.41.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.boost.org/
-PKG_LICENSE    = Boost
-PKG_SUMMARY    = The Boost C++ Libraries.
+groups     = System/Libraries
+url        = http://www.boost.org/
+license    = Boost
+summary    = The Boost C++ Libraries.
 
-PKG_BUILD_DEPS+= cmake gcc-c++ zlib-devel
-
-define PKG_DESCRIPTION
-       Boost provides free peer-reviewed portable C++ source libraries. The \
-       emphasis is on libraries which work well with the C++ Standard \
-       Library, in the hopes of establishing existing practice for \
-       extensions and providing reference implementations so that the Boost \
+description
+       Boost provides free peer-reviewed portable C++ source libraries. The
+       emphasis is on libraries which work well with the C++ Standard
+       Library, in the hopes of establishing existing practice for
+       extensions and providing reference implementations so that the Boost
        libraries are suitable for eventual standardization.
-endef
-
-PKG_TARBALL    = $(THISAPP).cmake0.tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CFLAGS        += -fno-strict-aliasing
-CXXFLAGS      += -fno-strict-aliasing
-
-DIR_APP        = $(DIR_SRC)/$(THISAPP).cmake0
-
-define STAGE_PREPARE_CMDS
-       -mkdir -pv $(DIR_APP)/serial
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP)/serial && \
-               cmake \
-                       -DCMAKE_INSTALL_PREFIX=/usr \
-                       -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-                       -DBUILD_TESTS="NONE" \
-                       -DENABLE_SINGLE_THREADED=YES \
-                       -DINSTALL_VERSIONED=OFF \
-                       -DWITH_MPI=OFF \
-                       -DENABLE_STATIC=OFF \
-                       -DENABLE_DEBUG=OFF \
-                       ..
-
-       cd $(DIR_APP)/serial && make VERBOSE=1 #$(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP)/serial && make install DESTDIR=$(BUILDROOT)
-
-       # Kill any debug library versions that may show up un-invited.
-       rm -f $(BUILDROOT)/usr/lib/*-d.*
-
-       # Remove cmake configuration files used to build the Boost libraries
-       find $(BUILDROOT)/usr/lib -name '*.cmake' -exec rm -f {} \;
-endef
+end
+
+source_dl  = # Cannot find the cmake file.
+sources    = %{thisapp}.cmake0.tar.gz
+
+CFLAGS    += -fno-strict-aliasing
+CXXFLAGS  += -fno-strict-aliasing
+
+DIR_APP    = %{DIR_SRC}/%{thisapp}.cmake0
+
+build
+       requires
+               cmake
+               gcc-c++
+               zlib-devel
+       end
+
+       prepare_cmds
+               mkdir -pv %{DIR_APP}/serial
+       end
+
+       build
+               cd %{DIR_APP}/serial && \
+                       cmake \
+                               -DCMAKE_INSTALL_PREFIX=/usr \
+                               -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+                               -DBUILD_TESTS="NONE" \
+                               -DENABLE_SINGLE_THREADED=YES \
+                               -DINSTALL_VERSIONED=OFF \
+                               -DWITH_MPI=OFF \
+                               -DENABLE_STATIC=OFF \
+                               -DENABLE_DEBUG=OFF \
+                               ..
+
+               make VERBOSE=1 #%{PARALLELISMFLAGS}
+       end
+
+       install
+               cd %{DIR_APP}/serial && make install DESTDIR=%{BUILDROOT}
+
+               # Kill any debug library versions that may show up un-invited.
+               rm -f %{BUILDROOT}/usr/lib/*-d.*
+
+               # Remove cmake configuration files used to build the Boost libraries
+               find %{BUILDROOT}/usr/lib -name '*.cmake' -exec rm -f {} \;
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 3888d4d1efc82fe5bc1d10c2b91a222b5a99edbc..556f94ce9395bcfad2555d218f08fe94bbca167f 100644 (file)
@@ -1,60 +1,47 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = br2684ctl
-PKG_VER        = ipfire-1
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://cvs.linux-atm.sourceforge.net/viewcvs.py/linux-atm/linux-atm/src/br2684/Attic/br2684ctl.8?rev=1.1.2.1&hideattic=0&only_with_tag=V2_5_0
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Utilities for configuring an ATM/ethernet bridge.
+name       = br2684ctl
+version    = ipfire-1
+release    = 1
+
+groups     = Networking/Tools
+url        = http://cvs.linux-atm.sourceforge.net/viewcvs.py/linux-atm/linux-atm/src/br2684/Attic/br2684ctl.8?rev=1.1.2.1&hideattic=0&only_with_tag=V2_5_0
+license    = GPLv2+
+summary    = Utilities for configuring an ATM/ethernet bridge.
+
+description
+       Utility for configuring RFC 2684 ATM/Ethernet bridging
+       ATM bridging is a way to extend Ethernet over an ATM network and is
+       mainly used for DSL connections. This package contains the user space
+       utility needed to configure the kernel driver.
+       This package is needed if you own an USB DSL modem and your connection
+       uses one of these protocols: RFC 1483 bridged (RFC 2684 bridged),
+       PPP over Ethernet (PPPoE).
+end
 
-PKG_BUILD_DEPS+= linux-atm-devel
+sources    = %{thisapp}.tar.bz2
 
-define PKG_DESCRIPTION
-       Utility for configuring RFC 2684 ATM/Ethernet bridging \
-       ATM bridging is a way to extend Ethernet over an ATM network and is \
-       mainly used for DSL connections. This package contains the user space \
-       utility needed to configure the kernel driver. \
-       This package is needed if you own an USB DSL modem and your connection \
-       uses one of these protocols: RFC 1483 bridged (RFC 2684 bridged), \
-       PPP over Ethernet (PPPoE).
-endef
+build
+       requires
+               linux-atm-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+       DIR_APP = %{DIR_SRC}/br2684ctl
 
-DIR_APP        = $(DIR_SRC)/br2684ctl
+       build
+               gcc %{CFLAGS} -latm br2684ctl.c -o br2684ctl
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && gcc $(CFLAGS) -latm br2684ctl.c -o br2684ctl
-endef
+       install
+               mkdir -pv %{BUILDROOT}/usr/bin
+               install -v -m 755 br2684ctl %{BUILDROOT}/usr/bin/br2684ctl
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       cd $(DIR_APP) && install -v -m 755 br2684ctl $(BUILDROOT)/usr/bin/br2684ctl
-endef
+packages
+       package %{name}
+       end
+end
index c82cb12b5944401d0e68e5c84a6e2d8a93789247..4f55a63404dc973d11b27be32b2445dca5d7243d 100644 (file)
@@ -1,58 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = bridge-utils
-PKG_VER        = 1.5
-PKG_REL        = 1
+name       = bridge-utils
+version    = 1.5
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://bridge.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Utilities for configuring the linux ethernet bridge.
+groups     = Networking/Tools
+url        = http://bridge.sourceforge.net/
+license    = GPLv2+
+summary    = Utilities for configuring the linux ethernet bridge.
 
-PKG_BUILD_DEPS+= autoconf automake
-
-define PKG_DESCRIPTION
+description
        This package contains utilities for configuring the linux ethernet \
        bridge. The linux ethernet bridge can be used for connecting multiple \
        ethernet devices together. The connecting is fully transparent: hosts \
        connected to one ethernet device see hosts connected to the other \
        ethernet devices directly.
-endef
+end
+
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+
+build
+       requires
+               autoconf
+               automake
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --sbindir=/sbin
 
-CONFIGURE_OPTIONS += \
-       --sbindir=/sbin
+       prepare_cmds
+               autoconf
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoconf
-endef
+       install_cmds
+               rm -rvf %{BUILDROOT}/usr/include
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       rm -rvf $(BUILDROOT)/usr/include
-endef
+packages
+       package %{name}
+       end
+end
index f68e38848a62c0b8740e4e05548aa2386a7f0f1e..c76feb7be0ab6d60f702f701f34f2f0b22dff06f 100644 (file)
@@ -1,58 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = btrfs-progs
-PKG_VER        = 0.19
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://btrfs.wiki.kernel.org/index.php/Main_Page
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Userspace programs for btrfs.
+name       = btrfs-progs
+version    = 0.19
+release    = 2
 
-PKG_BUILD_DEPS+= e2fsprogs-devel libacl-devel libuuid-devel zlib-devel
+groups     = System/Filesystems
+url        = http://btrfs.wiki.kernel.org/index.php/Main_Page
+license    = GPLv2
+summary    = Userspace programs for btrfs.
 
-define PKG_DESCRIPTION
+description
        The btrfs-progs package provides all the userpsace programs needed to create, \
        check, modify and correct any inconsistencies in the btrfs filesystem.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PATCHES    = btrfs-progs-upstream.patch
-PKG_PATCHES   += btrfs-progs-fix-labels.patch
-PKG_PATCHES   += btrfs-progs-build-everything.patch
-PKG_PATCHES   += btrfs-progs-valgrind.patch
-PKG_PATCHES   += btrfs-progs-build-fixes.patch
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" LDFLAGS="-lcom_err" all convert
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make bindir=$(BUILDROOT)/sbin mandir=$(BUILDROOT)/usr/share install
-endef
+end
+
+sources    = %{thisapp}.tar.bz2
+
+patches    = btrfs-progs-upstream.patch
+patches   += btrfs-progs-fix-labels.patch
+patches   += btrfs-progs-build-everything.patch
+patches   += btrfs-progs-valgrind.patch
+patches   += btrfs-progs-build-fixes.patch
+
+build
+       requires
+               e2fsprogs-devel
+               libacl-devel
+               libuuid-devel
+               zlib-devel
+       end
+
+       build
+               make CFLAGS="%{CFLAGS}" LDFLAGS="-lcom_err" all convert
+       end
+
+       install
+               make bindir=%{BUILDROOT}/sbin mandir=%{BUILDROOT}/usr/share install
+       end
+end
+
+packages
+       package %{name}
+       end
+end
diff --git a/pkgs/build-essentials/build-essentials.nm b/pkgs/build-essentials/build-essentials.nm
deleted file mode 100644 (file)
index 03650f4..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-###############################################################################
-
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = build-essentials
-PKG_VER        = 1.3
-PKG_REL        = 1
-PKG_EPOCH      = 2
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.ipfire.org
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = Elementary scripts for the build system.
-
-PKG_BUILD_DEPS =
-PKG_DEPS      += bash bzip2 coreutils diffutils file filesystem findutils gawk \
-       grep gzip make patch pkgconfig sed setup system-release tar which xz
-
-define PKG_DESCRIPTION
-       This package contains elementary scripts for the pakfire build system.
-endef
-
-STAGE_PREPARE = # Nothing to do here
-STAGE_BUILD = # Nothing to do here
-
-define STAGE_INSTALL
-       # Install the quality-agent and buildsystem header files.
-       -mkdir -pv $(BUILDROOT)/usr/{,s}bin
-       -mkdir -pv $(BUILDROOT)/usr/lib/buildsystem{,-tools}
-       -mkdir -pv $(BUILDROOT)/usr/lib/quality-agent
-
-       cp -vf $(DIR_SOURCE)/buildsystem/* $(BUILDROOT)/usr/lib/buildsystem
-       cp -vf $(DIR_SOURCE)/buildsystem-tools/* $(BUILDROOT)/usr/lib/buildsystem-tools
-
-       cp -vf $(DIR_SOURCE)/quality-agent/quality-agent $(BUILDROOT)/usr/sbin/
-       cp -vrf $(DIR_SOURCE)/quality-agent/quality-agent.d/* \
-               $(BUILDROOT)/usr/lib/quality-agent/
-
-       -mkdir -pv $(BUILDROOT)/etc/profile.d
-       cp -vf $(DIR_SOURCE)/buildsystem.sh $(BUILDROOT)/etc/profile.d/
-
-       # Create symlink to chroot-shell
-       ln -svf ../lib/buildsystem-tools/chroot-shell \
-               $(BUILDROOT)/usr/bin/chroot-shell
-endef
diff --git a/pkgs/build-essentials/buildsystem-tools/chroot-shell b/pkgs/build-essentials/buildsystem-tools/chroot-shell
deleted file mode 100755 (executable)
index 0d4a61f..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-cat <<EOF
-
-       You are now dropped to a chrooted shell of the package's environment.
-
-       The sources have been extracted to /build and maybe there are files left
-       from a last (broken) build. Nothing of that content will be saved after
-       you left the shell.
-
-       You can leave the environment by typing "exit" or Ctrl-D.
-
-EOF
-
-# Setting nice environment
-export PS1="pakfire-chroot \w> "
-
-# Change to directory the user will most likely work in
-if [ -z "${SOURCE_DIR}" ]; then
-       SOURCE_DIR="/build"
-fi
-cd "${SOURCE_DIR}"
-
-exec /bin/bash --login
diff --git a/pkgs/build-essentials/buildsystem-tools/cleanup b/pkgs/build-essentials/buildsystem-tools/cleanup
deleted file mode 100755 (executable)
index 49e7c1b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-dirname=$(dirname ${0})
-
-. ${dirname}/common-functions
-
-directory_remove_orphans $@
diff --git a/pkgs/build-essentials/buildsystem-tools/common-functions b/pkgs/build-essentials/buildsystem-tools/common-functions
deleted file mode 100644 (file)
index 4c44a58..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-# Simply import all files from this directory that
-# begin with functions-*.
-
-BASEDIR=$(dirname ${BASH_SOURCE[0]})
-
-for file in ${BASEDIR}/functions-*; do
-       # Avoid infinite loop when importing this file again
-       [ "$(basename ${file})" = "functions-common" ] && continue
-
-       . ${file}
-done
-
diff --git a/pkgs/build-essentials/buildsystem-tools/dependency-tracker b/pkgs/build-essentials/buildsystem-tools/dependency-tracker
deleted file mode 100755 (executable)
index 8bdb839..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-dirname=$(dirname ${0})
-
-. ${dirname}/common-functions
-
-args=${1}
-
-if [ -n "${2}" ]; then
-       args=${2}
-fi
-
-provides=$(find_provides ${args})
-requires=""
-for require in $(find_requires ${args}); do
-       listmatch ${require} ${provides} || requires="${requires} ${require}"
-done
-
-if [ -n "${PKG_PREREQUIRES}" ]; then
-       echo "prerequires=\"/bin/sh ${PKG_PREREQUIRES}\""
-fi
-echo "requires=\"${requires}\""
-echo "provides=\"${provides}\""
-echo "conflicts=\"${PKG_CONFLICTS}\""
-echo "obsoletes=\"${PKG_OBSOLETES}\""
-
-exit 0
diff --git a/pkgs/build-essentials/buildsystem-tools/functions-common b/pkgs/build-essentials/buildsystem-tools/functions-common
deleted file mode 100644 (file)
index 4c44a58..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-
-# Simply import all files from this directory that
-# begin with functions-*.
-
-BASEDIR=$(dirname ${BASH_SOURCE[0]})
-
-for file in ${BASEDIR}/functions-*; do
-       # Avoid infinite loop when importing this file again
-       [ "$(basename ${file})" = "functions-common" ] && continue
-
-       . ${file}
-done
-
diff --git a/pkgs/build-essentials/buildsystem-tools/functions-constants b/pkgs/build-essentials/buildsystem-tools/functions-constants
deleted file mode 100644 (file)
index 80256f9..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/bash
-
-# Debugging mode for these scripts
-DEBUG=0
-
-# Interpreters that should not be found by find_interpreters()
-INTERPRETERS_TO_BE_SKIPPED="/usr/bin/env"
-
-# Some path constants...
-LIBRARY_PATHS="/lib /usr/lib /libexec /usr/libexec"
-BINARY_PATHS="${LIBRARY_PATHS} /bin /sbin /usr/bin /usr/sbin"
-
-# List of directories that could probably empty and are removed automatically
-# so they won't appear in any package.
-ORPHAN_CANDIDATES="${BINARY_PATHS} /usr /usr/include /usr/share"
-for i in $(seq 0 9); do
-       ORPHAN_CANDIDATES="${ORPHAN_CANDIDATES} /usr/share/man/man${i}"
-done
-ORPHAN_CANDIDATES="${ORPHAN_CANDIDATES} /usr/lib/pkgconfig"
-ORPHAN_CANDIDATES="${ORPHAN_CANDIDATES} /usr/lib/python*"
-
diff --git a/pkgs/build-essentials/buildsystem-tools/functions-directories b/pkgs/build-essentials/buildsystem-tools/functions-directories
deleted file mode 100644 (file)
index 700321c..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-function dir_is_empty() {
-       [ "$(ls -A $@ 2>/dev/null | wc -l)" = "0" ]
-}
-
-function directory_remove_orphans() {
-       if [ "${QUALITY_AGENT_NO_DIRECTORY_PRUNE}" = "yes" ]; then
-               return
-       fi
-
-       local basedir=${1}
-
-       log DEBUG "Removing orphans in ${basedir}"
-
-       local dir
-       local dir_pattern
-       for dir_pattern in ${ORPHAN_CANDIDATES}; do
-               dir=$(echo ${basedir}/${dir_pattern})
-
-               for dir in ${dir}; do
-                       echo "DIR ${dir}" >&2
-                       [ -d "${dir}" ] || continue
-
-                       if dir_is_empty ${dir}; then
-                               log DEBUG "  Found orphaned directory: ${dir}"
-                               rm -rf ${dir}
-                       fi
-               done
-       done
-}
-
diff --git a/pkgs/build-essentials/buildsystem-tools/functions-files b/pkgs/build-essentials/buildsystem-tools/functions-files
deleted file mode 100644 (file)
index 05920c8..0000000
+++ /dev/null
@@ -1,195 +0,0 @@
-#!/bin/bash
-
-# Check if a file is an ELF binary
-#
-function file_is_elf() {
-       local file=${1}
-
-       file "${file}" | grep -q "ELF"
-}
-
-# Check if a file is a script.
-#   If the first line starts with #! this is sufficient.
-#
-function file_is_script() {
-       local file=${1}
-
-       local first_line=$(head -n1 ${file})
-
-       [ "${first_line:0:2}" = "#!" ]
-}
-
-# Get the interpreter of a file.
-#
-function file_get_interpreter() {
-       local file=${1}
-
-       if file_is_elf ${file}; then
-               _file_get_elf_interpreter ${file}
-       elif file_is_script ${file}; then
-               _file_get_script_interpreter ${file}
-       fi
-}
-
-# Hidden function that gets the interpreter from an ELF file.
-#
-function _file_get_elf_interpreter() {
-       local file=${1}
-
-       readelf -l ${file} | grep "program interpreter" | \
-               tr -d "]" | awk '{ print $NF }'
-}
-
-# Hidden fucntion that gets the interpreter from a script file.
-#
-function _file_get_script_interpreter() {
-       local file=${1}
-
-       # If the file is not executeable, no interpreter will be needed
-       [ -x "${file}" ] || return
-
-       local first_line=$(head -n1 ${file})
-
-       first_line="${first_line:2:${#first_line}}"
-
-       # Choose the first argument and strip any parameters if available
-       local interpreter
-       for interpreter in ${first_line}; do
-               echo "${interpreter}"
-               return
-       done
-}
-
-# Check if a file is statically linked.
-#
-function file_is_static() {
-       local file=${1}
-
-       file ${file} | grep -q "statically linked"
-}
-
-# Get NEEDED from a file.
-#
-function file_get_needed() {
-       local file=${1}
-
-       readelf -d ${file} | grep NEEDED | \
-               tr -d "[]" | awk '{ print $NF }'
-}
-
-# Get RPATH from a file.
-#
-function file_get_rpath() {
-       local file=${1}
-
-       readelf -d ${file} | grep RPATH | \
-               tr -d "[]" | awk '{ print $NF }'
-}
-
-# Get SONAME from a file.
-#
-function file_get_soname() {
-       local file=${1}
-
-       local file_basename=$(basename ${file})
-       if [ "${file_basename:0:3}" = "ld-" ]; then
-               log DEBUG "Don't return a SONAME for linkers: ${file}"
-               return
-       fi
-
-       readelf -d ${file} | grep SONAME | \
-               tr -d "[]" | awk '{ print $NF }'
-}
-
-# Check if a file is a shared object.
-#
-function file_is_shared_object() {
-       local file=${1}
-
-       file ${file} | grep -q "shared object"
-}
-
-# Check if a file has the canary.
-#
-function file_has_canary() {
-       local file=${1}
-
-       readelf -s ${file} | grep -q "__stack_chk_fail"
-}
-
-# Check if a file has an executeable stack.
-#
-function file_has_execstack() {
-       local file=${1}
-
-       readelf -h ${file} | grep -qE "Type:[[:space:]]*EXEC"
-}
-
-# Check if a file has NX.
-#
-function file_has_nx() {
-       local file=${1}
-
-       readelf -l ${file} | grep "GNU_STACK" | grep -q "RWE"
-       [ $? != 0 ]
-}
-
-# Check if a file is partly RELRO.
-#
-function file_is_relro_partly() {
-       local file=${1}
-
-       readelf -l ${file} | grep -q "GNU_RELRO"
-}
-
-# Check if a file is fully RELRO.
-#
-function file_is_relro_full() {
-       local file=${1}
-
-       if file_is_relro_partly ${file}; then
-               readelf -d ${file} | grep -q "BIND_NOW"
-               return $?
-       fi
-       return 1
-}
-
-# Find all ELF files.
-#
-function find_elf_files() {
-       local dir
-       local dirs
-       local prefix
-
-       while [ $# -gt 0 ]; do
-               case "${1}" in
-                       --prefix=*)
-                               prefix="${1#--prefix=}/"
-                               ;;
-                       *)
-                               dirs="${dirs} ${1}"
-                               ;;
-               esac
-               shift
-       done
-
-       local file
-       local files
-
-       for dir in ${dirs}; do
-               dir="${prefix}${dir}"
-               for file in $(find ${dir} -type f 2>/dev/null); do
-                       if file_is_elf ${file} && ! file_is_static ${file}; then
-                               files="${files} ${file}"
-                       fi
-               done
-       done
-
-       echo ${files}
-}
-
-function filter_startfiles() {
-       local file=${1}
-
-       grep -qE "crt[1in]\.o$" <<<${file}
-}
diff --git a/pkgs/build-essentials/buildsystem-tools/functions-lists b/pkgs/build-essentials/buildsystem-tools/functions-lists
deleted file mode 100644 (file)
index d8152d4..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-function listsort() {
-       local item
-       for item in $@; do
-               echo "${item}"
-       done | sort -u | tr "\n" " "
-}
-
-function listmatch() {
-       local arg=${1}
-       shift
-
-       local item
-       for item in $@; do
-               if [ "${arg}" = "${item}" ]; then
-                       return 0
-               fi
-       done
-       return 1
-}
-
-function sort_by_length() {
-       local c
-       local i
-       for i in $@; do
-               echo "$(wc -c <<<${i}) ${i}"
-       done | sort -n -r | while read c i; do
-               echo "${i}"
-       done
-}
diff --git a/pkgs/build-essentials/buildsystem-tools/functions-logging b/pkgs/build-essentials/buildsystem-tools/functions-logging
deleted file mode 100644 (file)
index 4fd43ed..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-function log() {
-       local level=${1}
-       shift
-
-       if [ "${level}" = "DEBUG" ] && [ "${DEBUG}" != "1" ]; then
-               return
-       fi
-
-       printf " %1s | %s\n" "${level:0:1}" "$@" >&2
-}
diff --git a/pkgs/build-essentials/buildsystem-tools/functions-packager-find b/pkgs/build-essentials/buildsystem-tools/functions-packager-find
deleted file mode 100644 (file)
index 1b488d9..0000000
+++ /dev/null
@@ -1,237 +0,0 @@
-#!/bin/bash
-
-# A function that finds needed libraries and interpreters.
-#
-function find_requires() {
-       local dir
-       local dirs=$@
-
-       # Find interpreters of all files in the dirs and skip those we provide
-       # ourself.
-       local interpreter
-       local interpreters
-       for interpreter in $(find_interpreters ${dirs}); do
-               local found=0
-               for dir in ${dirs}; do
-                       if [ -e "${dir}/${interpreter}" ]; then
-                               found=1
-                               break
-                       fi
-               done
-
-               [ "${found}" = "0" ] && interpreters="${interpreters} ${interpreter}"
-       done
-
-       # Find NEEDED libs and add them to a list if they are not provided by any
-       # other file in dirs.
-       local neededs
-       for file in $(find_elf_files ${dirs}); do
-               for needed in $(file_get_needed ${file}); do
-                       neededs="${neededs} ${needed}"
-               done
-       done
-
-       # Find all symlink destinations
-       local links=$(find_symlink_destinations ${dirs})
-
-       # Others
-       local others=$(find_python_requires ${dirs})
-       others="${others} $(find_weak_symbols_requires ${dirs})"
-       others="${others} $(find_perl_requires ${dirs})"
-       others="${others} $(find_pkgconfig_requires ${dirs})"
-
-       # Return a sorted and unique(!) list
-       local require
-       local requires
-       for require in $(listsort ${PKG_DEPS} ${interpreters} ${neededs} ${links} ${others}); do
-               [ "${require:0:3}" = "ld-" ] && continue
-
-               if [ -n "${PKG_REQUIRES_FILTER}" ]; then
-                       grep -qE "${PKG_REQUIRES_FILTER}" <<< "${require}" && continue
-               fi
-
-               requires="${requires} ${require}"
-       done
-
-       echo ${requires}
-}
-
-function find_provides() {
-       local dirs=$@
-
-       local file
-       local sonames
-       for file in $(find_elf_files ${dirs}); do
-               sonames="${sonames} $(file_get_soname ${file})"
-       done
-       sonames=$(listsort ${sonames})
-
-       # Others
-       local others=$(find_python_provides ${dirs})
-       others="${others} $(find_weak_symbols_provides ${dirs})"
-       others="${others} $(find_perl_provides ${dirs})"
-       others="${others} $(find_pkgconfig_provides ${dirs})"
-
-       local provide
-       local provides
-       for provide in $(listsort ${PKG_PROVIDES} ${sonames} ${others}); do
-               if [ -n "${PKG_PROVIDES_FILTER}" ]; then
-                       grep -qE "${PKG_PROVIDES_FILTER}" <<< "${provide}" && continue
-               fi
-
-               provides="${provides} ${provide}"
-       done
-
-       echo ${provides}
-}
-
-function find_interpreters() {
-       local dirs=$@
-
-       log DEBUG "Searching for interpreters in ${dirs}"
-
-       local file
-       local interpreter
-       local interpreters
-       for file in $(find ${dirs} -type f 2>/dev/null); do
-               # Get interpreter information from file.
-               interpreter=$(file_get_interpreter ${file})
-
-               # Skip the file silently if the result was empty.
-               [ -z "${interpreter}" ] && continue
-
-               # Skip invalid interpreters that don't start with a slash.
-               if [ "${interpreter:0:1}" != "/" ]; then
-                       log WARNING "Skipping invalid interpreter \"${interpreter}\" from \"${file}\"."
-                       continue
-               fi
-
-               if ! listmatch ${interpreter} ${INTERPRETERS_TO_BE_SKIPPED}; then
-                       interpreters="${interpreters} ${interpreter}"
-               fi
-       done
-
-       interpreters=$(listsort ${interpreters})
-
-       log DEBUG "find_interpreters ${dirs}: ${interpreters}"
-
-       echo "${interpreters}"
-}
-
-# Find the destinations of all symlinks and adds a dependency for that.
-#
-function find_symlink_destinations() {
-        local dir=$@
-
-        local link
-        local links
-        for link in $(find ${dir} -type l 2>/dev/null); do
-                link="$(readlink -m ${link})"
-                [ -e "${link}" ] && continue
-
-                link="${link#${dir}}"
-                links="${links} ${link}"
-        done
-
-        echo ${links}
-}
-
-function find_python_provides() {
-       local dir=${1}
-
-       local file
-       for file in $(find ${dir}/usr/bin/python* 2>/dev/null); do
-               file=$(basename ${file})
-               file=${file#python}
-
-               if [ -n "${file}" ]; then
-                       echo "python-api=${file}"
-               fi
-       done
-}
-
-function find_python_requires() {
-       local dir=${1}
-
-       local file
-       for file in $(find ${dir}/usr/lib -maxdepth 1 2>/dev/null); do
-               file=$(basename ${file})
-
-               if [ "${file:0:6}" = "python" ]; then
-                       file=${file#python}
-
-                       if [ -n "${file}" ]; then
-                               echo "python-api=${file}"
-                       fi
-               fi
-       done
-}
-
-function find_perl_files() {
-       local extension
-       for extension in pm pl; do
-               find $@ -name "*.${extension}" 2>/dev/null
-       done
-}
-
-function find_perl_provides() {
-       [ -x "/usr/bin/perl" ] || return 0
-       perl ${BASEDIR}/perl.prov $(find_perl_files $@) | sort -u
-}
-
-function find_perl_requires() {
-       [ -x "/usr/bin/perl" ] || return 0
-       perl ${BASEDIR}/perl.req $(find_perl_files $@) | sort -u
-}
-
-function find_pkgconfig_provides() {
-       [ -x "/usr/bin/pkg-config" ] || return 0
-       find $@ | ${BASEDIR}/pkg-config.prov
-}
-
-function find_pkgconfig_requires() {
-       [ -x "/usr/bin/pkg-config" ] || return 0
-       find $@ | ${BASEDIR}/pkg-config.req
-}
-
-function find_weak_symbols_provides() {
-       local dirs=$@
-
-       local file
-       local soname
-       local symbol
-       for file in $(find_elf_files ${dirs}); do
-               soname=$(file_get_soname ${file})
-               [ -z "${soname}" ] && continue
-
-               for symbol in $(objdump -p ${file} | grep -E "^[0-9]+" | awk '{ print $4 }'); do
-                       [ "${symbol}" = "${soname}" ] && continue
-                       [ "${symbol}" = "GLIBC_PRIVATE" ] && continue
-
-                       echo "${soname}(${symbol})"
-               done
-       done | sort -u
-}
-
-function find_weak_symbols_requires() {
-       local dirs=$@
-
-       local file
-       for file in $(find_elf_files ${dirs}); do
-           objdump -p ${file} | awk 'BEGIN { START=0; LIBNAME=""; }
-                       /^$/ { START=0; }
-                       /^Dynamic Section:$/ { START=1; }
-                       (START==1) && /NEEDED/ {
-                               print $2;
-                       }
-                       (START==2) && /^[A-Za-z]/ { START=3; }
-                       /^Version References:$/ { START=2; }
-                       (START==2) && /required from/ {
-                           sub(/:/, "", $3);
-                           LIBNAME=$3;
-                       }
-                       (START==2) && (LIBNAME!="") && ($4!="") && (($4~/^GLIBC_*/) || ($4~/^GCC_*/)) {
-                           print LIBNAME "(" $4 ")";
-                       }'
-       done | grep -v "GLIBC_PRIVATE" | sort -u
-}
diff --git a/pkgs/build-essentials/buildsystem-tools/patch b/pkgs/build-essentials/buildsystem-tools/patch
deleted file mode 100755 (executable)
index 68fef90..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-for patch in $@; do
-       echo "Applying file ${patch}..."
-
-       if [ "${patch##*/*.}" = "patch0" ]; then
-               cmd="patch -Np0"
-       else
-               cmd="patch -Np1"
-       fi
-
-       ${cmd} -i ${patch}
-       ret=$?
-
-       if [ ${ret} -ne 0 ]; then
-               exit ${ret}
-       fi
-done
diff --git a/pkgs/build-essentials/buildsystem-tools/perl.prov b/pkgs/build-essentials/buildsystem-tools/perl.prov
deleted file mode 100644 (file)
index 73bec51..0000000
+++ /dev/null
@@ -1,199 +0,0 @@
-#!/usr/bin/perl
-
-# RPM (and it's source code) is covered under two separate licenses.
-
-# The entire code base may be distributed under the terms of the GNU
-# General Public License (GPL), which appears immediately below.
-# Alternatively, all of the source code in the lib subdirectory of the
-# RPM source code distribution as well as any code derived from that
-# code may instead be distributed under the GNU Library General Public
-# License (LGPL), at the choice of the distributor. The complete text
-# of the LGPL appears at the bottom of this file.
-
-# This alternative is allowed to enable applications to be linked
-# against the RPM library (commonly called librpm) without forcing
-# such applications to be distributed under the GPL.
-
-# Any questions regarding the licensing of RPM should be addressed to
-# Erik Troan <ewt@redhat.com>.
-
-# a simple script to print the proper name for perl libraries.
-
-# To save development time I do not parse the perl grammmar but
-# instead just lex it looking for what I want.  I take special care to
-# ignore comments and pod's.
-
-# it would be much better if perl could tell us the proper name of a
-# given script.
-
-# The filenames to scan are either passed on the command line or if
-# that is empty they are passed via stdin.
-
-# If there are lines in the file which match the pattern
-#      (m/^\s*\$VERSION\s*=\s+/)
-# then these are taken to be the version numbers of the modules.
-# Special care is taken with a few known idioms for specifying version
-# numbers of files under rcs/cvs control.
-
-# If there are strings in the file which match the pattern
-#     m/^\s*\$RPM_Provides\s*=\s*["'](.*)['"]/i
-# then these are treated as additional names which are provided by the
-# file and are printed as well.
-
-# I plan to rewrite this in C so that perl is not required by RPM at
-# build time.
-
-# by Ken Estes Mail.com kestes@staff.mail.com
-
-if ("@ARGV") {
-  foreach (@ARGV) {
-    process_file($_);
-  }
-} else {
-
-  # notice we are passed a list of filenames NOT as common in unix the
-  # contents of the file.
-
-  foreach (<>) {
-    process_file($_);
-  }
-}
-
-
-foreach $module (sort keys %require) {
-  if (length($require{$module}) == 0) {
-    print "perl($module)\n";
-  } else {
-
-    # I am not using rpm3.0 so I do not want spaces arround my
-    # operators. Also I will need to change the processing of the
-    # $RPM_* variable when I upgrade.
-
-    print "perl($module)=$require{$module}\n";
-  }
-}
-
-exit 0;
-
-
-
-sub process_file {
-
-  my ($file) = @_;
-  chomp $file;
-  
-  open(FILE, "<$file") || return;
-
-  my ($package, $version, $incomment, $inover) = ();
-
-  while (<FILE>) {
-    
-    # skip the documentation
-
-    # we should not need to have item in this if statement (it
-    # properly belongs in the over/back section) but people do not
-    # read the perldoc.
-
-    if (m/^=(head[1-4]|pod|item)/) {
-      $incomment = 1;
-    }
-
-    if (m/^=(cut)/) {
-      $incomment = 0;
-      $inover = 0;
-    }
-    
-    if (m/^=(over)/) {
-      $inover = 1;
-    }
-
-    if (m/^=(back)/) {
-      $inover = 0;
-    }
-
-    if ($incomment || $inover) {
-       next;
-    }
-    
-    # skip the data section
-    if (m/^__(DATA|END)__$/) {
-      last;
-    }
-
-    # not everyone puts the package name of the file as the first
-    # package name so we report all namespaces except some common
-    # false positives as if they were provided packages (really ugly).
-
-    if (m/^\s*package\s+([_:a-zA-Z0-9]+)\s*;/) {
-      $package=$1;
-      undef $version;
-      if ($package eq 'main') {
-        undef $package;
-      } else {
-        # If $package already exists in the $require hash, it means
-        # the package definition is broken up over multiple blocks.
-        # In that case, don't stomp a previous $VERSION we might have
-        # found.  (See BZ#214496.)
-        $require{$package}=undef unless (exists $require{$package});
-      }
-    }
-
-    # after we found the package name take the first assignment to
-    # $VERSION as the version number. Exporter requires that the
-    # variable be called VERSION so we are safe.
-
-    # here are examples of VERSION lines from the perl distribution
-
-    #FindBin.pm:$VERSION = $VERSION = sprintf("%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/);
-    #ExtUtils/Install.pm:$VERSION = substr q$Revision: 1.9 $, 10;
-    #CGI/Apache.pm:$VERSION = (qw$Revision: 1.9 $)[1];
-    #DynaLoader.pm:$VERSION = $VERSION = "1.03";     # avoid typo warning
-    #General.pm:$Config::General::VERSION = 2.33;
-    # 
-    # or with the new "our" pragma you could (read will) see:
-    #
-    #    our $VERSION = '1.00'
-    if (($package) && (m/^\s*(our\s+)?\$(\Q$package\E::)?VERSION\s*=\s+/)) {
-
-      # first see if the version string contains the string
-      # '$Revision' this often causes bizzare strings and is the most
-      # common method of non static numbering.
-
-      if (m/(\$Revision: (\d+[.0-9]+))/) {
-       $version= $2; 
-      } elsif (m/[\'\"]?(\d+[.0-9]+)[\'\"]?/) {
-       
-       # look for a static number hard coded in the script
-       
-       $version= $1; 
-      }
-      $require{$package}=$version;
-    }
-  
-    # Allow someone to have a variable that defines virtual packages
-    # The variable is called $RPM_Provides.  It must be scoped with 
-    # "our", but not "local" or "my" (just would not make sense). 
-    # 
-    # For instance:
-    #  
-    #     $RPM_Provides = "blah bleah"
-    # 
-    # Will generate provides for "blah" and "bleah".
-    #
-    # Each keyword can appear multiple times.  Don't
-    #  bother with datastructures to store these strings,
-    #  if we need to print it print it now.
-       
-    if ( m/^\s*(our\s+)?\$RPM_Provides\s*=\s*["'](.*)['"]/i) {
-      foreach $_ (split(/\s+/, $2)) {
-       print "$_\n";
-      }
-    }
-
-  }
-
-  close(FILE) ||
-    die("$0: Could not close file: '$file' : $!\n");
-
-  return ;
-}
diff --git a/pkgs/build-essentials/buildsystem-tools/perl.req b/pkgs/build-essentials/buildsystem-tools/perl.req
deleted file mode 100644 (file)
index d0a1cd7..0000000
+++ /dev/null
@@ -1,249 +0,0 @@
-#!/usr/bin/perl
-
-# RPM (and its source code) is covered under two separate licenses. 
-
-# The entire code base may be distributed under the terms of the GNU
-# General Public License (GPL), which appears immediately below.
-# Alternatively, all of the source code in the lib subdirectory of the
-# RPM source code distribution as well as any code derived from that
-# code may instead be distributed under the GNU Library General Public
-# License (LGPL), at the choice of the distributor. The complete text
-# of the LGPL appears at the bottom of this file.
-
-# This alternatively is allowed to enable applications to be linked
-# against the RPM library (commonly called librpm) without forcing
-# such applications to be distributed under the GPL.
-
-# Any questions regarding the licensing of RPM should be addressed to
-# Erik Troan <ewt@redhat.com>.
-
-# a simple makedepend like script for perl.
-# To save development time I do not parse the perl grammmar but
-# instead just lex it looking for what I want.  I take special care to
-# ignore comments and pod's.
-
-# It would be much better if perl could tell us the dependencies of a
-# given script.
-
-# The filenames to scan are either passed on the command line or if
-# that is empty they are passed via stdin.
-
-# If there are strings in the file which match the pattern
-#     m/^\s*\$RPM_Requires\s*=\s*["'](.*)['"]/i
-# then these are treated as additional names which are required by the
-# file and are printed as well.
-
-# I plan to rewrite this in C so that perl is not required by RPM at
-# build time.
-
-# by Ken Estes Mail.com kestes@staff.mail.com
-
-if ("@ARGV") {
-  foreach (@ARGV) {
-    process_file($_);
-  }
-} else {
-  
-  # notice we are passed a list of filenames NOT as common in unix the
-  # contents of the file.
-  
-  foreach (<>) {
-    process_file($_);
-  }
-}
-
-
-foreach $module (sort keys %require) {
-  if (length($require{$module}) == 0) {
-    print "perl($module)\n";
-  } else {
-
-    # I am not using rpm3.0 so I do not want spaces around my
-    # operators. Also I will need to change the processing of the
-    # $RPM_* variable when I upgrade.
-
-    print "perl($module)>=$require{$module}\n";
-  }
-}
-
-exit 0;
-
-
-
-sub process_file {
-  
-  my ($file) = @_;
-  chomp $file;
-  
-  open(FILE, "<$file") || return;
-  
-  while (<FILE>) {
-    
-    # skip the "= <<" block
-
-    if ( ( m/^\s*\$(?:.*)\s*=\s*<<\s*(["'`])(.*)\1/) ||
-         ( m/^\s*\$(.*)\s*=\s*<<(\w*)\s*;/) ) {
-      $tag = $2;
-      while (<FILE>) {
-        chomp;
-        ( $_ eq $tag ) && last;
-      }
-      $_ = <FILE>;
-    }
-
-    # skip q{} quoted sections - just hope we don't have curly brackets
-    # within the quote, nor an escaped hash mark that isn't a comment
-    # marker, such as occurs right here. Draw the line somewhere.
-    if ( m/^.*\Wq[qxwr]?\s*([\{\(\[#|\/])[^})\]#|\/]*$/ && ! m/^\s*(require|use)\s/ ) {
-      $tag = $1;
-      $tag =~ tr/{\(\[\#|\//})]#|\//;
-      while (<FILE>) {
-        ( $_ =~ m/\}/ ) && last;
-      }
-    }
-
-    # skip the documentation
-
-    # we should not need to have item in this if statement (it
-    # properly belongs in the over/back section) but people do not
-    # read the perldoc.
-
-    if ( (m/^=(head[1-4]|pod|item)/) .. (m/^=(cut)/) ) {
-      next;
-    }
-
-    if ( (m/^=(over)/) .. (m/^=(back)/) ) {
-      next;
-    }
-    
-    # skip the data section
-    if (m/^__(DATA|END)__$/) {
-      last;
-    }
-
-    # Each keyword can appear multiple times.  Don't
-    #  bother with datastructures to store these strings,
-    #  if we need to print it print it now.
-    #
-       # Again allow for "our".
-    if ( m/^\s*(our\s+)?\$RPM_Requires\s*=\s*["'](.*)['"]/i) {
-      foreach $_ (split(/\s+/, $2)) {
-       print "$_\n";
-      }
-    }
-
-    if ( 
-
-# ouch could be in a eval, perhaps we do not want these since we catch
-# an exception they must not be required
-
-#   eval { require Term::ReadLine } or die $@;
-#   eval "require Term::Rendezvous;" or die $@;
-#   eval { require Carp } if defined $^S; # If error/warning during compilation,
-
-
-       (m/^(\s*)         # we hope the inclusion starts the line
-        (require|use)\s+(?!\{)     # do not want 'do {' loops
-        # quotes around name are always legal
-        [\'\"]?([^\;\ \'\"\t]*)[\'\"]?[\t\;\ ]
-        # the syntax for 'use' allows version requirements
-        \s*([.0-9]*)
-        /x)
-       ) {
-      my ($whitespace, $statement, $module, $version) = ($1, $2, $3,$4);
-
-      # we only consider require statements that are flush against
-      # the left edge. any other require statements give too many
-      # false positives, as they are usually inside of an if statement
-      # as a fallback module or a rarely used option
-
-      ($whitespace ne "" && $statement eq "require") && next;
-
-      # if there is some interpolation of variables just skip this
-      # dependency, we do not want
-      #        do "$ENV{LOGDIR}/$rcfile";
-   
-      ($module =~ m/\$/) && next;
-
-      # skip if the phrase was "use of" -- shows up in gimp-perl, et al.
-      next if $module eq 'of';
-
-      # if the module ends in a comma we probaly caught some
-      # documentation of the form 'check stuff,\n do stuff, clean
-      # stuff.' there are several of these in the perl distribution
-
-      ($module  =~ m/[,>]$/) && next;
-
-      # if the module name starts in a dot it is not a module name.
-      # Is this necessary?  Please give me an example if you turn this
-      # back on.
-
-      #      ($module =~ m/^\./) && next;
-
-      # if the module ends with .pm strip it to leave only basename.
-      # starts with /, which means its an absolute path to a file
-      if ($module =~ m(^/)) {
-        print "$module\n";
-        next;
-      }
-
-      # sometimes people do use POSIX qw(foo), or use POSIX(qw(foo)) etc.
-      # we can strip qw.*$, as well as (.*$:
-      $module =~ s/qw.*$//;
-      $module =~ s/\(.*$//;
-
-      $module =~ s/\.pm$//;
-
-      # some perl programmers write 'require URI/URL;' when 
-      # they mean 'require URI::URL;'
-
-      $module =~ s/\//::/;
-
-      # trim off trailing parentheses if any.  Sometimes people pass
-      # the module an empty list.
-
-      $module =~ s/\(\s*\)$//;
-
-      if ( $module =~ m/^v?([0-9._]+)$/ ) {
-      # if module is a number then both require and use interpret that
-      # to mean that a particular version of perl is specified
-
-      my $ver=$1;
-      if ($ver =~ /5.00/) {
-        print "perl>=0:$ver\n";
-        next;
-      }
-      else {
-        print "perl>=1:$ver\n";
-        next;
-      }
-
-      };
-
-      # ph files do not use the package name inside the file.
-      # perlmodlib documentation says:
-      
-      #       the .ph files made by h2ph will probably end up as
-      #       extension modules made by h2xs.
-      
-      # so do not expend much effort on these.
-
-
-      # there is no easy way to find out if a file named systeminfo.ph
-      # will be included with the name sys/systeminfo.ph so only use the
-      # basename of *.ph files
-
-      ($module  =~ m/\.ph$/) && next;
-
-      $require{$module}=$version;
-      $line{$module}=$_;
-    }
-    
-  }
-
-  close(FILE) ||
-    die("$0: Could not close file: '$file' : $!\n");
-  
-  return ; 
-}
diff --git a/pkgs/build-essentials/buildsystem-tools/pkg-config.prov b/pkgs/build-essentials/buildsystem-tools/pkg-config.prov
deleted file mode 100755 (executable)
index 2ef9b3c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-pkgconfig=${1:-/usr/bin/pkg-config}
-test -x $pkgconfig || exit 0
-while read filename ; do
-case "${filename}" in
-*.pc)
-       # Assume that this file doesn't contain useful information.
-       needs_pkgconfig=false
-       # Query the dependencies of the package.
-       $pkgconfig --print-provides "$filename" 2> /dev/null | while read n r v ; do
-               # We have a dependency.  Make a note that we need the pkgconfig
-               # tool for this package.
-               echo "pkgconfig($n)$r$v"
-               needs_pkgconfig=true
-       done
-       # The dependency on the pkgconfig package itself.
-       if $needs_pkgconfig ; then
-               echo pkgconfig
-       fi
-       ;;
-esac
-done
diff --git a/pkgs/build-essentials/buildsystem-tools/pkg-config.req b/pkgs/build-essentials/buildsystem-tools/pkg-config.req
deleted file mode 100755 (executable)
index edb8bce..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/bash
-pkgconfig=${1:-/usr/bin/pkg-config}
-test -x $pkgconfig || exit 0
-while read filename ; do
-case "${filename}" in
-*.pc)
-       $pkgconfig --print-requires "$filename" 2> /dev/null | while read n r v ; do
-               echo "pkgconfig($n)$r$v"
-       done
-esac
-done
diff --git a/pkgs/build-essentials/buildsystem-tools/py-compile b/pkgs/build-essentials/buildsystem-tools/py-compile
deleted file mode 100755 (executable)
index 66c33ed..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-PYTHON=$(which python 2>/dev/null)
-
-if [ -z "${PYTHON}" ]; then
-       # Python is not present. Fail silently.
-       exit 0
-fi
-
-files=""
-for i in $*; do
-       if [ -e ${i}c ] && [ -e ${i}o ]; then
-               continue # all files we want are already there
-       fi
-       files="$files $i"
-done
-
-if [ -z "${files}" ]; then
-       # No files need to be proceeded.
-       exit 0
-fi
-
-$PYTHON -c "
-import sys, os, string, py_compile
-
-files = '''$files'''
-print 'Byte-compiling python modules...'
-for file in string.split(files):
-    if not os.path.exists(file) or not (len(file) >= 3 and file[-3:] == '.py'):
-        continue
-    print file,
-    sys.stdout.flush()
-    py_compile.compile(file)
-print" || exit $?
-
-# this will fail for python < 1.5, but that doesn't matter ...
-$PYTHON -O -c "
-import sys, os, string, py_compile
-
-files = '''$files'''
-print 'Byte-compiling python modules (optimised versions) ...'
-for file in string.split(files):
-    if not os.path.exists(file) or not (len(file) >= 3 and file[-3:] == '.py'):
-        continue
-    print file,
-    sys.stdout.flush()
-    py_compile.compile(file)
-print" 2>/dev/null || :
diff --git a/pkgs/build-essentials/buildsystem-tools/stripper b/pkgs/build-essentials/buildsystem-tools/stripper
deleted file mode 100755 (executable)
index b35d72e..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-# Based on RedHat's brp-strip*.
-
-BUILDROOT=${1}
-
-for f in `find ${BUILDROOT} -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
-               grep -v "^${BUILDROOT}/\?usr/lib/debug"  | \
-               grep -v ' shared object,' | \
-               sed -n -e 's/^\(.*\):[  ]*ELF.*, not stripped/\1/p'`; do
-
-       # Strip ELF binaries
-       strip -g "$f" || :
-
-       note="-R .note"
-       if objdump -h $f | grep '^[     ]*[0-9]*[       ]*.note[        ]' -A 1 | \
-               grep ALLOC >/dev/null; then
-               note=
-       fi
-       strip -R .comment $note "$f" || :
-done
-
-# Strip ELF shared objects
-# Please note we don't restrict our search to executable files because
-# our libraries are not (should not be, at least) +x.
-for f in `find ${BUILDROOT} -type f -a -exec file {} \; | \
-        grep -v "^${BUILDROOT}/\?usr/lib/debug"  | \
-       grep ' shared object,' | \
-       sed -n -e 's/^\(.*\):[  ]*ELF.*, not stripped/\1/p'`; do
-       strip --strip-unneeded "$f"
-done
diff --git a/pkgs/build-essentials/buildsystem.sh b/pkgs/build-essentials/buildsystem.sh
deleted file mode 100644 (file)
index 6e45524..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Path where the include files of the buildsystem
-# are located.
-export BUILDSYSTEM_ROOT="/usr/lib/buildsystem"
-
-# XXX just for now, we need to set PKGROOT to be compatible
-# with the old makefiles
-export PKGROOT=${BUILDSYSTEM_ROOT}
diff --git a/pkgs/build-essentials/buildsystem/Constants b/pkgs/build-essentials/buildsystem/Constants
deleted file mode 100644 (file)
index 65aa2ae..0000000
+++ /dev/null
@@ -1,174 +0,0 @@
-
-###############################################################################
-#
-# Constant definitions of the naoki build system
-#
-###############################################################################
-
-BASEDIR = /build
-
-BUILD_TOOLS = /usr/lib/buildsystem-tools
-
-# Set default directories
-DIR_APP      = $(DIR_SRC)/$(THISAPP)
-DIR_DL       = $(BASEDIR)/files
-DIR_PACKAGES = /usr/src/packages/$(PKG_ARCH)
-DIR_PATCHES  = $(BASEDIR)/patches
-DIR_SRC      = /usr/src
-DIR_TMP      = /tmp
-DIR_SOURCE   = $(BASEDIR)
-DIR_TOOLS    = $(BASEDIR)/tools
-
-# Directory where to search for object files
-VPATH        = $(DIR_DL)
-
-# Paths to scripts
-DO_EXTRACT       = tar xaf
-DO_QUALITY_AGENT = quality-agent
-DO_STRIP         = /usr/lib/buildsystem-tools/stripper $(BUILDROOT)
-
-###############################################################################
-#
-# Build environment
-#
-###############################################################################
-
-# Export CFLAGS + CXXFLAGS
-GLOBAL_CFLAGS = -O2 -g -pipe -Wall -fexceptions --param=ssp-buffer-size=4
-
-CFLAGS_i686   = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables
-CFLAGS_x86_64 = -m64 -mtune=generic
-
-export CFLAGS   := $(GLOBAL_CFLAGS) $(CFLAGS_$(DISTRO_ARCH))
-export CXXFLAGS := $(CFLAGS)
-
-# Options that get passed to configure by default
-CONFIGURE_OPTIONS = \
-       --host=$(DISTRO_MACHINE) \
-       --build=$(DISTRO_MACHINE) \
-       --prefix=/usr
-
-SYSTEMD_UNIT_DIR = /lib/systemd/system
-SYSTEMD_TMPFILES_DIR = /usr/lib/tmpfiles.d
-
-###############################################################################
-#
-# Packager variables
-#
-###############################################################################
-# Variables that get exported (and expanded for the sub-packages) to the
-# packager process
-PKG_VARIABLES = \
-       CONTROL_PREIN \
-       CONTROL_PREUN \
-       CONTROL_PREUP \
-       CONTROL_POSTIN \
-       CONTROL_POSTUN \
-       CONTROL_POSTUP \
-       CONTROL_POSTTRANSIN \
-       CONTROL_POSTTRANSUN \
-       \
-       PKG_ARCH \
-       PKG_BUILD_DEPS \
-       PKG_DEPS \
-       PKG_DESCRIPTION \
-       PKG_EPOCH \
-       PKG_FILES \
-       PKG_GROUPS \
-       PKG_MAINTAINER \
-       PKG_LICENSE \
-       PKG_OBSOLETES \
-       PKG_PROVIDES \
-       PKG_RELEASE \
-       PKG_SUMMARY \
-       PKG_URL \
-       PKG_VER \
-       \
-       PKG_PREREQUIRES \
-       PKG_PROVIDES_FILTER \
-       PKG_REQUIRES_FILTER
-
-# Variables that exported to the packager process
-# These reflect settings from the build system
-export BUILD_DATE ?= $(shell date -u)
-export BUILD_HOST ?= $(shell cat /proc/sys/kernel/hostname)
-export BUILD_ID
-
-###############################################################################
-#
-# Package variables
-#
-###############################################################################
-#
-# Variables
-#
-
-# The actual package name (the name of the directory)
-PKG_NAME_REAL  = $(notdir $(subst .nm,,$(firstword $(MAKEFILE_LIST))))
-PKG_NAME       = $(PKG_NAME_REAL)
-
-# Set default epoch, release and arch
-PKG_EPOCH      = 0
-PKG_RELEASE    = $(PKG_REL).$(DISTRO_DISTTAG)
-PKG_ARCH       = $(DISTRO_ARCH)
-
-# Helper variable that says if EPOCH was set to another value than 0.
-HAVE_EPOCH     = $(filter-out $(EPOCH),0)
-
-# Shortcut to package name + version
-THISAPP        = $(PKG_NAME)-$(PKG_VER)
-THISVER        = $(if $(HAVE_EPOCH),$(PKG_EPOCH):)$(PKG_VER)-$(PKG_RELEASE)
-
-#  All packages depend on gcc and headers by default.
-PKG_BUILD_DEPS+= gcc glibc-devel kernel-headers
-PKG_DEPS      +=
-
-# All PKG_OBJECTS are downloaded. This is in most cases the tarball.
-PKG_OBJECTS   = $(PKG_TARBALL)
-OBJECTS       = $(PKG_OBJECTS)
-
-# List of packages to build
-PKG_PACKAGES  = $(PKG_NAME_REAL)
-
-#
-# Macros
-#
-
-# Abstract variable that translates the package names to a list of filenames
-PKG_PACKAGES_FILES = $(foreach package,$(PKG_PACKAGES),$(call DO_PACKAGE_FILENAME,$(package)))
-
-# Automatically detect all patches in "patches"
-PKG_PATCHES = \
-       $(foreach patch,$(wildcard $(DIR_PATCHES)/*.patch),$(notdir $(patch)))
-PKG_PATCHES += \
-       $(foreach patch,$(wildcard $(DIR_PATCHES)/*.patch0),$(notdir $(patch)))
-PKG_PATCHES += \
-       $(foreach patch,$(wildcard $(DIR_PATCHES)/*.diff),$(notdir $(patch)))
-
-# Dynamic command that applies all patches
-DO_PATCHES = cd $(DIR_APP) && $(BUILD_TOOLS)/patch \
-       $(foreach patch,$(PKG_PATCHES),$(DIR_PATCHES)/$(patch))
-
-# Get a list of files that are installed automatically
-PKG_DEFAULT_FILES  = $(wildcard $(DIR_SOURCE)/*.default)
-PKG_DEFAULT_FILES += $(wildcard $(DIR_SOURCE)/default/*)
-PKG_PAM_FILES      = $(wildcard $(DIR_SOURCE)/*.pam)
-PKG_PAM_FILES     += $(wildcard $(DIR_SOURCE)/pam.d/*)
-PKG_SYSTEMD_FILES += $(wildcard $(DIR_SOURCE)/systemd/*)
-PKG_SYSTEMD_TMPFILES += $(wildcard $(DIR_SOURCE)/*.tmpfiles)
-
-###############################################################################
-#
-# Quality agent
-#
-###############################################################################
-
-export QUALITY_AGENT_PERMIT_NOT_FULL_RELRO
-export QUALITY_AGENT_RPATH_ALLOW_ORIGIN
-export QUALITY_AGENT_WHITELIST_EXECSTACK
-export QUALITY_AGENT_WHITELIST_NX
-export QUALITY_AGENT_WHITELIST_RPATH
-export QUALITY_AGENT_WHITELIST_SONAME
-export QUALITY_AGENT_WHITELIST_SYMLINK
-export QUALITY_AGENT_NO_DIRECTORY_CHECK
-export QUALITY_AGENT_NO_DIRECTORY_PRUNE
diff --git a/pkgs/build-essentials/buildsystem/Functions b/pkgs/build-essentials/buildsystem/Functions
deleted file mode 100644 (file)
index d929450..0000000
+++ /dev/null
@@ -1,204 +0,0 @@
-
-###############################################################################
-#
-# Function definitions of the naoki build system
-#
-###############################################################################
-
-include $(PKGROOT)/gmsl
-
-DO_PACKAGE_FILENAME = $(1)$(call DO_PKG_SUFFIX,$(1))
-
-DO_PKG_SUFFIX = \
-       -$(if $(PKG_VER-$(1)),$(PKG_VER-$(1)),$(PKG_VER))-$(DISTRO_SNAME)$(DISTRO_EPOCH)-$(PKG_ARCH).$(if $(PKG_REL-$(1)),$(PKG_REL-$(1)),$(PKG_REL)).ipk
-
-define DO_INIT
-       # Run ldconfig
-       ldconfig
-endef
-
-define DO_PACKAGE
-       @echo "#####################################################################"
-       @echo "# $(1) - Package build started"
-       @echo "#####################################################################"
-
-       @$(foreach var,$(PKG_VARIABLES),$(if $($(var)-$(1)),$(var)="$(strip $($(var)-$(1)))",$(var)="$(strip $($(var)))")) \
-               $(DIR_TOOLS)/packager $(1) $(DIR_PACKAGES)/$(call DO_PACKAGE_FILENAME,$(1))
-
-       @echo "#####################################################################"
-       @echo "# $(1) - Package build finished"
-       @echo "#####################################################################"
-
-endef
-
-define DO_FILELIST
-       @echo "# Filelist dump"
-       @cd $(BUILDROOT) && find -ls
-endef
-
-define DO_PACKAGE_VARIABLE
-       @echo $(if $($(1)-$(2)),$(1)="\"$(strip $($(1)-$(2)))\"",$(1)="\"$(strip $($(1)))\"")
-
-endef
-
-define DO_PACKAGE_INFO
-       @echo "PKG_NAME=\"$(1)\""
-       $(foreach var,$(PKG_VARIABLES),$(call DO_PACKAGE_VARIABLE,$(var),$(1)))
-
-       @echo
-
-endef
-
-define __INSTALL_DEFAULT
-       -mkdir -pv $(BUILDROOT)/etc/default
-       cd $(DIR_APP) && cp -vf $(1) $(BUILDROOT)/etc/default/$(subst .default,,$(notdir $(1)))
-
-endef
-
-define DO_INSTALL_DEFAULT
-       $(foreach file,$(PKG_DEFAULT_FILES),$(call __INSTALL_DEFAULT,$(file)))
-endef
-
-define __INSTALL_SYSTEMD
-       -mkdir -pv $(BUILDROOT)$(SYSTEMD_UNIT_DIR)
-       cd $(DIR_APP) && cp -vf $(1) $(BUILDROOT)$(SYSTEMD_UNIT_DIR)/$(notdir $(1))
-
-endef
-
-define DO_INSTALL_SYSTEMD
-       $(foreach file,$(PKG_SYSTEMD_FILES),$(call __INSTALL_SYSTEMD,$(file)))
-endef
-
-define __INSTALL_SYSTEMD_TMPFILES
-       -mkdir -pv $(BUILDROOT)$(SYSTEMD_TMPFILES_DIR)
-       cd $(DIR_APP) && cp -vf $(1) $(BUILDROOT)$(SYSTEMD_TMPFILES_DIR)/$(subst .tmpfiles,.conf,$(notdir $(1)))
-
-endef
-
-define DO_INSTALL_SYSTEMD_TMPFILES
-       $(foreach file,$(PKG_SYSTEMD_TMPFILES),$(call __INSTALL_SYSTEMD_TMPFILES,$(file)))
-endef
-
-define __INSTALL_PAM
-       -mkdir -pv $(BUILDROOT)/etc/pam.d
-       cd $(DIR_APP) && cp -vf $(1) $(BUILDROOT)/etc/pam.d/$(subst .pam,,$(notdir $(1)))
-
-endef
-
-define DO_INSTALL_PAM
-       $(foreach file,$(PKG_PAM_FILES),$(call __INSTALL_PAM,$(file)))
-endef
-
-define DO_PYTHON_COMPILE
-       @find $(BUILDROOT) -name "*.py" | xargs $(BUILD_TOOLS)/py-compile
-endef
-
-define DO_FIX_LIBTOOL
-       # remove rpath from libtool
-       @if [ -e "libtool" ]; then \
-               sed -i libtool \
-                       -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-                       -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'; \
-       fi
-endef
-
-define DO_PREPARE
-       # Initialize the environment at the beginning
-       $(DO_INIT)
-
-       @echo "#####################################################################"
-       @echo "# $(PKG_NAME) - Preparation started"
-       @echo "#####################################################################"
-
-       $(STAGE_PREPARE)
-
-       @echo "#####################################################################"
-       @echo "# $(PKG_NAME) - Preparation finished"
-       @echo "#####################################################################"
-endef
-
-define DO_BUILD
-       @echo "#####################################################################"
-       @echo "# $(PKG_NAME) - Build started"
-       @echo "#####################################################################"
-
-       $(STAGE_BUILD)
-
-       @echo "#####################################################################"
-       @echo "# $(PKG_NAME) - Build finished"
-       @echo "#####################################################################"
-endef
-
-define DO_TEST
-       @echo "#####################################################################"
-       @echo "# $(PKG_NAME) - Test started"
-       @echo "#####################################################################"
-
-       $(STAGE_TEST)
-
-       @echo "#####################################################################"
-       @echo "# $(PKG_NAME) - Test finished"
-       @echo "#####################################################################"
-endef
-
-define DO_INSTALL
-       @echo "#####################################################################"
-       @echo "# $(PKG_NAME) - Install started"
-       @echo "#####################################################################"
-
-       -mkdir -pv $(BUILDROOT)
-
-       $(STAGE_INSTALL)
-
-       $(DO_INSTALL_DEFAULT)
-       $(DO_INSTALL_SYSTEMD)
-       $(DO_INSTALL_SYSTEMD_TMPFILES)
-       $(DO_INSTALL_PAM)
-
-       @echo "#####################################################################"
-       @echo "# $(PKG_NAME) - Install finished"
-       @echo "#####################################################################"
-
-       $(DO_STRIP)
-       $(DO_PYTHON_COMPILE)
-
-       $(STAGE_INSTALL_POST)
-
-       $(DO_QUALITY_AGENT)
-       $(DO_FILELIST)
-endef
-
-STAGE_PACKAGE_TARGETS = $(call reverse,$(PKG_PACKAGES_FILES))
-STAGE_DONE = $(ROOT)/.done
-
-define STAGE_PREPARE
-       $(if $(PKG_TARBALL),cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL))
-
-       $(if $(PKG_PATCHES),$(DO_PATCHES))
-
-       $(STAGE_PREPARE_CMDS)
-       $(STAGE_PREPARE_CMDS2)
-endef
-
-STAGE_BUILD_TARGETS =
-
-define STAGE_BUILD
-       cd $(DIR_APP) && [ ! -e "configure" ] || \
-               $(CONFIGURE_ENVIRONMENT) \
-               ./configure \
-                       $(CONFIGURE_OPTIONS)
-
-       $(DO_FIX_LIBTOOL)
-       $(STAGE_CONFIGURE_CMDS)
-
-       cd $(DIR_APP) && make $(STAGE_BUILD_TARGETS) $(PARALLELISMFLAGS)
-       $(STAGE_BUILD_CMDS)
-endef
-
-STAGE_INSTALL_TARGETS = install
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make $(STAGE_INSTALL_TARGETS) DESTDIR=$(BUILDROOT)
-
-       $(STAGE_INSTALL_CMDS)
-endef
diff --git a/pkgs/build-essentials/buildsystem/Include b/pkgs/build-essentials/buildsystem/Include
deleted file mode 100644 (file)
index a3d62be..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
-###############################################################################
-
-.SECONDEXPANSION:
-
-include $(PKGROOT)/Constants
-include $(PKGROOT)/Functions
-include $(PKGROOT)/Targets
-include $(PKGROOT)/Templates
diff --git a/pkgs/build-essentials/buildsystem/Targets b/pkgs/build-essentials/buildsystem/Targets
deleted file mode 100644 (file)
index 4e42f06..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-
-###############################################################################
-#
-# Target definitions of the naoki build system
-#
-###############################################################################
-
-.PHONY: packageinfo
-packageinfo:
-       $(foreach package,$(PKG_PACKAGES),$(call DO_PACKAGE_INFO,$(package)))
-
-.PHONY: buildinfo
-buildinfo:
-       @echo "PKG_NAME=\"$(PKG_NAME_REAL)\""
-       @echo "PKG_EPOCH=\"$(PKG_EPOCH)\""
-       @echo "PKG_VER=\"$(PKG_VER)\""
-       @echo "PKG_RELEASE=\"$(PKG_RELEASE)\""
-
-       @echo "PKG_ARCH=\"src\""
-       @echo "PKG_BUILD_DEPENDENCIES=\"$(PKG_BUILD_DEPS)\""
-       @echo "PKG_DEPENDENCIES=\"$(PKG_DEPS)\""
-       @echo "PKG_DESCRIPTION=\"$(strip $(PKG_DESCRIPTION))\""
-       @echo "PKG_GROUPS=\"$(PKG_GROUPS)\""
-       @echo "PKG_LICENSE=\"$(PKG_LICENSE)\""
-       @echo "PKG_MAINTAINER=\"$(PKG_MAINTAINER)\""
-       @echo "PKG_SUMMARY=\"$(strip $(PKG_SUMMARY))\""
-       @echo "PKG_URL=\"$(PKG_URL)\""
-
-       @echo "PKG_FILES=\"$(PKG_OBJECTS)\""
-       @echo "PKG_BUILD_DEPS=\"$(PKG_BUILD_DEPS)\""
-
-       @echo "CFLAGS=\"$(CFLAGS)\""
-       @echo "CXXFLAGS=\"$(CXXFLAGS)\""
-
-$(OBJECTS):
-       @echo "Object file \"$@\" is required." >&2
-       @exit 1
-
-.PHONY: package
-package: $(STAGE_DONE)
-       $(foreach package,$(call reverse,$(PKG_PACKAGES)),$(call DO_PACKAGE,$(package)))
-
-.PHONY: shell
-shell: $(OBJECTS)
-       $(if $(STAGE_PREPARE),$(DO_PREPARE))
-
-.PHONY: prepare
-prepare: $(OBJECTS)
-       $(if $(STAGE_PREPARE),$(DO_PREPARE))
-
-.PHONY: build
-build: $(OBJECTS)
-       $(if $(STAGE_PREPARE),$(DO_PREPARE))
-       $(if $(STAGE_BUILD),$(DO_BUILD))
-       $(if $(STAGE_TEST),$(DO_TEST))
-       $(if $(STAGE_INSTALL),$(DO_INSTALL))
-
-.PHONY: clean
-clean:
-       # Remove all files from $(DIR_APP) and $(BUILDROOT)
-       -rm -rf $(DIR_APP) $(BUILDROOT)
-       -mkdir -pv $(BUILDROOT)
diff --git a/pkgs/build-essentials/buildsystem/Templates b/pkgs/build-essentials/buildsystem/Templates
deleted file mode 100644 (file)
index abf1ab0..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-
-###############################################################################
-#
-# Template definitions of the naoki build system
-#
-###############################################################################
-
-###############################################################################
-# Default template
-###############################################################################
-
-# Package all files by default
-PKG_FILES = /
-
-###############################################################################
-# Devel template
-###############################################################################
-
-PKG_DESCRIPTION-$(PKG_NAME_REAL)-devel = Development files of $(THISAPP).
-PKG_SUMMARY-$(PKG_NAME_REAL)-devel = $(PKG_DESCRIPTION-$(PKG_NAME_REAL)-devel)
-
-PKG_DEPS-$(PKG_NAME_REAL)-devel = $(PKG_NAME_REAL)=$(THISVER)
-
-define PKG_FILES-$(PKG_NAME_REAL)-devel
-       /usr/bin/*-config
-       /usr/include
-       /usr/lib/*.a
-       /usr/lib/pkgconfig
-       /usr/share/aclocal
-       */lib/*.so
-       /usr/share/*/cmake
-       /usr/share/man/man2
-       /usr/share/man/man3
-       /usr/share/pkgconfig
-       /usr/share/vala
-endef
-
-
-###############################################################################
-# Library template
-###############################################################################
-
-PKG_DESCRIPTION-$(PKG_NAME_REAL)-libs  = Library files of $(THISAPP).
-PKG_SUMMARY-$(PKG_NAME_REAL)-libs = $(PKG_DESCRIPTION-$(PKG_NAME_REAL)-libs)
-
-define PKG_FILES-$(PKG_NAME_REAL)-libs
-       /lib/lib*.so.*
-       /usr/lib/lib*.so.*
-endef
-
-# Another naming scheme template...
-PKG_DESCRIPTION-lib$(PKG_NAME_REAL)  = $(PKG_DESCRIPTION-$(PKG_NAME_REAL)-libs)
-PKG_SUMMARY-lib$(PKG_NAME_REAL)      = $(PKG_SUMMARY-$(PKG_NAME_REAL)-libs)
-PKG_FILES-lib$(PKG_NAME_REAL)        = $(PKG_FILES-$(PKG_NAME_REAL)-libs)
-
-PKG_DESCRIPTION-lib$(PKG_NAME_REAL)-devel = $(PKG_DESCRIPTION-$(PKG_NAME_REAL)-devel)
-PKG_SUMMARY-lib$(PKG_NAME_REAL)-devel     = $(PKG_SUMMARY-$(PKG_NAME_REAL)-devel)
-PKG_FILES-lib$(PKG_NAME_REAL)-devel       = $(PKG_FILES-$(PKG_NAME_REAL)-devel) blah
-PKG_BUILD_DEPS-lib$(PKG_NAME_REAL)-devel  = $(PKG_BUILD_DEPS-$(PKG_NAME_REAL)-devel)
diff --git a/pkgs/build-essentials/buildsystem/__gmsl b/pkgs/build-essentials/buildsystem/__gmsl
deleted file mode 100644 (file)
index 596ff19..0000000
+++ /dev/null
@@ -1,854 +0,0 @@
-# ----------------------------------------------------------------------------
-#
-# GNU Make Standard Library (GMSL)
-#
-# A library of functions to be used with GNU Make's $(call) that
-# provides functionality not available in standard GNU Make.
-#
-# Copyright (c) 2005-2007 John Graham-Cumming
-#
-# This file is part of GMSL
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# Neither the name of the John Graham-Cumming nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-# ----------------------------------------------------------------------------
-
-# This is the GNU Make Standard Library version number as a list with
-# three items: major, minor, revision
-
-gmsl_version := 1 0 11
-
-# Used to output warnings and error from the library, it's possible to
-# disable any warnings or errors by overriding these definitions
-# manually or by setting GMSL_NO_WARNINGS or GMSL_NO_ERRORS
-
-__gmsl_name := GNU Make Standard Library
-__gmsl_warning = $(warning $(__gmsl_name): $1)
-__gmsl_error = $(error $(__gmsl_name): $1)
-
-ifdef GMSL_NO_WARNINGS
-__gmsl_warning :=
-endif
-ifdef GMSL_NO_ERRORS
-__gmsl_error :=
-endif
-
-# If GMSL_TRACE is enabled then calls to the library functions are
-# traced to stdout using warning messages with their arguments
-
-ifdef GMSL_TRACE
-__gmsl_tr1 = $(warning $0('$1'))
-__gmsl_tr2 = $(warning $0('$1','$2'))
-__gmsl_tr3 = $(warning $0('$1','$2','$3'))
-else
-__gmsl_tr1 :=
-__gmsl_tr2 :=
-__gmsl_tr3 :=
-endif
-
-# Figure out whether we have $(eval) or not (GNU Make 3.80 and above)
-# if we do not then output a warning message, if we do then some
-# functions will be enabled.
-
-__gmsl_have_eval := $(false)
-__gmsl_ignore := $(eval __gmsl_have_eval := $(true))
-
-# If this is being run with Electric Cloud's emake then warn that
-# their $(eval) support is incomplete.
-
-ifdef ECLOUD_BUILD_ID
-$(warning You are using Electric Cloud's emake which has incomplete $$(eval) support)
-__gmsl_have_eval := $(false)
-endif
-
-# See if we have $(lastword) (GNU Make 3.81 and above)
-
-__gmsl_have_lastword := $(lastword $(false) $(true))
-
-# See if we have native or and and (GNU Make 3.81 and above)
-
-__gmsl_have_or := $(if $(filter-out undefined,  \
-    $(origin or)),$(call or,$(true),$(false)))
-__gmsl_have_and := $(if $(filter-out undefined, \
-    $(origin and)),$(call and,$(true),$(true)))
-
-ifneq ($(__gmsl_have_eval),$(true))
-$(call __gmsl_warning,GNU Make $(MAKE_VERSION) does not support $$$$(eval): some functions disabled)
-endif
-
-# ----------------------------------------------------------------------------
-# Function:  gmsl_compatible
-# Arguments: List containing the desired library version number (maj min rev)
-# Returns:   $(true) if this version of the library is compatible
-#            with the requested version number, otherwise $(false)
-# ----------------------------------------------------------------------------
-gmsl_compatible = $(strip                                                 \
-    $(if $(call gt,$(word 1,$1),$(word 1,$(gmsl_version))),               \
-        $(false),                                                         \
-        $(if $(call lt,$(word 1,$1),$(word 1,$(gmsl_version))),           \
-            $(true),                                                      \
-            $(if $(call gt,$(word 2,$1),$(word 2,$(gmsl_version))),       \
-                $(false),                                                 \
-                $(if $(call lt,$(word 2,$1),$(word 2,$(gmsl_version))),   \
-                    $(true),                                              \
-                    $(call lte,$(word 3,$1),$(word 3,$(gmsl_version))))))))
-
-# ###########################################################################
-# LOGICAL OPERATORS
-# ###########################################################################
-
-# not is defined in gmsl
-
-# ----------------------------------------------------------------------------
-# Function:  and
-# Arguments: Two boolean values
-# Returns:   Returns $(true) if both of the booleans are true
-# ----------------------------------------------------------------------------
-ifneq ($(__gmsl_have_and),$(true))
-and = $(__gmsl_tr2)$(if $1,$(if $2,$(true),$(false)),$(false))
-endif
-
-# ----------------------------------------------------------------------------
-# Function:  or
-# Arguments: Two boolean values
-# Returns:   Returns $(true) if either of the booleans is true
-# ----------------------------------------------------------------------------
-ifneq ($(__gmsl_have_or),$(true))
-or = $(__gmsl_tr2)$(if $1$2,$(true),$(false))
-endif
-
-# ----------------------------------------------------------------------------
-# Function:  xor
-# Arguments: Two boolean values
-# Returns:   Returns $(true) if exactly one of the booleans is true
-# ----------------------------------------------------------------------------
-xor = $(__gmsl_tr2)$(if $1,$(if $2,$(false),$(true)),$(if $2,$(true),$(false)))
-
-# ----------------------------------------------------------------------------
-# Function:  nand
-# Arguments: Two boolean values
-# Returns:   Returns value of 'not and'
-# ----------------------------------------------------------------------------
-nand = $(__gmsl_tr2)$(if $1,$(if $2,$(false),$(true)),$(true))
-
-# ----------------------------------------------------------------------------
-# Function:  nor
-# Arguments: Two boolean values
-# Returns:   Returns value of 'not or'
-# ----------------------------------------------------------------------------
-nor = $(__gmsl_tr2)$(if $1$2,$(false),$(true))
-
-# ----------------------------------------------------------------------------
-# Function:  xnor
-# Arguments: Two boolean values
-# Returns:   Returns value of 'not xor'
-# ----------------------------------------------------------------------------
-xnor =$(__gmsl_tr2)$(if $1,$(if $2,$(true),$(false)),$(if $2,$(false),$(true)))
-
-# ###########################################################################
-# LIST MANIPULATION FUNCTIONS
-# ###########################################################################
-
-# ----------------------------------------------------------------------------
-# Function:  first (same as LISP's car, or head)
-# Arguments: 1: A list
-# Returns:   Returns the first element of a list
-# ----------------------------------------------------------------------------
-first = $(__gmsl_tr1)$(firstword $1)
-
-# ----------------------------------------------------------------------------
-# Function:  last
-# Arguments: 1: A list
-# Returns:   Returns the last element of a list
-# ----------------------------------------------------------------------------
-ifeq ($(__gmsl_have_lastword),$(true))
-last = $(__gmsl_tr1)$(lastword $1)
-else
-last = $(__gmsl_tr1)$(if $1,$(word $(words $1),$1))
-endif
-
-# ----------------------------------------------------------------------------
-# Function:  rest (same as LISP's cdr, or tail)
-# Arguments: 1: A list
-# Returns:   Returns the list with the first element removed
-# ----------------------------------------------------------------------------
-rest = $(__gmsl_tr1)$(wordlist 2,$(words $1),$1)
-
-# ----------------------------------------------------------------------------
-# Function:  chop
-# Arguments: 1: A list
-# Returns:   Returns the list with the last element removed
-# ----------------------------------------------------------------------------
-chop = $(__gmsl_tr1)$(wordlist 2,$(words $1),x $1)
-
-# ----------------------------------------------------------------------------
-# Function:  map
-# Arguments: 1: Name of function to $(call) for each element of list
-#            2: List to iterate over calling the function in 1
-# Returns:   The list after calling the function on each element
-# ----------------------------------------------------------------------------
-map = $(__gmsl_tr2)$(strip $(foreach a,$2,$(call $1,$a)))
-
-# ----------------------------------------------------------------------------
-# Function:  pairmap
-# Arguments: 1: Name of function to $(call) for each pair of elements
-#            2: List to iterate over calling the function in 1
-#            3: Second list to iterate over calling the function in 1
-# Returns:   The list after calling the function on each pair of elements
-# ----------------------------------------------------------------------------
-pairmap = $(strip $(__gmsl_tr3)\
-          $(if $2$3,$(call $1,$(call first,$2),$(call first,$3))     \
-                        $(call pairmap,$1,$(call rest,$2),$(call rest,$3))))
-
-# ----------------------------------------------------------------------------
-# Function:  leq
-# Arguments: 1: A list to compare against...
-#            2: ...this list
-# Returns:   Returns $(true) if the two lists are identical
-# ----------------------------------------------------------------------------
-leq = $(__gmsl_tr2)$(strip $(if $(call seq,$(words $1),$(words $2)),     \
-          $(call __gmsl_list_equal,$1,$2),$(false)))
-
-__gmsl_list_equal = $(if $(strip $1),                                       \
-                        $(if $(call seq,$(call first,$1),$(call first,$2)), \
-                            $(call __gmsl_list_equal,                       \
-                                $(call rest,$1),                            \
-                                $(call rest,$2)),                           \
-                            $(false)),                                      \
-                     $(true))
-
-# ----------------------------------------------------------------------------
-# Function:  lne
-# Arguments: 1: A list to compare against...
-#            2: ...this list
-# Returns:   Returns $(true) if the two lists are different
-# ----------------------------------------------------------------------------
-lne = $(__gmsl_tr2)$(call not,$(call leq,$1,$2))
-
-# ----------------------------------------------------------------------------
-# Function:  reverse
-# Arguments: 1: A list to reverse
-# Returns:   The list with its elements in reverse order
-# ----------------------------------------------------------------------------
-reverse =$(__gmsl_tr1)$(strip $(if $1,$(call reverse,$(call rest,$1)) \
-                        $(call first,$1)))
-
-# ----------------------------------------------------------------------------
-# Function:  uniq
-# Arguments: 1: A list from which to remove repeated elements
-# Returns:   The list with duplicate elements removed without reordering
-# ----------------------------------------------------------------------------
-uniq = $(strip $(__gmsl_tr1)$(if $1,$(call uniq,$(call chop,$1)) \
-            $(if $(filter $(call last,$1),$(call chop,$1)),,$(call last,$1))))
-
-# ----------------------------------------------------------------------------
-# Function:  length
-# Arguments: 1: A list
-# Returns:   The number of elements in the list
-# ----------------------------------------------------------------------------
-length = $(__gmsl_tr1)$(words $1)
-
-# ###########################################################################
-# STRING MANIPULATION FUNCTIONS
-# ###########################################################################
-
-# Helper function that translates any GNU Make 'true' value (i.e. a
-# non-empty string) to our $(true)
-
-__gmsl_make_bool = $(if $(strip $1),$(true),$(false))
-
-# ----------------------------------------------------------------------------
-# Function:  seq
-# Arguments: 1: A string to compare against...
-#            2: ...this string
-# Returns:   Returns $(true) if the two strings are identical
-# ----------------------------------------------------------------------------
-seq = $(__gmsl_tr2)$(if $(filter-out xx,x$(subst $1,,$2)$(subst $2,,$1)x),$(false),$(true))
-
-# ----------------------------------------------------------------------------
-# Function:  sne
-# Arguments: 1: A string to compare against...
-#            2: ...this string
-# Returns:   Returns $(true) if the two strings are not the same
-# ----------------------------------------------------------------------------
-sne = $(__gmsl_tr2)$(call not,$(call seq,$1,$2))
-
-# ----------------------------------------------------------------------------
-# Function:  split
-# Arguments: 1: The character to split on
-#            2: A string to split
-# Returns:   Splits a string into a list separated by spaces at the split
-#            character in the first argument
-# ----------------------------------------------------------------------------
-split = $(__gmsl_tr2)$(strip $(subst $1, ,$2))
-
-# ----------------------------------------------------------------------------
-# Function:  merge
-# Arguments: 1: The character to put between fields
-#            2: A list to merge into a string
-# Returns:   Merges a list into a single string, list elements are separated
-#            by the character in the first argument
-# ----------------------------------------------------------------------------
-merge = $(__gmsl_tr2)$(strip $(if $2,                                     \
-            $(if $(call seq,1,$(words $2)),                               \
-                $2,$(call first,$2)$1$(call merge,$1,$(call rest,$2)))))
-
-ifdef __gmsl_have_eval
-# ----------------------------------------------------------------------------
-# Function:  tr
-# Arguments: 1: The list of characters to translate from 
-#            2: The list of characters to translate to
-#            3: The text to translate
-# Returns:   Returns the text after translating characters
-# ----------------------------------------------------------------------------
-tr = $(strip $(__gmsl_tr3)$(call assert_no_dollar,$0,$1$2$3)              \
-     $(eval __gmsl_t := $3)                                               \
-     $(foreach c,                                                         \
-         $(join $(addsuffix :,$1),$2),                                    \
-         $(eval __gmsl_t :=                                               \
-             $(subst $(word 1,$(subst :, ,$c)),$(word 2,$(subst :, ,$c)), \
-                 $(__gmsl_t))))$(__gmsl_t))
-
-# Common character classes for use with the tr function.  Each of
-# these is actually a variable declaration and must be wrapped with
-# $() or ${} to be used.
-
-[A-Z] := A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #
-[a-z] := a b c d e f g h i j k l m n o p q r s t u v w x y z #
-[0-9] := 0 1 2 3 4 5 6 7 8 9 #
-[A-F] := A B C D E F #
-
-# ----------------------------------------------------------------------------
-# Function:  uc
-# Arguments: 1: Text to upper case
-# Returns:   Returns the text in upper case
-# ----------------------------------------------------------------------------
-uc = $(__gmsl_tr1)$(call assert_no_dollar,$0,$1)$(call tr,$([a-z]),$([A-Z]),$1)
-
-# ----------------------------------------------------------------------------
-# Function:  lc
-# Arguments: 1: Text to lower case
-# Returns:   Returns the text in lower case
-# ----------------------------------------------------------------------------
-lc = $(__gmsl_tr1)$(call assert_no_dollar,$0,$1)$(call tr,$([A-Z]),$([a-z]),$1)
-
-# ----------------------------------------------------------------------------
-# Function:  strlen
-# Arguments: 1: A string
-# Returns:   Returns the length of the string
-# ----------------------------------------------------------------------------
-__gmsl_characters := A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
-__gmsl_characters += a b c d e f g h i j k l m n o p q r s t u v w x y z
-__gmsl_characters += 0 1 2 3 4 5 6 7 8 9
-__gmsl_characters += ` ~ ! @ \# $$ % ^ & * ( ) - _ = +
-__gmsl_characters += { } [ ] \ : ; ' " < > , . / ? |
-
-# Aside: if you read the above you might think that the lower-case
-# letter x is missing, and that that's an error.  It is missing, but
-# it's not an error.  __gmsl_characters is used by the strlen
-# function.  strlen works by transforming every character and space
-# into the letter x and then counting the x's.  Since there's no need
-# to transform x into x I omitted it.
-
-# This results in __gmsl_space containing just a space
-
-__gmsl_space := 
-__gmsl_space +=
-
-strlen = $(__gmsl_tr1)$(call assert_no_dollar,$0,$1)$(strip $(eval __temp := $(subst $(__gmsl_space),x,$1))$(foreach a,$(__gmsl_characters),$(eval __temp := $$(subst $$a,x,$(__temp))))$(eval __temp := $(subst x,x ,$(__temp)))$(words $(__temp)))
-
-# This results in __gmsl_newline containing just a newline
-
-define __gmsl_newline
-
-
-endef
-
-# This results in __gmsl_tab containing a tab
-
-__gmsl_tab :=  #
-
-# ----------------------------------------------------------------------------
-# Function:  substr
-# Arguments: 1: A string
-#           2: Start position (first character is 1)
-#           3: End position (inclusive)
-# Returns:   A substring.  
-# Note:      The string in $1 must not contain a Â§
-# ----------------------------------------------------------------------------
-
-substr = $(__gmsl_tr3)$(call assert_no_dollar,$0,$1$2$3)$(strip $(eval __temp := $$(subst $$(__gmsl_space),§ ,$$1))$(foreach a,$(__gmsl_characters),$(eval __temp := $$(subst $$a,$$a$$(__gmsl_space),$(__temp))))$(eval __temp := $(wordlist $2,$3,$(__temp))))$(subst Â§,$(__gmsl_space),$(subst $(__gmsl_space),,$(__temp)))
-
-endif # __gmsl_have_eval
-
-# ###########################################################################
-# SET MANIPULATION FUNCTIONS
-# ###########################################################################
-
-# Sets are represented by sorted, deduplicated lists.  To create a set
-# from a list use set_create, or start with the empty_set and
-# set_insert individual elements
-
-# This is the empty set
-empty_set := 
-
-# ----------------------------------------------------------------------------
-# Function:  set_create
-# Arguments: 1: A list of set elements
-# Returns:   Returns the newly created set
-# ----------------------------------------------------------------------------
-set_create = $(__gmsl_tr1)$(sort $1)
-
-# ----------------------------------------------------------------------------
-# Function:  set_insert
-# Arguments: 1: A single element to add to a set
-#            2: A set
-# Returns:   Returns the set with the element added
-# ----------------------------------------------------------------------------
-set_insert = $(__gmsl_tr2)$(sort $1 $2)
-
-# ----------------------------------------------------------------------------
-# Function:  set_remove
-# Arguments: 1: A single element to remove from a set
-#            2: A set
-# Returns:   Returns the set with the element removed
-# ----------------------------------------------------------------------------
-set_remove = $(__gmsl_tr2)$(filter-out $1,$2)
-
-# ----------------------------------------------------------------------------
-# Function:  set_is_member
-# Arguments: 1: A single element 
-#            2: A set
-# Returns:   Returns $(true) if the element is in the set
-# ----------------------------------------------------------------------------
-set_is_member = $(__gmsl_tr2)$(if $(filter $1,$2),$(true),$(false))
-
-# ----------------------------------------------------------------------------
-# Function:  set_union
-# Arguments: 1: A set
-#            2: Another set
-# Returns:   Returns the union of the two sets
-# ----------------------------------------------------------------------------
-set_union = $(__gmsl_tr2)$(sort $1 $2)
-
-# ----------------------------------------------------------------------------
-# Function:  set_intersection
-# Arguments: 1: A set
-#            2: Another set
-# Returns:   Returns the intersection of the two sets
-# ----------------------------------------------------------------------------
-set_intersection = $(__gmsl_tr2)$(filter $1,$2)
-
-# ----------------------------------------------------------------------------
-# Function:  set_is_subset
-# Arguments: 1: A set
-#            2: Another set
-# Returns:   Returns $(true) if the first set is a subset of the second
-# ----------------------------------------------------------------------------
-set_is_subset = $(__gmsl_tr2)$(call set_equal,$(call set_intersection,$1,$2),$1)
-
-# ----------------------------------------------------------------------------
-# Function:  set_equal
-# Arguments: 1: A set
-#            2: Another set
-# Returns:   Returns $(true) if the two sets are identical
-# ----------------------------------------------------------------------------
-set_equal = $(__gmsl_tr2)$(call seq,$1,$2)
-
-# ###########################################################################
-# ARITHMETIC LIBRARY
-# ###########################################################################
-
-# Integers a represented by lists with the equivalent number of x's.
-# For example the number 4 is x x x x.  The maximum integer that the
-# library can handle as _input_ is __gmsl_input_int which is defined
-# here as 65536
-
-__gmsl_sixteen := x x x x x x x x x x x x x x x x
-__gmsl_input_int := $(foreach a,$(__gmsl_sixteen),         \
-                        $(foreach b,$(__gmsl_sixteen),     \
-                            $(foreach c,$(__gmsl_sixteen), \
-                                $(__gmsl_sixteen)))))
-
-# ----------------------------------------------------------------------------
-# Function:  int_decode
-# Arguments: 1: A number of x's representation
-# Returns:   Returns the integer for human consumption that is represented
-#            by the string of x's
-# ----------------------------------------------------------------------------
-int_decode = $(__gmsl_tr1)$(words $1)
-
-# ----------------------------------------------------------------------------
-# Function:  int_encode
-# Arguments: 1: A number in human-readable integer form
-# Returns:   Returns the integer encoded as a string of x's
-# ----------------------------------------------------------------------------
-int_encode = $(__gmsl_tr1)$(wordlist 1,$1,$(__gmsl_input_int))
-
-# The arithmetic library functions come in two forms: one form of each
-# function takes integers as arguments and the other form takes the
-# encoded form (x's created by a call to int_encode).  For example,
-# there are two plus functions:
-#
-# plus        Called with integer arguments and returns an integer
-# int_plus    Called with encoded arguments and returns an encoded result
-#
-# plus will be slower than int_plus because its arguments and result
-# have to be translated between the x's format and integers.  If doing
-# a complex calculation use the int_* forms with a single encoding of
-# inputs and single decoding of the output.  For simple calculations
-# the direct forms can be used.
-
-# Helper function used to wrap an int_* function into a function that
-# takes a pair of integers, perhaps a function and returns an integer
-# result
-__gmsl_int_wrap = $(call int_decode,$(call $1,$(call int_encode,$2),$(call int_encode,$3)))
-__gmsl_int_wrap1 = $(call int_decode,$(call $1,$(call int_encode,$2)))
-__gmsl_int_wrap2 = $(call $1,$(call int_encode,$2),$(call int_encode,$3))
-
-# ----------------------------------------------------------------------------
-# Function:  int_plus
-# Arguments: 1: A number in x's representation
-#            2: Another number in x's represntation
-# Returns:   Returns the sum of the two numbers in x's representation
-# ----------------------------------------------------------------------------
-int_plus = $(strip $(__gmsl_tr2)$1 $2)
-
-# ----------------------------------------------------------------------------
-# Function:  plus (wrapped version of int_plus)
-# Arguments: 1: An integer
-#            2: Another integer
-# Returns:   Returns the sum of the two integers
-# ----------------------------------------------------------------------------
-plus = $(__gmsl_tr2)$(call __gmsl_int_wrap,int_plus,$1,$2)
-
-# ----------------------------------------------------------------------------
-# Function:  int_subtract
-# Arguments: 1: A number in x's representation
-#            2: Another number in x's represntation
-# Returns:   Returns the difference of the two numbers in x's representation,
-#            or outputs an error on a numeric underflow
-# ----------------------------------------------------------------------------
-int_subtract = $(strip $(__gmsl_tr2)$(if $(call int_gte,$1,$2), \
-                $(filter-out xx,$(join $1,$2)),                 \
-                $(call __gmsl_warning,Subtraction underflow)))
-
-# ----------------------------------------------------------------------------
-# Function:  subtract (wrapped version of int_subtract)
-# Arguments: 1: An integer
-#            2: Another integer
-# Returns:   Returns the difference of the two integers,
-#            or outputs an error on a numeric underflow
-# ----------------------------------------------------------------------------
-subtract = $(__gmsl_tr2)$(call __gmsl_int_wrap,int_subtract,$1,$2)
-
-# ----------------------------------------------------------------------------
-# Function:  int_multiply
-# Arguments: 1: A number in x's representation
-#            2: Another number in x's represntation
-# Returns:   Returns the product of the two numbers in x's representation
-# ----------------------------------------------------------------------------
-int_multiply = $(strip $(__gmsl_tr2)$(foreach a,$1,$2))
-
-# ----------------------------------------------------------------------------
-# Function:  multiply (wrapped version of int_multiply)
-# Arguments: 1: An integer
-#            2: Another integer
-# Returns:   Returns the product of the two integers
-# ----------------------------------------------------------------------------
-multiply = $(__gmsl_tr2)$(call __gmsl_int_wrap,int_multiply,$1,$2)
-
-# ----------------------------------------------------------------------------
-# Function:  int_divide
-# Arguments: 1: A number in x's representation
-#            2: Another number in x's represntation
-# Returns:   Returns the result of integer division of argument 1 divided
-#            by argument 2 in x's representation
-# ----------------------------------------------------------------------------
-int_divide = $(__gmsl_tr2)$(strip $(if $2,                                 \
-                 $(if $(call int_gte,$1,$2),                               \
-                     x $(call int_divide,$(call int_subtract,$1,$2),$2),), \
-                 $(call __gmsl_error,Division by zero)))
-
-# ----------------------------------------------------------------------------
-# Function:  divide (wrapped version of int_divide)
-# Arguments: 1: An integer
-#            2: Another integer
-# Returns:   Returns the integer division of the first argument by the second
-# ----------------------------------------------------------------------------
-divide = $(__gmsl_tr2)$(call __gmsl_int_wrap,int_divide,$1,$2)
-
-# ----------------------------------------------------------------------------
-# Function:  int_max, int_min
-# Arguments: 1: A number in x's representation
-#            2: Another number in x's represntation
-# Returns:   Returns the maximum or minimum of its arguments in x's
-#            representation
-# ----------------------------------------------------------------------------
-int_max = $(__gmsl_tr2)$(subst xx,x,$(join $1,$2))
-int_min = $(__gmsl_tr2)$(subst xx,x,$(filter xx,$(join $1,$2)))
-
-# ----------------------------------------------------------------------------
-# Function:  max, min
-# Arguments: 1: An integer
-#            2: Another integer
-# Returns:   Returns the maximum or minimum of its integer arguments
-# ----------------------------------------------------------------------------
-max = $(__gmsl_tr2)$(call __gmsl_int_wrap,int_max,$1,$2)
-min = $(__gmsl_tr2)$(call __gmsl_int_wrap,int_min,$1,$2)
-
-# ----------------------------------------------------------------------------
-# Function: int_gt, int_gte, int_lt, int_lte, int_eq, int_ne
-# Arguments: Two x's representation numbers to be compared
-# Returns:   $(true) or $(false)
-#
-# int_gt    First argument greater than second argument
-# int_gte   First argument greater than or equal to second argument
-# int_lt    First argument less than second argument 
-# int_lte   First argument less than or equal to second argument
-# int_eq    First argument is numerically equal to the second argument
-# int_ne    First argument is not numerically equal to the second argument
-# ----------------------------------------------------------------------------
-int_gt = $(__gmsl_tr2)$(call __gmsl_make_bool,      \
-                          $(filter-out $(words $2), \
-                              $(words $(call int_max,$1,$2))))
-int_gte = $(__gmsl_tr2)$(call __gmsl_make_bool,     \
-                           $(call int_gt,$1,$2)$(call int_eq,$1,$2))
-int_lt = $(__gmsl_tr2)$(call __gmsl_make_bool,      \
-                          $(filter-out $(words $1), \
-                              $(words $(call int_max,$1,$2))))
-int_lte = $(__gmsl_tr2)$(call __gmsl_make_bool,     \
-                           $(call int_lt,$1,$2)$(call int_eq,$1,$2))
-int_eq = $(__gmsl_tr2)$(call __gmsl_make_bool,      \
-                          $(filter $(words $1),$(words $2)))
-int_ne = $(__gmsl_tr2)$(call __gmsl_make_bool,      \
-                          $(filter-out $(words $1),$(words $2)))
-
-# ----------------------------------------------------------------------------
-# Function: gt, gte, lt, lte, eq, ne
-# Arguments: Two integers to be compared
-# Returns:   $(true) or $(false)
-#
-# gt    First argument greater than second argument
-# gte   First argument greater than or equal to second argument
-# lt    First argument less than second argument 
-# lte   First argument less than or equal to second argument
-# eq    First argument is numerically equal to the second argument
-# ne    First argument is not numerically equal to the second argument
-# ----------------------------------------------------------------------------
-gt = $(__gmsl_tr2)$(call __gmsl_int_wrap2,int_gt,$1,$2)
-gte = $(__gmsl_tr2)$(call __gmsl_int_wrap2,int_gte,$1,$2)
-lt = $(__gmsl_tr2)$(call __gmsl_int_wrap2,int_lt,$1,$2)
-lte = $(__gmsl_tr2)$(call __gmsl_int_wrap2,int_lte,$1,$2)
-eq = $(__gmsl_tr2)$(call __gmsl_int_wrap2,int_eq,$1,$2)
-ne = $(__gmsl_tr2)$(call __gmsl_int_wrap2,int_ne,$1,$2)
-
-# increment adds 1 to its argument, decrement subtracts 1.  Note that
-# decrement does not range check and hence will not underflow, but
-# will incorrectly say that 0 - 1 = 0
-
-# ----------------------------------------------------------------------------
-# Function:  int_inc
-# Arguments: 1: A number in x's representation
-# Returns:   The number incremented by 1 in x's representation
-# ----------------------------------------------------------------------------
-int_inc = $(strip $(__gmsl_tr1)$1 x)
-
-# ----------------------------------------------------------------------------
-# Function:  inc
-# Arguments: 1: An integer
-# Returns:   The argument incremented by 1
-# ----------------------------------------------------------------------------
-inc = $(__gmsl_tr1)$(call __gmsl_int_wrap1,int_inc,$1)
-
-# ----------------------------------------------------------------------------
-# Function:  int_dec
-# Arguments: 1: A number in x's representation
-# Returns:   The number decremented by 1 in x's representation
-# ----------------------------------------------------------------------------
-int_dec = $(__gmsl_tr1)$(strip $(if $(call sne,0,$(words $1)), \
-              $(wordlist 2,$(words $1),$1),                    \
-              $(call __gmsl_warning,Decrement underflow)))
-
-# ----------------------------------------------------------------------------
-# Function:  dec
-# Arguments: 1: An integer
-# Returns:   The argument decremented by 1
-# ----------------------------------------------------------------------------
-dec = $(__gmsl_tr1)$(call __gmsl_int_wrap1,int_dec,$1)
-
-# double doubles its argument, and halve halves it
-
-# ----------------------------------------------------------------------------
-# Function:  int_double
-# Arguments: 1: A number in x's representation
-# Returns:   The number doubled (i.e. * 2) and returned in x's representation
-# ----------------------------------------------------------------------------
-int_double = $(strip $(__gmsl_tr1)$1 $1)
-
-# ----------------------------------------------------------------------------
-# Function:  double
-# Arguments: 1: An integer
-# Returns:   The integer times 2
-# ----------------------------------------------------------------------------
-double = $(__gmsl_tr1)$(call __gmsl_int_wrap1,int_double,$1)
-
-# ----------------------------------------------------------------------------
-# Function:  int_halve
-# Arguments: 1: A number in x's representation
-# Returns:   The number halved (i.e. / 2) and returned in x's representation
-# ----------------------------------------------------------------------------
-int_halve = $(__gmsl_tr1)$(strip $(subst xx,x,$(filter-out xy x y, \
-                             $(join $1,$(foreach a,$1,y x)))))
-
-# ----------------------------------------------------------------------------
-# Function:  halve
-# Arguments: 1: An integer
-# Returns:   The integer divided by 2
-# ----------------------------------------------------------------------------
-halve = $(__gmsl_tr1)$(call __gmsl_int_wrap1,int_halve,$1)
-
-ifdef __gmsl_have_eval
-# ###########################################################################
-# ASSOCIATIVE ARRAYS
-# ###########################################################################
-
-# ----------------------------------------------------------------------------
-# Function:  set
-# Arguments: 1: Name of associative array
-#            2: The key value to associate
-#            3: The value associated with the key
-# Returns:   None
-# ----------------------------------------------------------------------------
-set = $(__gmsl_tr3)$(call assert_no_dollar,$0,$1$2$3)$(eval __gmsl_aa_$1_$2 = $3)
-
-# ----------------------------------------------------------------------------
-# Function:  get
-# Arguments: 1: Name of associative array
-#            2: The key to retrieve
-# Returns:   The value stored in the array for that key
-# ----------------------------------------------------------------------------
-get = $(strip $(__gmsl_tr2)$(call assert_no_dollar,$0,$1$2)$(if $(filter-out undefined,$(origin __gmsl_aa_$1_$2)), \
-    $(__gmsl_aa_$1_$2)))
-
-# ----------------------------------------------------------------------------
-# Function:  keys
-# Arguments: 1: Name of associative array
-# Returns:   Returns a list of all defined keys in the array
-# ----------------------------------------------------------------------------
-keys = $(__gmsl_tr1)$(call assert_no_dollar,$0,$1)$(sort $(patsubst __gmsl_aa_$1_%,%, \
-                  $(filter __gmsl_aa_$1_%,$(.VARIABLES))))
-
-# ----------------------------------------------------------------------------
-# Function:  defined
-# Arguments: 1: Name of associative array
-#            2: The key to test
-# Returns:   Returns true if the key is defined (i.e. not empty)
-# ----------------------------------------------------------------------------
-defined = $(__gmsl_tr2)$(call assert_no_dollar,$0,$1$2)$(call sne,$(call get,$1,$2),)
-
-endif # __gmsl_have_eval
-
-ifdef __gmsl_have_eval
-# ###########################################################################
-# NAMED STACKS
-# ###########################################################################
-
-# ----------------------------------------------------------------------------
-# Function:  push
-# Arguments: 1: Name of stack
-#            2: Value to push onto the top of the stack (must not contain
-#               a space)
-# Returns:   None
-# ----------------------------------------------------------------------------
-push = $(__gmsl_tr2)$(call assert_no_dollar,$0,$1$2)$(eval __gmsl_stack_$1 := $2 $(if $(filter-out undefined,\
-    $(origin __gmsl_stack_$1)),$(__gmsl_stack_$1)))
-
-# ----------------------------------------------------------------------------
-# Function:  pop
-# Arguments: 1: Name of stack
-# Returns:   Top element from the stack after removing it
-# ----------------------------------------------------------------------------
-pop = $(__gmsl_tr1)$(call assert_no_dollar,$0,$1)$(strip $(if $(filter-out undefined,$(origin __gmsl_stack_$1)), \
-    $(call first,$(__gmsl_stack_$1))                                       \
-    $(eval __gmsl_stack_$1 := $(call rest,$(__gmsl_stack_$1)))))
-
-# ----------------------------------------------------------------------------
-# Function:  peek
-# Arguments: 1: Name of stack
-# Returns:   Top element from the stack without removing it
-# ----------------------------------------------------------------------------
-peek = $(__gmsl_tr1)$(call assert_no_dollar,$0,$1)$(call first,$(__gmsl_stack_$1))
-
-# ----------------------------------------------------------------------------
-# Function:  depth
-# Arguments: 1: Name of stack
-# Returns:   Number of items on the stack
-# ----------------------------------------------------------------------------
-depth = $(__gmsl_tr1)$(call assert_no_dollar,$0,$1)$(words $(__gmsl_stack_$1))
-
-endif # __gmsl_have_eval
-
-# ###########################################################################
-# DEBUGGING FACILITIES
-# ###########################################################################
-
-# ----------------------------------------------------------------------------
-# Target:    gmsl-print-%
-# Arguments: The % should be replaced by the name of a variable that you
-#            wish to print out.
-# Action:    Echos the name of the variable that matches the % and its value.
-#            For example, 'make gmsl-print-SHELL' will output the value of
-#            the SHELL variable
-# ----------------------------------------------------------------------------
-gmsl-print-%: ; @echo $* = $($*)
-
-# ----------------------------------------------------------------------------
-# Function:  assert
-# Arguments: 1: A boolean that must be true or the assertion will fail
-#            2: The message to print with the assertion
-# Returns:   None
-# ----------------------------------------------------------------------------
-assert = $(if $1,,$(call __gmsl_error,Assertion failure: $2))
-
-# ----------------------------------------------------------------------------
-# Function:  assert_exists
-# Arguments: 1: Name of file that must exist, if it is missing an assertion
-#               will be generated
-# Returns:   None
-# ----------------------------------------------------------------------------
-assert_exists = $(call assert,$(wildcard $1),file '$1' missing)
-
-# ----------------------------------------------------------------------------
-# Function:  assert_no_dollar
-# Arguments: 1: Name of a function being executd
-#            2: Arguments to check
-# Returns:   None
-# ----------------------------------------------------------------------------
-assert_no_dollar = $(call assert,$(call not,$(findstring $$,$2)),$1 called with a dollar sign in argument)
diff --git a/pkgs/build-essentials/buildsystem/gmsl b/pkgs/build-essentials/buildsystem/gmsl
deleted file mode 100644 (file)
index 2ff2897..0000000
+++ /dev/null
@@ -1,89 +0,0 @@
-# ----------------------------------------------------------------------------
-#
-# GNU Make Standard Library (GMSL)
-#
-# A library of functions to be used with GNU Make's $(call) that
-# provides functionality not available in standard GNU Make.
-#
-# Copyright (c) 2005-2008 John Graham-Cumming
-#
-# This file is part of GMSL
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 
-# Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# Neither the name of the John Graham-Cumming nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
-# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
-# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
-# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-# ----------------------------------------------------------------------------
-
-# Determine if the library has already been included and if so don't
-# bother including it again
-
-ifndef __gmsl_included
-
-# Standard definitions for true and false.  true is any non-empty
-# string, false is an empty string. These are intended for use with
-# $(if).
-
-true  := T
-false :=
-
-# ----------------------------------------------------------------------------
-# Function:  not
-# Arguments: 1: A boolean value
-# Returns:   Returns the opposite of the arg. (true -> false, false -> true)
-# ----------------------------------------------------------------------------
-not = $(if $1,$(false),$(true))
-
-# Prevent reinclusion of the library
-
-__gmsl_included := $(true)
-
-# Try to determine where this file is located.  If the caller did
-# include /foo/gmsl then extract the /foo/ so that __gmsl gets
-# included transparently
-
-ifneq ($(MAKEFILE_LIST),)
-__gmsl_root := $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
-
-# If there are any spaces in the path in __gmsl_root then give up
-
-ifeq (1,$(words $(__gmsl_root)))
-__gmsl_root := $(patsubst %gmsl,%,$(__gmsl_root))
-else
-__gmsl_root :=
-endif
-
-include $(__gmsl_root)__gmsl
-
-else
-
-include __gmsl
-
-endif
-
-endif # __gmsl_included
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent b/pkgs/build-essentials/quality-agent/quality-agent
deleted file mode 100755 (executable)
index a83a1a3..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-DIR_QA=/usr/lib/quality-agent
-
-failed=0
-for file in ${DIR_QA}/*; do
-       [ -x "${file}" ] || continue
-
-       ${file} || failed=1
-done
-
-exit ${failed}
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/001-include-files b/pkgs/build-essentials/quality-agent/quality-agent.d/001-include-files
deleted file mode 100755 (executable)
index 34257e6..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Include files have to belong to the root user. \
-       This script will fix this automatically."
-
-check() {
-       if [ ! -d "${BUILDROOT}/usr/include" ]; then
-               return 0
-       fi
-       
-       chown -R root:root ${BUILDROOT}/usr/include
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-info-files b/pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-info-files
deleted file mode 100755 (executable)
index e742dc9..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Remove documentation files."
-
-function check() {
-       for dir in ${BUILDROOT}/usr/{,share}/{doc,gtk-doc,info}; do
-               if [ -d "${dir}" ]; then
-                       log DEBUG "  Removing: ${dir}"
-                       rm -rf ${dir} || exit $?
-               fi
-       done
-}
-
-run
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-static-libs b/pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-static-libs
deleted file mode 100755 (executable)
index e5c6e54..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Removing unwanted files: *.a *.la"
-
-function check() {
-       for file in $(find ${BUILDROOT} -name "*.a" -or -name "*.la"); do
-       
-               # Don't remove libc_nonshared.a. It is used by gcc/ld.
-               [ "${file##*/}" = "libc_nonshared.a" ] && continue
-               [ "${file##*/}" = "libpthread_nonshared.a" ] && continue
-               [ "${file##*/}" = "libgcc.a" ] && continue
-               [ "${file##*/}" = "libgcc_eh.a" ] && continue
-               [ "${file##*/}" = "libfl_pic.a" ] && continue
-               [ "${file##*/}" = "libpython2.6.a" ] && continue
-       
-               log DEBUG "  Removing: ${file}"
-               rm -f ${file} || exit $?
-       done
-}
-
-run
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/001-unsafe-files b/pkgs/build-essentials/quality-agent/quality-agent.d/001-unsafe-files
deleted file mode 100755 (executable)
index 93a5dc8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Searching for world-writeable files..."
-
-function check() {
-       local ret=0
-
-       local files=$(find ${BUILDROOT} -type f -perm -2 2>/dev/null)
-       if [ -n "${files}" ]; then
-               log ERROR "  QA Security Notice:"
-               log ERROR "   - The folloing files will be world writable."
-               log ERROR "   - This may or may not be a security problem, most of the time it is one."
-               log ERROR "   - Please double check that these files really need a world writeable bit and file bugs accordingly."
-               log ERROR
-               log ERROR "${files}"
-               ret=1
-       fi
-
-       files=$(find ${BUILDROOT} -type f '(' -perm -2002 -o -perm -4002 ')')
-       if [ -n "${files}" ]; then
-               log ERROR "  QA Notice: Unsafe files detected (set*id and world writable)"
-               log ERROR
-               log ERROR "${files}"
-               ret=1
-       fi
-
-       return ${ret}
-}
-
-run
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/002-bad-symlinks b/pkgs/build-essentials/quality-agent/quality-agent.d/002-bad-symlinks
deleted file mode 100755 (executable)
index 27e8558..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-# Check for absolute symlinks.
-# We do not allow them because they may point to any bad location.
-
-log_debug "Search for absolute symlinks"
-
-function check() {
-       local failed=0
-       local item
-
-       for link in $(find ${BUILDROOT} -type l); do
-               if fgrep -q "/lib/udev/devices" <<<${link}; then
-                       continue
-               fi
-
-               if listmatch "${link:${#BUILDROOT}}" ${QUALITY_AGENT_WHITELIST_SYMLINK}; then
-                       log INFO "Symlink ${link} is on the whitelist."
-                       continue
-               fi
-
-               destination=$(readlink ${link})
-               if [ "${destination:0:1}" = "/" ]; then
-                       log ERROR "  Absolute symlink: ${link}"
-                       failed=1
-               fi
-               if [ ! -e "${link%/*}/${destination}" ]; then
-                       log ERROR "  Not existant destination: ${link} -> ${destination}"
-                       failed=1
-               fi
-       done
-
-       return ${failed}
-}
-
-run
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/003-libs-location b/pkgs/build-essentials/quality-agent/quality-agent.d/003-libs-location
deleted file mode 100755 (executable)
index 185f44f..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Checking correct installation of libraries"
-
-function check() {
-       local failed=0
-       for lib in $(find ${BUILDROOT}/lib -type f -name "lib*.so.*" 2>/dev/null); do
-               lib=${lib##*/}
-               lib=${lib%%.so*}
-
-               if [ ! -e "${BUILDROOT}/usr/lib/${lib}.so" ]; then
-                       log ERROR "  /usr/lib/${lib}.so is missing"
-                       failed=1
-               fi
-       done
-
-       return ${failed}
-}
-
-run
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-canary b/pkgs/build-essentials/quality-agent/quality-agent.d/050-canary
deleted file mode 100755 (executable)
index 67b25e5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Every binary file has to provide a canary."
-
-function check() {
-       local failed=0
-
-       local file
-       for file in $(find_elf_files --prefix=${BUILDROOT} ${BINARY_PATHS}); do
-               if filter_startfiles ${file}; then
-                       continue
-               fi
-
-               if ! file_has_canary ${file}; then
-                       log_warning "  Has no canary: ${file}"
-                       failed=1
-               fi
-       done
-
-       # This is currently disabled and will only return a warning !
-       failed=0
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-execstacks b/pkgs/build-essentials/quality-agent/quality-agent.d/050-execstacks
deleted file mode 100755 (executable)
index 9540eee..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Files with executable stacks will not work properly (or at all!) \
-       on some architectures/operating systems."
-
-check() {
-       local failed=0
-
-       local file
-       for file in $(find_elf_files --prefix=${BUILDROOT} ${BINARY_PATHS}); do
-               if file_has_execstack ${file}; then
-                       log_error "  File has execstack: ${file}"
-                       failed=1
-               fi
-       done
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-invalid-interpreters b/pkgs/build-essentials/quality-agent/quality-agent.d/050-invalid-interpreters
deleted file mode 100755 (executable)
index 09d0ba5..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Detect invalid interpreters."
-
-check() {
-       local failed=0
-
-       local file
-       local interpreter
-       for file in $(find ${BUILDROOT} -type f 2>/dev/null); do
-               # If a file is not executeable we don't need to check it
-               [ -x "${file}" ] || continue
-
-               if file_is_script ${file}; then
-                       interpreter=$(file_get_interpreter ${file})
-
-                       if grep -q /usr/local <<<${interpreter}; then
-                               failed=1
-                               log_error "  Interpreter in /usr/local: ${file}"
-                       fi
-
-                       # Search for bad /usr/bin/env
-                       if [ "$(basename ${interpreter})" = "env" ]; then       
-                               # Autofix that crap
-                               sed -i ${file} \
-                                       -e "s,/usr/bin/env python.\..,/usr/bin/python," \
-                                       -e "s,/usr/bin/env python,/usr/bin/python," \
-                                       -e "s,/usr/bin/env perl,/usr/bin/perl,"
-
-                               # If we could not fix it, raise an error
-                               if [ "${interpreter}" = "$(file_get_interpreter ${file})" ]; then
-                                       failed=1
-                                       log_error "  Script uses forbidden \"env\" interpreter: ${file}"
-                               fi
-                       fi
-               fi
-       done
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-needed b/pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-needed
deleted file mode 100755 (executable)
index 93f600d..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Every shared object has to provide the NEEDED entry."
-
-check() {
-       local failed=0
-
-       local file
-       local needed
-       for file in $(find_elf_files --prefix=${BUILDROOT} ${LIBARY_PATHS}); do
-               if ! file_is_shared_object ${file}; then
-                       continue
-               fi
-
-               if ! file_has_interpreter ${file}; then
-                       continue
-               fi
-
-               needed=$(file_get_needed ${file})
-               if [ -z "${needed}" ]; then
-                       log_error "  File lacks needed attribute: ${file}"
-                       failed=1
-               fi
-       done
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-soname b/pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-soname
deleted file mode 100755 (executable)
index b6232b6..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Every shared object has to provide the SONAME entry."
-
-check() {
-       local failed=0
-
-       local file
-       local soname
-       for file in $(find_elf_files --prefix=${BUILDROOT} ${LIBARY_PATHS}); do
-               if ! grep -q "\.so" <<<${file}; then
-                       continue
-               fi
-
-               if ! file_is_shared_object ${file}; then
-                       continue
-               fi
-
-               if ! file_has_interpreter ${file}; then
-                       continue
-               fi
-
-               soname=$(file_get_soname ${file})
-               if [ -z "${soname}" ]; then
-                       log_error "  File lacks soname attribute: ${file}"
-                       failed=1
-               fi
-       done
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-nx b/pkgs/build-essentials/quality-agent/quality-agent.d/050-nx
deleted file mode 100755 (executable)
index c9c2733..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-function check() {
-       local failed=0
-
-       FILTER="${QUALITY_AGENT_WHITELIST_NX}"
-
-       local file
-       for file in $(find_elf_files --prefix=${BUILDROOT} ${BINARY_PATHS}); do
-               if filtered ${file}; then
-                       continue
-               fi
-
-               if ! file_has_nx ${file}; then
-                       log_error "  No NX: ${file}"
-                       failed=1
-               fi
-       done
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-relro b/pkgs/build-essentials/quality-agent/quality-agent.d/050-relro
deleted file mode 100755 (executable)
index e42e8ff..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Text relocations force the dynamic linker to perform extra \
-       work at startup, waste system resources, and may pose a security \
-       risk. On some architectures, the code may not even function \
-       properly, if at all."
-
-function check() {
-       local failed=0
-
-       local file
-       for file in $(find_elf_files --prefix=${BUILDROOT} ${BINARY_PATHS}); do
-               if filter_startfiles ${file}; then
-                       continue
-               fi
-
-               # Skip all files that are not a shared object.
-               file_is_shared_object ${file} || continue
-
-               if ! file_is_relro_full ${file}; then
-                       if [ "${QUALITY_AGENT_PERMIT_NOT_FULL_RELRO}" = "yes" ]; then
-                               log_warning "  Is not full relro: ${file}"
-                       else
-                               log_error "  Is not relro: ${file}"
-                               failed=1
-                       fi
-               fi
-       done
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-root-links-to-usr b/pkgs/build-essentials/quality-agent/quality-agent.d/050-root-links-to-usr
deleted file mode 100755 (executable)
index 98385c5..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Check for binaries in /bin or /sbin that link to /usr/..."
-
-function check() {
-       local ret=0
-
-       for file in $(find ${BUILDROOT}/{bin,lib,sbin}/* 2>/dev/null); do
-               [ -f "${file}" ] || continue
-               log DEBUG "  ${file}"
-
-               interpreter=$(file_get_interpreter ${file})
-               if [ ! -e "${interpreter}" ]; then
-                       log WARN "  SKIPPED because interpreter is not available"
-                       continue
-               fi
-
-               libs=$(ldd ${file})
-               if grep -q /usr/lib <<<${libs}; then
-                       log ERROR "${file} links to libs in /usr/lib..."
-                       log ERROR "  ${libs}"
-                       ret=1
-               fi
-       done
-
-       return ${ret}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/050-rpaths b/pkgs/build-essentials/quality-agent/quality-agent.d/050-rpaths
deleted file mode 100755 (executable)
index 8250612..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Searching for RPATHs. We don't want paths that point to the tree where \
-       the package was built (older, broken libtools would do this). \
-       Also check for null paths because the loader will search \$PWD when it \
-       finds null paths."
-
-check() {
-       local failed=0
-
-       local file
-       local rpath
-       for file in $(find_elf_files --prefix=${BUILDROOT} ${BINARY_PATHS}); do
-               if filtered ${file}; then
-                       continue
-               fi
-
-               rpath=$(file_get_rpath ${file})
-               if [ -n "${rpath}" ]; then
-                       if [ "${QUALITY_AGENT_RPATH_ALLOW_ORIGIN}" = "yes" ]; then
-                               [ "${rpath}" = '$ORIGIN' ] && continue
-                       fi
-                       if listmatch ${rpath} ${QUALITY_AGENT_WHITELIST_RPATH}; then
-                               continue
-                       fi
-                       log_error "  File has unallowed rpath: ${file} - ${rpath}"
-                       failed=1
-               fi
-       done
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/090-man-pages b/pkgs/build-essentials/quality-agent/quality-agent.d/090-man-pages
deleted file mode 100755 (executable)
index 0720d10..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Decompressing man-pages..."
-
-function check() {
-       for file in $(find ${BUILDROOT}/usr/share/man -type f 2>/dev/null); do
-               log DEBUG "  Processing: ${file}"
-               if [[ ${file} =~ \.gz$ ]]; then
-                       gzip -d ${file}
-               fi
-       done
-}
-
-run
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/090-python-hardlinks b/pkgs/build-essentials/quality-agent/quality-agent.d/090-python-hardlinks
deleted file mode 100755 (executable)
index e2abf76..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Python byte-code files could be hardlinked if the optimized one is equal"
-DESC="${DESC} to the other one."
-
-function check() {
-       for py in $(find ${BUILDROOT} -type f -name "*.py"); do
-               if [ -e "${py}c" ] && [ -e "${py}o" ]; then
-                       if cmp -s "${py}c" "${py}o"; then
-                               log DEBUG "  ${py}c -> ${py}o"
-                               ln -f "${py}c" "${py}o"
-                       fi
-               fi
-       done
-}
-
-run
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/090-remove-empty-dirs b/pkgs/build-essentials/quality-agent/quality-agent.d/090-remove-empty-dirs
deleted file mode 100755 (executable)
index d1d61a1..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="Remove unwanted files."
-
-function check() {
-       for dir in $(sort_by_length {,/usr}/{{,s}bin,lib{,exec}} /usr/share/man{,/man{0,1,2,3,4,5,6,7,8,9}}); do
-               dir="${BUILDROOT}/${dir}"
-               if [ -d "${dir}" ] && [ "$(ls -1A ${dir} | wc -l)" = "0" ]; then
-                       log DEBUG "  Removing ${dir}"
-                       rm -rf ${dir}
-               fi
-       done
-}
-
-run
-
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/095-directory-layout b/pkgs/build-essentials/quality-agent/quality-agent.d/095-directory-layout
deleted file mode 100755 (executable)
index 3f946a1..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-
-. $(dirname ${0})/qa-include
-
-DESC="The filelayout should comply to the FHS."
-
-DIRS="/etc/init.d /etc/rc.d /lib/pkgconfig /usr/etc /usr/libexec /usr/local /usr/man /usr/usr /usr/var"
-
-function check() {
-       # Do nothing, if directory check was disabled.
-       if [ "${QUALITY_AGENT_NO_DIRECTORY_CHECK}" = "yes" ]; then
-               return 0
-       fi
-
-       local failed=0
-
-       local dir
-       for dir in ${DIRS}; do
-               if [ -d "${BUILDROOT}${dir}" ]; then
-                       log_error "Bad directory: ${dir}"
-                       failed=1
-               fi
-       done
-
-       return ${failed}
-}
-
-run
diff --git a/pkgs/build-essentials/quality-agent/quality-agent.d/qa-include b/pkgs/build-essentials/quality-agent/quality-agent.d/qa-include
deleted file mode 100644 (file)
index 2846733..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/bash
-
-# Include additional functions
-. /usr/lib/buildsystem-tools/common-functions
-
-function debug() {
-       [ "${NAOKI_DEBUG}" = "1" ] || [ "${DEBUG}" = "1" ]
-}
-
-#function log() {
-#      local facility=${1}
-#      shift
-#
-#      printf " %-7s %s\n" "${facility}" "$@"
-#}
-
-function log_debug() {
-       debug && log DEBUG "$@"
-}
-
-function log_error() {
-       log "ERROR" "$@"
-}
-
-function log_info() {
-       log "INFO" "$@"
-}
-
-function log_warning() {
-       log "WARNING" "$@"
-}
-
-if [ -z "${BUILDROOT}" ]; then
-       echo "${0##*/}: ERROR: BUILDROOT is not set." >&2
-       exit 1
-fi
-
-function filtered() {
-       [ -z "${FILTER}" ] && return 1
-       grep -qE ${FILTER} <<<$@
-}
-
-function print_description() {
-       # Remove all whitespaces
-       local desc=$(echo ${DESC})
-
-       log_info "Check: $(basename ${0})"
-       IFS='
-'
-       for line in $(fold -s -w 60 <<<${desc}); do
-               log_info "  ${line}"
-       done
-       log_info # Empty line
-
-       unset IFS
-}
-
-function qa_find() {
-       local filetype=${1}
-       local command=${2}
-
-       log_debug "Running qa_find with command ${command} in ${filetype}"
-
-       local file
-       for file in $(find_elf_files --prefix=${BUILDROOT} ${!filetype}); do
-               ${command} ${file}
-       done
-}
-
-function check() {
-       log_error "REPLACE THIS FUNCTION BY A CUSTOM CHECK"
-       return 1
-}
-
-function run() {
-       local error_message
-       local ret
-
-       error_message=$(check)
-       ret=$?
-
-       [ -z "${error_message}" ] && \
-       [ "${ret}" = "0" ] && return 0
-
-       print_description
-
-       echo "${error_message}"
-       return ${ret}   
-}
-
index 88eda175369186c5e16f55013bc88138cb979902..738321dea363333d96228e9cd276c4752b45f29f 100644 (file)
@@ -1,43 +1,30 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = bwm-ng
+version    = 0.6
+release    = 1
 
-PKG_NAME       = bwm-ng
-PKG_VER        = 0.6
-PKG_REL        = 0
+groups     = Networking/Statistics
+url        = http://www.gropp.org/?id=projects&sub=bwm-ng
+license    = GPLv2+
+summary    = A bandwidth monitor for the shell.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Statistics
-PKG_URL        = http://www.gropp.org/?id=projects&sub=bwm-ng
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A bandwidth monitor for the shell.
+description
+       bwm-ng diplays the traffic passing by on all interfaces.
+end
 
-PKG_BUILD_DEPS+= ncurses-devel
+source_dl  = http://www.gropp.org/bwm-ng/
 
-define PKG_DESCRIPTION
-       bwm-ng diplays the traffic passing by on all interfaces.
-endef
+build
+       requires
+               ncurses-devel
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+       end
+end
index d3ff7529c80c70b14685d6cc475c6d362cec0d12..f0165c75c05571365b3b4a3eefd62cb197263ef9 100644 (file)
@@ -1,75 +1,62 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = bzip2
-PKG_VER        = 1.0.6
-PKG_REL        = 0
+name       = bzip2
+version    = 1.0.6
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Compression
-PKG_URL        = http://www.bzip.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Bzip2 is a data compressor.
+groups     = Applications/Compression Build
+url        = http://www.bzip.org/
+license    = GPLv2+
+summary    = Bzip2 is a data compressor.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
-       bzip2 is a freely available, patent free (see below), high-quality data \
+description
+       bzip2 is a freely available, patent free (see below), high-quality data
        compressor that is an alternative to the GNU zip compressor.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CFLAGS        += -fPIC -D_FILE_OFFSET_BITS=64
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i 's@\(ln -s -f \)\$$(PREFIX)/bin/@\1@' Makefile
-       cd $(DIR_APP) && sed -e "s/\$$(CC) -shared/& $(CFLAGS)/" -i Makefile-libbz2_so
-endef
-
-define STAGE_BUILD
-       $(DO_FIX_LIBTOOL)
-       cd $(DIR_APP) && make -f Makefile-libbz2_so $(PARALLELISMFLAGS)
-
-       cd $(DIR_APP) && make clean
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make PREFIX=$(BUILDROOT)/usr install
-
-       -mkdir -pv $(BUILDROOT)/{bin,lib}
-       cd $(DIR_APP) && cp -v bzip2-shared $(BUILDROOT)/bin/bzip2
-       cd $(DIR_APP) && cp -av libbz2.so* $(BUILDROOT)/lib
-       ln -sfv ../../lib/libbz2.so.1.0 $(BUILDROOT)/usr/lib/libbz2.so
-       rm -fv $(BUILDROOT)/usr/bin/{bunzip2,bzcat,bzip2}
-       ln -sfv bzip2 $(BUILDROOT)/bin/bunzip2
-       ln -sfv bzip2 $(BUILDROOT)/bin/bzcat
-       rm -vf $(BUILDROOT)/usr/lib/libbz2.a
-
-       -mkdir -pv $(BUIDLROOT)/usr/share
-       mv -vf $(BUILDROOT)/usr/man $(BUILDROOT)/usr/share/
-endef
+end
+
+source_dl  = http://www.bzip.org/%{version}/
+
+CFLAGS    += -fPIC -D_FILE_OFFSET_BITS=64
+
+build
+       prepare_cmds
+               sed -i 's@\(ln -s -f \)\$(PREFIX)/bin/@\1@' Makefile
+               sed -e "s/\$(CC) -shared/& %{CFLAGS}/" -i Makefile-libbz2_so
+       end
+
+       build
+               %{DO_FIX_LIBTOOL}
+               make -f Makefile-libbz2_so %{PARALLELISMFLAGS}
+
+               make clean
+               make %{PARALLELISMFLAGS}
+       end
+
+       install
+               make PREFIX=%{BUILDROOT}/usr install
+
+               mkdir -pv %{BUILDROOT}/{bin,lib}
+               cp -v bzip2-shared %{BUILDROOT}/bin/bzip2
+               cp -av libbz2.so* %{BUILDROOT}/lib
+               ln -sfv ../../lib/libbz2.so.1.0 %{BUILDROOT}/usr/lib/libbz2.so
+               rm -fv %{BUILDROOT}/usr/bin/{bunzip2,bzcat,bzip2}
+               ln -sfv bzip2 %{BUILDROOT}/bin/bunzip2
+               ln -sfv bzip2 %{BUILDROOT}/bin/bzcat
+               rm -vf %{BUILDROOT}/usr/lib/libbz2.a
+
+               mkdir -pv %{BUIDLROOT}/usr/share
+               mv -vf %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index df1d718c641aab9edbd1867c3c1b50524cb58649..3c80c63575c4c4e344cfb063d976557829e91063 100644 (file)
@@ -1,59 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = c_icap
-PKG_VER        = 0.1.5
-PKG_REL        = 1
-
-PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://c-icap.sourceforge.net
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = c-icap is an implementation of an ICAP server.
+name       = c_icap
+version    = 0.1.5
+release    = 1
 
-PKG_BUILD_DEPS+= zlib-devel db4-devel libtool-devel autoconf automake
+maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
+groups     = Networking/Daemons
+url        = http://c-icap.sourceforge.net
+license    = GPLv2
+summary    = c-icap is an implementation of an ICAP server.
 
-define QUALITY_AGENT_WHITELIST_RPATH
-       /usr/lib
-endef
-
-define PKG_DESCRIPTION
+description
        c-icap is an implementation of an ICAP server. It can be used with \
        HTTP proxies that support the ICAP protocol to implement content \
        adaptation and filtering services.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --enable-large-files \
-       --enable-ipv6 \
-       --sysconfdir=/etc \
-       --localstatedir=/var
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -vfi
-endef
+end
+
+build
+       requires
+               autoconf
+               automake
+               db4-devel
+               libtool-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --enable-large-files \
+               --enable-ipv6 \
+               --sysconfdir=/etc \
+               --localstatedir=/var
+
+       prepare_cmds
+               autoreconf -vfi
+       end
+end
+
+quality-agent
+       whitelist_rpath
+               /usr/lib
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 720abfd260b225cb1441345d65a1a3ba7d0b9843..04fc7d026ed6405de039da8eefdac683fc80a143 100644 (file)
@@ -1,59 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = c_icap_modules
-PKG_VER        = 0.1.4
-PKG_REL        = 1
-
-PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://c-icap.sourceforge.net
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = c-icap service modules for clamav and content filrer.
+name       = c_icap_modules
+version    = 0.1.4
+release    = 1
 
-PKG_BUILD_DEPS+= c_icap clamav-devel db4-devel libtool-devel autoconf automake
+maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
+groups     = Networking/Daemons
+url        = http://c-icap.sourceforge.net
+license    = GPLv2
+summary    = c-icap service modules for clamav and content filrer.
 
-define PKG_DESCRIPTION
+description
        c-icap is an implementation of an ICAP server. It can be used with \
        HTTP proxies that support the ICAP protocol to implement content \
        adaptation and filtering services.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS      += \
-       --sysconfdir=/etc \
-       --localstatedir=/var
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -vfi
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/etc
-
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-endef
+end
+
+build
+       requires
+               autoconf
+               automake
+               c_icap
+               clamav-devel
+               db4-devel
+               libtool-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --localstatedir=/var
+
+       prepare_cmds
+               autoreconf -vfi
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/etc
+               make install DESTDIR=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index d1eb4a41586afb36aa7609105780761e2f815ce6..af94c848b6240c74bc484390de7b5f5cd840ed4f 100644 (file)
@@ -1,51 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = cairo
-PKG_VER        = 1.10.2
-PKG_REL        = 2
+name       = cairo
+version    = 1.10.2
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Graphics
-PKG_URL        = http://cairographics.org
-PKG_LICENSE    = LGPLv2 MPLv1.1
-PKG_SUMMARY    = A 2D graphics library.
+groups     = System/Graphics
+url        = http://cairographics.org
+license    = LGPLv2 MPLv1.1
+summary    = A 2D graphics library.
 
-PKG_BUILD_DEPS+= fontconfig-devel freetype-devel libpng-devel pixman-devel \
-       pkg-config zlib-devel
-
-define PKG_DESCRIPTION
+description
        Cairo is a 2D graphics library designed to provide high-quality display \
        and print output.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-# The development package needs the other dependencies as well.
-PKG_DEPS-$(PKG_NAME_REAL)-devel += fontconfig-devel freetype-devel \
-       libpng-devel pixman-devel
+end
+
+source_dl  = http://cairographics.org/releases/
+
+build
+       requires
+               fontconfig-devel
+               freetype-devel
+               libpng-devel
+               pixman-devel
+               pkg-config
+               zlib-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               # The development package needs the other dependencies as well.
+               requires
+                       fontconfig-devel
+                       freetype-devel
+                       libpng-devel
+                       pixman-devel
+               end
+       end
+end
index 19e04606db4b16de3273ea8300cabf595f0fb57d..fbc601cce5a1e69cb1f13f88e19a2b962df1cea8 100644 (file)
@@ -1,79 +1,68 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = ccache
-PKG_VER        = 3.1.5
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Compilers
-PKG_URL        = http://ccache.samba.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = C/C++ compiler cache.
+name       = ccache
+version    = 3.1.5
+release    = 1
 
-PKG_BUILD_DEPS+= perl zlib-devel
+groups     = Development/Compilers
+url        = http://ccache.samba.org/
+license    = GPLv2+
+summary    = C/C++ compiler cache.
 
-CCACHE_PLATFORM_TARGET = $(subst -gnu,,$(DISTRO_MACHINE))
-
-define PKG_DESCRIPTION
-       ccache is a compiler cache.  It acts as a caching pre-processor to \
-       C/C++ compilers, using the -E compiler switch and a hash to detect \
-       when a compilation can be satisfied from cache.  This often results in \
+description
+       ccache is a compiler cache.  It acts as a caching pre-processor to
+       C/C++ compilers, using the -E compiler switch and a hash to detect
+       when a compilation can be satisfied from cache.  This often results in
        a 5 to 10 times speedup in common compilations.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+source_dl  = http://samba.org/ftp/ccache/
+sources    = %{thisapp}.tar.bz2
 
 # Sets ccache max size up to 2 GB
 CFLAGS += -DDEFAULT_MAXSIZE=2097152
 
-CCACHE_CACHE = /var/cache/ccache
+build
+       requires
+               perl
+               zlib-devel
+       end
+
+       CCACHE_CACHE = /var/cache/ccache
+
+       configure_options += \
+               --mandir=/usr/share/man
+
+       prepare_cmds
+               # Disable pch test that fails
+               sed -e "s/^pch_suite.*/& return 0/" -i test.sh
+       end
 
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man
+       test
+               make check
+       end
 
-define STAGE_PREPARE_CMDS
-       # Disable pch test that fails
-       cd $(DIR_APP) && sed -e "s/^pch_suite.*/& return 0/" -i test.sh
-endef
+       install_cmds
+               CCACHE_PLATFORM_TARGET=$(echo %{DISTRO_MACHINE} | sed -e "s/-gnu//g")
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+               mkdir -pv %{BUILDROOT}/usr/lib/ccache
+               for i in gcc g++ cc c++; do \
+                       ln -svf ../../bin/ccache %{BUILDROOT}/usr/lib/ccache/${i}; \
+                       ln -svf ../../bin/ccache %{BUILDROOT}/usr/lib/ccache/${CCACHE_PLATFORM_TARGET}-${i}; \
+               done
 
-define STAGE_INSTALL_CMDS
-       mkdir -pv $(BUILDROOT)/usr/lib/ccache
-       for i in gcc g++ cc c++; do \
-               ln -svf ../../bin/ccache $(BUILDROOT)/usr/lib/ccache/$${i}; \
-               ln -svf ../../bin/ccache $(BUILDROOT)/usr/lib/ccache/$(CCACHE_PLATFORM_TARGET)-$${i}; \
-       done
+               mkdir -pv %{BUILDROOT}/etc/profile.d
+               sed -e "s|@LIBDIR@|/usr/lib|g" -e "s|@CACHEDIR@|%{CCACHE_CACHE}|g" \
+                       < %{DIR_SOURCE}/ccache.sh > %{BUILDROOT}/etc/profile.d/ccache.sh
 
-       -mkdir -pv $(BUILDROOT)/etc/profile.d
-       sed -e "s|@LIBDIR@|/usr/lib|g" -e "s|@CACHEDIR@|$(CCACHE_CACHE)|g" \
-               < $(DIR_SOURCE)/ccache.sh > $(BUILDROOT)/etc/profile.d/ccache.sh
+               mkdir -pv -m770 %{BUILDROOT}/%{CCACHE_CACHE}
+       end
+end
 
-       -mkdir -pv -m770 $(BUILDROOT)/$(CCACHE_CACHE)
-endef
+packages
+       package %{name}
+       end
+end
index 41fc286f7d9bce98b3c4230f06e7ddeeeb52e7d3..fb44fbb7ea8a79fd4ecc2e3857537afd14363076 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = chrony
-PKG_VER        = 1.26
-PKG_REL        = 6
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Daemons
-PKG_URL        = http://chrony.tuxfamily.org
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = An NTP client/server.
+name       = chrony
+version    = 1.26
+release    = 6
 
-PKG_BUILD_DEPS+= bison libcap-devel libedit-devel readline-devel texinfo
+groups     = Base System/Daemons
+url        = http://chrony.tuxfamily.org
+license    = GPLv2
+summary    = An NTP client/server.
 
-define PKG_DESCRIPTION
+description
        A client/server for the Network Time Protocol, this program keeps your
        computer's clock accurate. It was specially designed to support
        systems with intermittent internet connections, but it also works well
        in permanently connected environments. It can use also hardware reference
        clocks, system real-time clock or manual input as time references.
-endef
+end
+
+build
+       requires
+               bison
+               libcap-devel
+               libedit-devel
+               readline-devel
+               shadow-utils
+               texinfo
+       end
+
+       configure_options = \
+               --prefix=/usr \
+               --with-sendmail=/usr/sbin/sendmail
+
+       prepare_cmds
+               %{create_user}
+       end
+
+       build_targets += getdate all docs
+       install_targets += install-docs
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       install_cmds
+               mkdir -pv %{BUILDROOT}/var/{lib,log}/chrony
+               touch %{BUILDROOT}/var/lib/chrony/{drift,rtc}
 
-CONFIGURE_OPTIONS += \
-       --with-sendmail=/usr/sbin/sendmail
+               mkdir -pv %{BUILDROOT}/etc
+               install -m 644 -p %{DIR_SOURCE}/chrony.conf %{BUILDROOT}/etc/chrony.conf
+               install -m 640 -p %{DIR_SOURCE}/chrony.keys %{BUILDROOT}/etc/chrony.keys
+               chown -v root.chrony %{BUILDROOT}/etc/chrony.keys
 
-STAGE_BUILD_TARGETS += getdate all docs
-STAGE_INSTALL_TARGETS += install-docs
+               mkdir -pv %{BUILDROOT}/etc/dhcp/dhclient.d
+               install -m 755 -p %{DIR_SOURCE}/chrony.dhclient \
+                       %{BUILDROOT}/etc/dhcp/dhclient.d/chrony.sh
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/var/{lib,log}/chrony
-       touch $(BUILDROOT)/var/lib/chrony/{drift,rtc}
+               mkdir -pv %{BUILDROOT}/etc/logrotate.d
+               install -m 644 -p %{DIR_SOURCE}/chrony.logrotate \
+                       %{BUILDROOT}/etc/logrotate.d/chrony
 
-       -mkdir -pv $(BUILDROOT)/etc
-       install -m 644 -p $(DIR_SOURCE)/chrony.conf $(BUILDROOT)/etc/chrony.conf
-       install -m 640 -p $(DIR_SOURCE)/chrony.keys $(BUILDROOT)/etc/chrony.keys
+               mkdir -pv %{BUILDROOT}/usr/lib/chrony
+               install -m 755 -p %{DIR_SOURCE}/chrony-helper %{BUILDROOT}/usr/lib/chrony-helper
 
-       -mkdir -pv $(BUILDROOT)/etc/dhcp/dhclient.d
-       install -m 755 -p $(DIR_SOURCE)/chrony.dhclient \
-               $(BUILDROOT)/etc/dhcp/dhclient.d/chrony.sh
+               chown -Rv chrony.chrony %{BUILDROOT}/var/{lib,log}/chrony
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/etc/logrotate.d
-       install -m 644 -p $(DIR_SOURCE)/chrony.logrotate \
-               $(BUILDROOT)/etc/logrotate.d/chrony
+create_user
+       getent group chrony >/dev/null || /usr/sbin/groupadd -r chrony
+       getent passwd chrony >/dev/null || /usr/sbin/useradd -r -g chrony \
+               -d /var/lib/chrony -s /sbin/nologin chrony
+end
 
-       -mkdir -pv $(BUILDROOT)/usr/lib/chrony
-       install -m 755 -p $(DIR_SOURCE)/chrony-helper $(BUILDROOT)/usr/lib/chrony-helper
-endef
+packages
+       package %{name}
+               preprequires = shadow-utils systemd-units
+       
+               configfiles
+                       /etc/chrony.conf
+                       /etc/chrony.keys
+               end
+       
+               script prein
+                       %{create_user}
+               end
+       
+               script postin
+                       /bin/systemctl daemon-reload &>/dev/null
+                       /bin/systemctl enable cronyd.service &>/dev/null
+               end
+       
+               script preun
+                       /bin/systemctl --no-reload disable \
+                               chrony-wait.service chronyd.service &>/dev/null
+                       /bin/systemctl stop chrony-wait.service chronyd.service &>/dev/null
+               end
+       
+               script postup
+                       /bin/systemctl daemon-reload &>/dev/null
+                       /bin/systemctl try-restart chronyd.service &>/dev/null
+               end
+       end
+end
index 22c3816fc73d60d99a59b8bfb64e931e5e0c0d88..c176c9cbecde367e1f2208aa24491fc48dfa14b2 100644 (file)
@@ -1,50 +1,35 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = chrpath
+version    = 0.13
+release    = 1
 
-PKG_NAME       = chrpath
-PKG_VER        = 0.13
-PKG_REL        = 1
+groups     = Development/Tools
+url        = ftp://ftp.hungry.com/pub/hungry/chrpath/
+license    = GPL+
+summary    = Modify rpath of compiled programs.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = ftp://ftp.hungry.com/pub/hungry/chrpath/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Modify rpath of compiled programs.
-
-define PKG_DESCRIPTION
+description
        chrpath allows you to modify the dynamic library load path (rpath) of
        compiled programs.  Currently, only removing and modifying the rpath
        is supported.
-endef
+end
+
+source_dl  = %{url}
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_options += \
+               --mandir=/usr/share/man
 
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man
+       install_cmds
+               rm -rfv %{BUILDROOT}/usr/doc
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       rm -rfv $(BUILDROOT)/usr/doc
-endef
+packages
+       package %{name}
+       end
+end
index edba0c3d8c9b7287e8ed6565a0b5b6d3674ae9e8..a3c74738bfc0e5f158b7eca82211116793515a58 100644 (file)
@@ -1,79 +1,76 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = clamav
-PKG_VER        = 0.97
-PKG_REL        = 3
+name       = clamav
+version    = 0.97
+release    = 3
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System Environment/Daemons 
-PKG_URL        = http://www.clamav.net
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A GPL virus scanner
+groups     = System Environment/Daemons
+url        = http://www.clamav.net
+license    = GPLv2
+summary    = A GPL virus scanner
 
-PKG_BUILD_DEPS+= zlib-devel bzip2-devel gmp-devel curl-devel ncurses-devel shadow
+description
+       ClamAV is an open source (GPL) antivirus engine designed for
+       detecting Trojans, viruses, malware and other malicious threats.
+       It is the de facto standard for mail gateway scanning. It
+       provides a high performance mutli-threaded scanning daemon,
+       command line utilities for on demand file scanning, and an
+       intelligent tool for automatic signature updates. The core ClamAV
+       library provides numerous file format detection mechanisms, file
+       unpacking support, archive support, and multiple signature
+       languages for detecting threats.
+end
 
-define PKG_DESCRIPTION
-               ClamAV is an open source (GPL) antivirus engine designed for \
-               detecting Trojans, viruses, malware and other malicious threats. \
-               It is the de facto standard for mail gateway scanning. It \
-               provides a high performance mutli-threaded scanning daemon, \
-               command line utilities for on demand file scanning, and an \
-               intelligent tool for automatic signature updates. The core ClamAV \
-               library provides numerous file format detection mechanisms, file \
-               unpacking support, archive support, and multiple signature \
-               languages for detecting threats.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+source_dl  = http://downloads.sourceforge.net/clamav/
 
 CFLAGS    += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
 
-CONFIGURE_ENVIRONMENT += have_cv_ipv6=yes
+build
+       requires
+               bzip2-devel
+               curl-devel
+               gmp-devel
+               ncurses-devel
+               shadow-utils
+               zlib-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --disable-static \
+               --disable-rpath \
+               --disable-silent-rules \
+               --with-dbdir=/var/lib/clamav \
+               --enable-clamdtop \
+               --with-user=clamupdate \
+               --with-group=clamupdate \
+               have_cv_ipv6=yes
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --disable-static \
-       --disable-rpath \
-        --disable-silent-rules \
-        --with-dbdir=/var/lib/clamav \
-       --enable-clamdtop \
-       --with-user=clamupdate \
-        --with-group=clamupdate
+       # User and group have to exist to compile the source code,
+       # so we have to create them
+       prepare_cmds
+               groupadd -g 497 -r clamupdate
+               useradd -u 497 -r -s /sbin/nologin -d /var/lib/clamav -M \
+                       -c 'Clamav database update user' -g clamupdate clamupdate
 
-# User and group have to exist to compile the source code, 
-# so we have to create them
-define STAGE_PREPARE_CMDS
-       groupadd -g 497 -r clamupdate
-       useradd -u 497 -r -s /sbin/nologin -d /var/lib/clamav -M \
-               -c 'Clamav database update user' -g clamupdate clamupdate
+               groupadd -g 496 -r clamscan
+               useradd -u 496 -r -s /sbin/nologin -d / -M \
+                       -g clamscan clamscan
+       end
+end
 
-        groupadd -g 496 -r clamscan
-       useradd -u 496 -r -s /sbin/nologin -d / -M \
-               -g clamscan clamscan 
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 098d682fe145cfc1cc6380860c46cd39104dd8b9..82f120f29fdc34888481611e1660e115afb5fa92 100644 (file)
@@ -1,60 +1,52 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = cloog-ppl
-PKG_VER        = 0.15.9
-PKG_REL        = 3
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.cloog.org
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = The Chunky Loop Generator.
+name       = cloog-ppl
+version    = 0.15.9
+release    = 3
 
-PKG_BUILD_DEPS+= autoconf automake gmp-devel m4 ppl-devel>=0.11.2
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = System/Libraries
+url        = http://www.cloog.org
+license    = GPLv2+
+summary    = The Chunky Loop Generator.
 
-define PKG_DESCRIPTION
+description
        CLooG is a software which generates loops for scanning Z-polyhedra. That is, \
        CLooG finds the code or pseudo-code where each integral point of one or more \
        parametrized polyhedron or parametrized polyhedra union is reached. CLooG is \
        designed to avoid control overhead and to produce a very efficient code.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-CONFIGURE_OPTIONS += \
-       --with-ppl
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i configure \
-               -e "s/ppl_minor_version=10/ppl_minor_version=11/"
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+build
+       requires
+               autoconf
+               automake
+               gmp-devel
+               m4
+               ppl-devel>=0.11.2
+       end
+
+       configure_options += \
+               --with-ppl
+
+       prepare_cmds
+               sed -i configure \
+                       -e "s/ppl_minor_version=10/ppl_minor_version=11/"
+       end
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index e49bb14b7a46c086f651edc2c8130216e998fc40..9cfc81917395f9c9240feb0b0c4408ef780dbbfa 100644 (file)
@@ -1,80 +1,69 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = cmake
+version    = 2.8.4
+release    = 1
 
-PKG_NAME       = cmake
-PKG_VER        = 2.8.4
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.cmake.org
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Cross-platform make system.
-
-PKG_BUILD_DEPS+= expat-devel gcc-c++ libarchive-devel libcurl-devel \
-       ncurses-devel openssl-devel zlib-devel
+groups     = Development/Tools
+url        = http://www.cmake.org
+license    = BSD
+summary    = Cross-platform make system.
 
 # Add some fixes to work with lto.
 CFLAGS        += -Wl,-lpthread
 CXXFLAGS      += -Wl,-lpthread
 
-define PKG_DESCRIPTION
+description
        CMake is used to control the software compilation process using simple \
        platform and compiler independent configuration files. CMake generates \
        native makefiles and workspaces that can be used in the compiler \
        environment of your choice. CMake is quite sophisticated: it is possible \
        to support complex environments requiring system configuration, pre-processor \
        generation, code generation, and template instantiation.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               expat-devel
+               gcc-c++
+               libarchive-devel
+               libcurl-devel
+               ncurses-devel
+               openssl-devel
+               zlib-devel
+       end
 
-define STAGE_PREPARE_CMDS
-       # Fixup permissions
-       cd $(DIR_APP) && find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
-endef
+       prepare_cmds
+               # Fixup permissions
+               find -name \*.h -o -name \*.cxx -print0 | xargs -0 chmod -x
+       end
 
-define STAGE_BUILD
-       -mkdir -pv $(DIR_APP)/build
-       cd $(DIR_APP)/build && \
-               ../bootstrap \
+       build
+               mkdir -pv build
+               cd build && ../bootstrap \
                        --prefix=/usr \
                        --datadir=/share/cmake \
-                       --docdir=/share/doc/cmake-$(PKG_VER) \
+                       --docdir=/share/doc/cmake-%{version} \
                        --mandir=/share/man \
                        --system-libs \
-                       --parallel=$(shell /usr/bin/getconf _NPROCESSORS_ONLN)
+                       --parallel=$(/usr/bin/getconf _NPROCESSORS_ONLN)
+
+               make VERBOSE=1 %{PARALLELISMFLAGS}
+       end
 
-       cd $(DIR_APP)/build && make VERBOSE=1 $(PARALLELISMFLAGS)
-endef
+       test
+               cd build && bin/ctest -V -E ModuleNotices
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP)/build && bin/ctest -V -E ModuleNotices
-endef
+       install
+               cd build && make install DESTDIR=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP)/build && make install DESTDIR=$(BUILDROOT)
-endef
+packages
+       package %{name}
+       end
+end
index be41e0cad8c28342c87d3807e9724aaf7b619706..a2dfed238d8643b6947178b0b3999e7c8df32a09 100644 (file)
@@ -1,84 +1,80 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = coreutils
+version    = 8.12
+release    = 2
 
-PKG_NAME       = coreutils
-PKG_VER        = 8.12
-PKG_REL        = 2
+groups     = Base Build System/Base
+url        = http://www.gnu.org/software/coreutils/
+license    = GPLv3+
+summary    = A set of basic GNU tools commonly used in shell scripts.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Base
-PKG_URL        = http://www.gnu.org/software/coreutils/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A set of basic GNU tools commonly used in shell scripts.
-
-define PKG_DESCRIPTION
+description
        These are the GNU core utilities. This package is the combination of \
        the old GNU fileutils, sh-utils, and textutils packages.
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/coreutils/
+sources    = %{thisapp}.tar.xz
 
-PKG_BUILD_DEPS+= autoconf automake e2fsprogs-devel gmp-devel libacl-devel \
-       libattr-devel libcap-devel libselinux-devel ncurses-devel pam-devel
+CFLAGS    += -D_GNU_SOURCE=1 -fno-strict-aliasing
 
-PKG_TARBALL    = $(THISAPP).tar.xz
+build
+       requires
+               autoconf
+               automake
+               e2fsprogs-devel
+               gmp-devel
+               libacl-devel
+               libattr-devel
+               libcap-devel
+               libselinux-devel
+               ncurses-devel
+               pam-devel
+       end
 
-CFLAGS        += -D_GNU_SOURCE=1 -fno-strict-aliasing
+       configure_options += \
+               --enable-pam \
+               --enable-selinux \
+               --enable-largefile \
+               --enable-install-program=arch,hostname,su \
+               --enable-no-install-program=kill,uptime
 
-CONFIGURE_OPTIONS += \
-       --enable-pam \
-       --enable-selinux \
-       --enable-largefile \
-       --enable-install-program=arch,hostname,su \
-       --enable-no-install-program=kill,uptime
+       prepare_cmds
+               aclocal -I m4
+               autoconf --force
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && aclocal -I m4
-       cd $(DIR_APP) && autoconf --force
-endef
+       test
+               make check
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+       install_cmds
+               mkdir -pv %{BUILDROOT}/{bin,etc/profile.d,usr/sbin}
+               mv -v %{BUILDROOT}/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} %{BUILDROOT}/bin
+               mv -v %{BUILDROOT}/usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} %{BUILDROOT}/bin
+               mv -v %{BUILDROOT}/usr/bin/{rmdir,stty,sync,touch,true,uname} %{BUILDROOT}/bin
+               mv -v %{BUILDROOT}/usr/bin/chroot %{BUILDROOT}/usr/sbin
+               mv -v %{BUILDROOT}/usr/bin/{head,sleep,nice} %{BUILDROOT}/bin
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/{bin,etc/profile.d,usr/sbin}
-       mv -v $(BUILDROOT)/usr/bin/{cat,chgrp,chmod,chown,cp,date,dd,df,echo} $(BUILDROOT)/bin
-       mv -v $(BUILDROOT)/usr/bin/{false,hostname,ln,ls,mkdir,mknod,mv,pwd,readlink,rm} $(BUILDROOT)/bin
-       mv -v $(BUILDROOT)/usr/bin/{rmdir,stty,sync,touch,true,uname} $(BUILDROOT)/bin
-       mv -v $(BUILDROOT)/usr/bin/chroot $(BUILDROOT)/usr/sbin
-       mv -v $(BUILDROOT)/usr/bin/{head,sleep,nice} $(BUILDROOT)/bin
+               # Reinstall su in /bin
+               rm -rfv %{BUILDROOT}/usr/bin/su
+               install -m 4755 src/su %{BUILDROOT}/bin
 
-       # Reinstall su in /bin
-       -rm -rfv $(BUILDROOT)/usr/bin/su
-       cd $(DIR_APP) && install -m 4755 src/su $(BUILDROOT)/bin
+               # Dump /etc/DIR_COLORS
+               dircolors -p > %{BUILDROOT}/etc/DIR_COLORS
+               cp -vf %{DIR_SOURCE}/profile.d/* %{BUILDROOT}/etc/profile.d/
 
-       # Dump /etc/DIR_COLORS
-       dircolors -p > $(BUILDROOT)/etc/DIR_COLORS
-       cp -vf $(DIR_SOURCE)/profile.d/* $(BUILDROOT)/etc/profile.d/
+               # Capabilities
+               chmod u-s %{BUILDROOT}/bin/su
+               setcap cap_setgid,cap_setuid+ep %{BUILDROOT}/bin/su
+       end
+end
 
-       # Capabilities
-       chmod u-s $(BUILDROOT)/bin/su
-       setcap cap_setgid,cap_setuid+ep $(BUILDROOT)/bin/su
-endef
+packages
+       package %{name}
+       end
+end
index b0aa1f56e94dcd4ab96e0133ab294dcc07d20a29..53c3d42c606d1b6575f333e6cf43565a775dffeb 100644 (file)
@@ -1,54 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = cpio
-PKG_VER        = 2.10
-PKG_REL        = 0
+name       = cpio
+version    = 2.10
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Packaging
-PKG_URL        = http://www.gnu.org/software/cpio/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A GNU archiving program.
+groups     = System/Packaging
+url        = http://www.gnu.org/software/cpio/
+license    = GPLv3+
+summary    = A GNU archiving program.
 
-define PKG_DESCRIPTION
+description
        GNU cpio copies files into or out of a cpio or tar archive. Archives \
        are files which contain a collection of other files plus information \
        about them, such as their file name, owner, timestamps, and access \
        permissions. The archive can be another file on the disk, a magnetic \
        tape, or a pipe.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --libexecdir=/tmp \
-       --with-rmt=/usr/sbin/rmt
-
-define STAGE_TEST
-        cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/cpio/
+sources    = %{thisapp}.tar.bz2
+
+build
+       configure_options += \
+               --bindir=/bin \
+               --libexecdir=/tmp \
+               --with-rmt=/usr/sbin/rmt
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index e291e8b97a672a70d2051095cd44da32134232b6..f8e13862d28ab6e07a6fefc36adfa7f1b30bd468 100644 (file)
@@ -1,48 +1,38 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = cpufrequtils
-PKG_VER        = 008
-PKG_REL        = 4
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://htop.sourceforge.net/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Command line tools to determine current CPUfreq settings and to modify them
+name       = cpufrequtils
+version    = 008
+release    = 4
 
-PKG_BUILD_DEPS+= gettext libtool sysfsutils 
+groups     = Base Applications/System
+url        = http://htop.sourceforge.net/
+license    = GPLv2
+summary    = Command line tools to determine current CPUfreq settings and to modify them
 
-define PKG_DESCRIPTION
+description
        Command line tools to determine current CPUfreq settings and to modify them
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-STAGE_INSTALL_TARGETS += mandir=/usr/share/man
-
+end
+
+source_dl  =
+
+build
+       requires
+               gettext
+               libtool
+               sysfsutils
+       end
+
+       make_install_targets += mandir=/usr/share/man
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index e85013336b42cc53bdfb20116da200c4bfe7bd9f..ac714726e058099e1438fca2bfe33f9571916170 100644 (file)
@@ -1,43 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = cracklib
+version    = 2.8.12
+release    = 1
 
-PKG_NAME       = cracklib
-PKG_VER        = 2.8.12
-PKG_REL        = 1
+groups     = Security/Password
+url        = http://sourceforge.net/projects/cracklib/
+license    = GPLv2
+summary    = A password-checking library.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Security/Password
-PKG_URL        = http://sourceforge.net/projects/cracklib/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A password-checking library.
-
-PKG_BUILD_DEPS+= python-devel
-PKG_DEPS      += cracklib-dicts
-
-define PKG_DESCRIPTION
+description
        CrackLib tests passwords to determine whether they match certain \
        security-oriented characteristics, with the purpose of stopping users \
        from choosing passwords that are easy to guess. CrackLib performs \
@@ -45,46 +20,77 @@ define PKG_DESCRIPTION
        and gecos entry and checks those words against the password; it checks \
        for simplistic patterns in passwords; and it checks for the password \
        in a dictionary.
-endef
+end
+
+source_dl  =
+sources   += cracklib-words-20080507.gz
 
-PKG_TARBALL    = $(THISAPP).tar.gz
-PKG_OBJECTS   += cracklib-words-20080507.gz
+build
+       requires
+               python-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-dicts $(PKG_NAME)-devel python-$(PKG_NAME)
+       configure_options += \
+               --with-default-dict=/lib/cracklib/pw_dict \
+               --with-python \
+               --disable-static
 
-### We build an extra python package with the bindings for it.
-PKG_DESCRIPTION-python-cracklib = Python bindings for $(THISAPP).
-PKG_SUMMARY-python-cracklib     = Python bindings for $(THISAPP).
-PKG_FILES-python-cracklib       = /usr/lib/python*
+       # Only extract the source tarball.
+       prepare
+               cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/%{thisapp}.tar.gz
 
-### We build an extra package with the dictionaries.
-PKG_DESCRIPTION-cracklib-dicts = Dictionaries for $(THISAPP).
-PKG_SUMMARY-cracklib-dicts     = Dictionaries for $(THISAPP).
-PKG_FILES-cracklib-dicts       = /lib/cracklib /usr/share/dict*
+               # Apply all patches.
+               %{MACRO_PATCHES}
+       end
 
-CONFIGURE_OPTIONS += \
-       --with-default-dict=/lib/cracklib/pw_dict \
-       --with-python \
-       --disable-static
+       install_cmds
+               mkdir -pv %{BUILDROOT}/{,usr/}lib
+               mv -v %{BUILDROOT}/usr/lib/libcrack.so.2* %{BUILDROOT}/lib
+               ln -vsf ../../lib/libcrack.so.2.8.0 %{BUILDROOT}/usr/lib/libcrack.so
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/{,usr/}lib
-       mv -v $(BUILDROOT)/usr/lib/libcrack.so.2* $(BUILDROOT)/lib
-       ln -vsf ../../lib/libcrack.so.2.8.0 $(BUILDROOT)/usr/lib/libcrack.so
+               mkdir -pv %{BUILDROOT}/usr/share/dict
+               install -v -m644 -D %{DIR_DL}/cracklib-words-20080507.gz \
+                       %{BUILDROOT}/usr/share/dict/cracklib-words.gz
+               gunzip -v %{BUILDROOT}/usr/share/dict/cracklib-words.gz
+               ln -v -s cracklib-words %{BUILDROOT}/usr/share/dict/words
+               echo -ne "%{DISTRO_NAME}\n%{DISTRO_SNAME}\n" >> \
+                       %{BUILDROOT}/usr/share/dict/cracklib-extra-words
 
-       -mkdir -pv $(BUILDROOT)/usr/share/dict
-       install -v -m644 -D $(DIR_DL)/cracklib-words-20080507.gz \
-               $(BUILDROOT)/usr/share/dict/cracklib-words.gz
-       gunzip -v $(BUILDROOT)/usr/share/dict/cracklib-words.gz
-       ln -v -s cracklib-words $(BUILDROOT)/usr/share/dict/words
-       echo -ne "$(DISTRO_NAME)\n$(DISTRO_SNAME)\n" >> \
-               $(BUILDROOT)/usr/share/dict/cracklib-extra-words
+               mkdir -pv %{BUILDROOT}/lib/cracklib
+               chmod a+x util/cracklib-{format,packer}
+               util/cracklib-format \
+                       %{BUILDROOT}/usr/share/dict/cracklib-words \
+                       %{BUILDROOT}/usr/share/dict/cracklib-extra-words | \
+                       util/cracklib-packer \
+                               %{BUILDROOT}/lib/cracklib/pw_dict
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/lib/cracklib
-       cd $(DIR_APP) && chmod a+x util/cracklib-{format,packer}
-       cd $(DIR_APP) && util/cracklib-format \
-                       $(BUILDROOT)/usr/share/dict/cracklib-words \
-                       $(BUILDROOT)/usr/share/dict/cracklib-extra-words | \
-               util/cracklib-packer \
-                       $(BUILDROOT)/lib/cracklib/pw_dict
-endef
+packages
+       package %{name}
+               requires = %{name}-dicts
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+       
+       # We build an extra package with the dictionaries.
+       package %{name}-dicts
+               summary = Dictionaries for %{thisapp}.
+               description = %{summary}
+       
+               files
+                       /lib/cracklib
+                       /usr/share/dict*
+               end
+       end
+       
+       # We build an extra python package with the bindings for it.
+       package python-cracklib
+               summary = Python bindings for ${thisapp}.
+               description = %{summary}
+       
+               files = /usr/lib*/python*
+       end
+end
index 5bf401d78ce24b0145fc3e2b0a41c6136e4c8e21..d436ca2c35b140c2469278793b0e46b120172625 100644 (file)
@@ -1,51 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = crda
-PKG_VER        = 1.1.1
-PKG_REL        = 1
-
-PKG_MAINTAINER = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
-PKG_GROUPS     = Network/Wireless
-PKG_URL        = http://linuxwireless.org/en/developers/Regulatory/CRDA
-PKG_LICENSE    = ISC
-PKG_SUMMARY    = Regulatory compliance daemon for 802.11 wireless networking.
-
-PKG_BUILD_DEPS+= libgcrypt-devel libnl-devel python-m2crypto wireless-regdb
-PKG_DEPS      += wireless-regdb
-
-define PKG_DESCRIPTION
-    CRDA acts as the udev helper for communication between the kernel \
-    and userspace for regulatory compliance. It relies on nl80211 \
-    for communication. CRDA is intended to be run only through udev \
-    communication from the kernel.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define STAGE_PREPARE_CMDS
-        cp -vf /usr/lib/crda/pubkeys/root.key.pub.pem $(DIR_APP)/pubkeys/
-endef
+name       = crda
+version    = 1.1.1
+release    = 1
+
+maintainer = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
+groups     = Network/Wireless
+url        = http://linuxwireless.org/en/developers/Regulatory/CRDA
+license    = ISC
+summary    = Regulatory compliance daemon for 802.11 wireless networking.
+
+description
+       CRDA acts as the udev helper for communication between the kernel
+       and userspace for regulatory compliance. It relies on nl80211
+       for communication. CRDA is intended to be run only through udev
+       communication from the kernel.
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libgcrypt-devel
+               libnl-devel
+               python-m2crypto
+               wireless-regdb
+       end
+
+       prepare_cmds
+               cp -vf /usr/lib/crda/pubkeys/root.key.pub.pem %{DIR_APP}/pubkeys/
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       wireless-regdb
+               end
+       end
+end
index f6feb10ede7e435dbca90b8399d0f2b25ec1cbf5..614d1cb306adf556023a5b0ae7a46d87f3adc5a4 100644 (file)
@@ -1,48 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = cronie
-PKG_VER        = 1.4.7
-PKG_REL        = 1
+name       = cronie
+version    = 1.4.7
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Environment/Base
-PKG_URL        = https://fedorahosted.org/releases/c/r/cronie/
-PKG_LICENSE    = MIT and BSD and ISC and GPLv2
-PKG_SUMMARY    = Cron daemon for executing programs at set times
+groups     = System/Environment/Base
+url        = https://fedorahosted.org/releases/c/r/cronie/
+license    = MIT and BSD and ISC and GPLv2
+summary    = Cron daemon for executing programs at set times
 
-PKG_BUILD_DEPS+= audit-devel libselinux-devel
-
-define PKG_DESCRIPTION
+description
        Cronie contains the standard UNIX daemon crond that runs specified programs at \
        scheduled times and related tools. It is a fork of the \
        original vixie-cron and has security and configuration enhancements like \
        the ability to use pam and SELinux.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+               libcap-devel
+               libedit-devel
+               readline-devel
+               texinfo
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index da3dafe1107e50aa2809858410ff6a8138f6191b..116aa54b612da3784229dfa76ca54e41710a2b69 100644 (file)
@@ -1,61 +1,54 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = cryptsetup-luks
-PKG_VER        = 1.1.0
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://cryptsetup.googlecode.com/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A utility for setting up encrypted filesystems.
+name       = cryptsetup-luks
+version    = 1.1.0
+release    = 1
 
-PKG_BUILD_DEPS+= libdevmapper-devel libgcrypt-devel \
-       libgpg-error-devel libuuid-devel popt-devel
+groups     = System/Filesystems
+url        = http://cryptsetup.googlecode.com/
+license    = GPLv2+
+summary    = A utility for setting up encrypted filesystems.
 
-define PKG_DESCRIPTION
+description
        This package contains cryptsetup, a utility for setting up \
        encrypted filesystems using Device Mapper and the dm-crypt target.
-endef
+end
 
-PKG_TARBALL    = cryptsetup-$(PKG_VER).tar.bz2
+source_dl  =
+sources    = cryptsetup-%{version}.tar.bz2
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+build
+       requires
+               libdevmapper-devel
+               libgcrypt-devel
+               libgpg-error-devel
+               libuuid-devel
+               popt-devel
+       end
 
-DIR_APP        = $(DIR_SRC)/cryptsetup-$(PKG_VER)
+       DIR_APP = %{DIR_SRC}/cryptsetup-%{version}
 
-CONFIGURE_OPTIONS += \
+       configure_options += \
                --sbindir=/sbin \
                --libdir=/lib \
                --disable-static
 
-define STAGE_INSTALL_CMDS
-       rm -rvf $(BUILDROOT)/lib/cryptsetup{,.la,.so}
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
-       ln -svf ../../lib/libcryptsetup.so.1 $(BUILDROOT)/usr/lib/libcryptsetup.so
-endef
+       install_cmds
+               rm -rvf %{BUILDROOT}/lib/cryptsetup{,.la,.so}
+               mkdir -pv %{BUILDROOT}/usr/lib
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+               ln -svf ../../lib/libcryptsetup.so.1 %{BUILDROOT}/usr/lib/libcryptsetup.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 42569af8960d3e71f1b4b9d26dc5f798ced2d7de..9a78e98460f62e68c92c03c4b90edb39c6329280 100644 (file)
@@ -1,85 +1,94 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = cups
-PKG_VER        = 1.4.5
-PKG_REL        = 5
+name       = cups
+version    = 1.4.5
+release    = 5
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Printing
-PKG_URL        = http://cups.org/software.php
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = The common UNIX printing system.
+groups     = Applications/Printing
+url        = http://cups.org/software.php
+license    = GPLv2+
+summary    = The common UNIX printing system.
 
-PKG_BUILD_DEPS+= audit-devel autoconf automake avahi-devel cyrus-sasl-devel \
-       gcc-c++ ghostscript gnutls-devel libgcrypt-devel libjpeg-devel libpng-devel \
-       libselinux-devel libtasn1-devel libtiff-devel openldap-devel pam-devel \
-       perl python zlib-devel
-PKG_DEPS      += ghostscript
-
-define PKG_DESCRIPTION
+description
        CUPS is the standards-based, open source printing system developed \
        by Apple Inc. for Mac OS(R) X and other UNIX(R)-like operating systems.
-endef
-
-PKG_TARBALL    = $(THISAPP)-source.tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --localstatedir=/var \
-       --with-log-file-perm=0600 \
-       --enable-pie \
-       --enable-relro \
-       --enable-avahi \
-       --enable-lspp \
-       --enable-threads \
-       --enable-gnutls
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && aclocal -I config-scripts
-       cd $(DIR_APP) && autoconf -I config-scripts
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install BUILDROOT=$(BUILDROOT)
-
-       # Remove sysvinit scripts
-       rm -vfr $(BUILDROOT)/etc/init.d/cups $(BUILDROOT)/etc/rc*.d
-
-       -mkdir -pv $(BUILDROOT)/etc/cups
-       cp -vf $(DIR_APP)/conf/cupsd.conf $(BUILDROOT)/etc/cups/
-
-       # Logrotate
-       -mkdir -pv $(BUILDROOT)/etc/logrotate.d/
-       cp -vf $(DIR_SOURCE)/cups.logrotate $(BUILDROOT)/etc/logrotate.d/cups 
-endef
-
+end
+
+source_dl  =
+sources    = %{thisapp}-source.tar.bz2
+
+build
+       requires
+               audit-devel
+               autoconf
+               automake
+               avahi-devel
+               cyrus-sasl-devel
+               gcc-c++
+               ghostscript
+               gnutls-devel
+               libgcrypt-devel
+               libjpeg-devel
+               libpng-devel
+               libselinux-devel
+               libtasn1-devel
+               libtiff-devel
+               openldap-devel
+               pam-devel
+               perl
+               python
+               zlib-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --with-log-file-perm=0600 \
+               --enable-pie \
+               --enable-relro \
+               --enable-avahi \
+               --enable-lspp \
+               --enable-threads \
+               --enable-gnutls
+
+       prepare_cmds
+               aclocal -I config-scripts
+               autoconf -I config-scripts
+       end
+
+       install
+               make install BUILDROOT=%{BUILDROOT}
+
+               # Remove sysvinit scripts
+               rm -vfr %{BUILDROOT}/etc/init.d/cups %{BUILDROOT}/etc/rc*.d
+
+               mkdir -pv %{BUILDROOT}/etc/cups
+               cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/
+
+               # Logrotate
+               mkdir -pv %{BUILDROOT}/etc/logrotate.d/
+               cp -vf %{DIR_SOURCE}/cups.logrotate %{BUILDROOT}/etc/logrotate.d/cups
+       end
+end
+
+# XXX what is this?
 # This line has to be added at the installation of cups.
 # File: /lib/udev/rules.d/99-systemd.rules
 # Line: SUBSYSTEM=="usb", ATTR{serial}=="AL01077498", TAG+="systemd", ENV{SYSTEMD_WANTS}="cups.service"
 
+packages
+       package %{name}
+               requires = ghostscript
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+end
index 6ce119b363596a5bf49008c5f34d62064ec30cc1..3baf575035eabdace22433034dd4f4631b596daf 100644 (file)
@@ -1,83 +1,72 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = curl
+version    = 7.21.7
+release    = 1
 
-PKG_NAME       = curl
-PKG_VER        = 7.21.7
-PKG_REL        = 1
+groups     = Application/Internet
+url        = http://www.curl.haxx.se/
+license    = MIT
+summary    = A utility for getting files from remote servers (FTP, HTTP, and others).
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Application/Internet
-PKG_URL        = http://www.curl.haxx.se/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = A utility for getting files from remote servers (FTP, HTTP, and others).
-
-PKG_BUILD_DEPS+= autoconf automake groff libidn-devel libssh2-devel libtool \
-       nss-devel openldap-devel pkg-config zlib-devel
-
-define PKG_DESCRIPTION
-       cURL is a tool for getting files from HTTP, FTP, FILE, LDAP, LDAPS, \
-       DICT, TELNET and TFTP servers, using any of the supported protocols. \
-       cURL is designed to work without user interaction or any kind of \
-       interactivity. cURL offers many useful capabilities, like proxy support, \
+description
+       cURL is a tool for getting files from HTTP, FTP, FILE, LDAP, LDAPS,
+       DICT, TELNET and TFTP servers, using any of the supported protocols.
+       cURL is designed to work without user interaction or any kind of
+       interactivity. cURL offers many useful capabilities, like proxy support,
        user authentication, FTP upload, HTTP post, and file transfer resume.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
+end
 
-PKG_PACKAGES  += libcurl libcurl-devel
+source_dl  =
 
-PKG_DEPS-libcurl = $(PKG_DEPS-$(PKG_NAME)-libs)
-PKG_BUILD_DEPS-libcurl = $(PKG_BUILD_DEPS-$(PKG_NAME)-libs)
-PKG_SUMMARY-libcurl = $(PKG_SUMMARY-$(PKG_NAME)-libs)
-PKG_FILES-libcurl = $(PKG_FILES-$(PKG_NAME)-libs)
+build
+       requires
+               autoconf
+               automake
+               groff
+               libidn-devel
+               libssh2-devel
+               libtool
+               nss-devel
+               openldap-devel
+               pkg-config
+               zlib-devel
+       end
 
-PKG_DEPS-libcurl-devel = $(PKG_DEPS-$(PKG_NAME)-devel)
-PKG_BUILD_DEPS-libcurl-devel = $(PKG_BUILD_DEPS-$(PKG_NAME)-devel)
-PKG_SUMMARY-libcurl-devel = $(PKG_SUMMARY-$(PKG_NAME)-devel)
-PKG_FILES-libcurl-devel = $(PKG_FILES-$(PKG_NAME)-devel)
-PKG_PROVIDES-libcurl-devel = curl-devel
+       configure_options += \
+               --enable-hidden-symbols \
+               --disable-static \
+               --with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt \
+               --with-libidn \
+               --with-libssh2 \
+               --with-nss \
+               --enable-ldaps \
+               --enable-ipv6 \
+               --enable-manual \
+               --enable-threaded-resolver \
+               --without-ssl
 
-CONFIGURE_OPTIONS += \
-       --enable-hidden-symbols \
-       --disable-static \
-       --with-ca-bundle=/etc/pki/tls/certs/ca-bundle.crt \
-       --with-libidn \
-       --with-libssh2 \
-       --with-nss \
-       --enable-ldaps \
-       --enable-ipv6 \
-       --enable-manual \
-       --enable-threaded-resolver \
-       --without-ssl
+       prepare_cmds
+               autoreconf -vfi
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -vfi
-endef
+       # Doesn't work
+       #test
+       #       make check
+       #end
+end
 
-# Doesn't work
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
-#endef
+packages
+       package curl
+       
+       package libcurl
+               template LIBS
+       end
+       
+       package libcurl-devel
+               template DEVEL
+       end
+end
index 3cfaa0c41f5ca87f12d70d3e7b3dac3a857104bb..beab6159ecc23365da1a7c826206bff6e2b317de 100644 (file)
@@ -1,62 +1,57 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = cyrus-sasl
+version    = 2.1.23
+release    = 0
 
-PKG_NAME       = cyrus-sasl
-PKG_VER        = 2.1.23
-PKG_REL        = 0
+groups     = System/Libraries
+url        = http://asg.web.cmu.edu/sasl/sasl-library.html
+license    = BSD
+summary    = The Cyrus SASL library.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://asg.web.cmu.edu/sasl/sasl-library.html
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = The Cyrus SASL library.
-
-PKG_BUILD_DEPS+= db4-devel openssl-devel pam-devel
-
-define PKG_DESCRIPTION
+description
        The cyrus-sasl package contains the Cyrus implementation of SASL. \
        SASL is the Simple Authentication and Security Layer, a method for \
        adding authentication support to connection-based protocols.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --with-dbpath=/var/lib/sasl/sasldb2 \
-       --with-saslauthd=/var/run/saslauthd \
-       --mandir=/usr/share/man
-
-PARALLELISMFLAGS = # Disabled
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib/sasl2
-       cp -vf $(DIR_SOURCE)/smtpd.conf $(BUILDROOT)/usr/lib/sasl2/
-
-       install -v -m700 -d $(BUILDROOT)/var/lib/sasl $(BUILDROOT)/var/run/saslauthd
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               db4-devel
+               openssl-devel
+               pam-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --with-dbpath=/var/lib/sasl/sasldb2 \
+               --with-saslauthd=/var/run/saslauthd \
+               --mandir=/usr/share/man
+
+       PARALLELISMFLAGS = # Disabled
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib/sasl2
+               cp -vf %{DIR_SOURCE}/smtpd.conf %{BUILDROOT}/usr/lib/sasl2/
+
+               install -v -m700 -d %{BUILDROOT}/var/lib/sasl %{BUILDROOT}/var/run/saslauthd
+       end
+end
+
+packages
+       package %{name}
+       end
+
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 3861cc1e22a9d4957d41a22efecc600901f04b12..4a0833508b139f4723209a389c4151bf63be25ba 100644 (file)
@@ -1,59 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = dansguardian
+version    = 2.10.1.1
+release    = 1
 
-include $(PKGROOT)/Include
-
-PKG_NAME       = dansguardian
-PKG_VER        = 2.10.1.1
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Proxy
-PKG_URL        = http://www.dansguardian.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A content filtering web proxy.
-
-PKG_BUILD_DEPS+= gcc-c++ pcre-devel pkg-config zlib-devel
-
-define PKG_DESCRIPTION
-       DansGuardian filters the content of pages based on many methods including \
-       phrase matching, PICS filtering and URL filtering. It does not purely filter \
-       based on a banned list of sites. \
-       \
-       It provides real-time virus scanning capabilities for content access. \
-       \
-       DansGuardian is designed to be completely flexible and allows you to tailor the \
-       filtering to your exact needs. It can be as draconian or as unobstructive as \
-       you want. The default settings are geared towards what a primary school might \
-       want but DansGuardian puts you in control of what you want to block. \
-       \
-       DansGuardian requires squid or another similar caching proxy server on your \
-       local network.
-endef
+groups     = Networking/Proxy
+url        = http://www.dansguardian.org/
+license    = GPLv2+
+summary    = A content filtering web proxy.
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+description
+       DansGuardian filters the content of pages based on many methods including
+       phrase matching, PICS filtering and URL filtering. It does not purely filter
+       based on a banned list of sites.
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --localstatedir=/var
+       It provides real-time virus scanning capabilities for content access.
+
+       DansGuardian is designed to be completely flexible and allows you to tailor the
+       filtering to your exact needs. It can be as draconian or as unobstructive as
+       you want. The default settings are geared towards what a primary school might
+       want but DansGuardian puts you in control of what you want to block.
+
+       DansGuardian requires squid or another similar caching proxy server on your
+       local network.
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+               pcre-devel
+               pkg-config
+               zlib-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --localstatedir=/var
+end
+
+packages
+       package %{name}
+       end
+end
index 1035d901005c43bd02762debc2a23af4451f6423..53946992bc09ba419d9f16034ae7896b9a4ab136 100644 (file)
@@ -1,63 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = db
-PKG_VER_MAJ    = 4.7
-PKG_VER_MIN    = 25
-PKG_VER        = $(PKG_VER_MAJ).$(PKG_VER_MIN)
-PKG_REL        = 0
-PKG_EPOCH      = 1
+name       = db
+version_major = 4.7
+version_minor = 25
+version    = %{version_major}.%{version_minor}
+release    = 1
+epoch      = 1
 
 # Never update this to major version 5.
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.oracle.com/technology/products/berkeley-db/
-PKG_LICENSE    = Proprietary
-PKG_SUMMARY    = Berkeley DB is a library that provides an embedded database.
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = System/Libraries
+url        = http://www.oracle.com/technology/products/berkeley-db/
+license    = Proprietary
+summary    = Berkeley DB is a library that provides an embedded database.
 
-PKG_BUILD_DEPS+= gcc-c++
-
-define PKG_DESCRIPTION
+description
        Berkeley DB (BDB) is a computer software library that provides \
        a high-performance embedded database.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
+end
 
-PKG_PACKAGES   = $(PKG_NAME_REAL)-devel $(PKG_NAME_REAL)-utils \
-       $(PKG_NAME_REAL) $(PKG_NAME_REAL)-cxx
+source_dl  =
 
-PKG_FILES                        = /usr/lib/libdb-$(PKG_VER_MAJ).so
-PKG_FILES-$(PKG_NAME_REAL)-cxx   = /usr/lib/libdb_cxx-$(PKG_VER_MAJ).so
-PKG_FILES-$(PKG_NAME_REAL)-devel = /usr/include /usr/lib
-PKG_FILES-$(PKG_NAME_REAL)-utils = /usr/bin
+build
+       requires
+               gcc-c++
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP)/build_unix && \
+       build
+               cd %{DIR_APP}/build_unix
                CC=gcc \
                ../dist/configure \
                        --prefix=/usr \
@@ -65,10 +39,31 @@ define STAGE_BUILD
                        --enable-cxx \
                        --disable-static
 
-       cd $(DIR_APP)/build_unix && make $(PARALLELISMFLAGS)
-endef
+               make %{PARALLELISMFLAGS}
+       end
+
+       install
+               cd %{DIR_APP}/build_unix
+               make install DESTDIR=%{BUILDROOT} \
+                       docdir=/usr/share/doc/%{thisapp}
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP)/build_unix && make install DESTDIR=$(BUILDROOT) \
-               docdir=/usr/share/doc/$(THISAPP)
-endef
+# XXX insert descriptions
+packages
+       package db4
+               files = /usr/lib*/libdb-%{version_major}.so
+       end
+       
+       package db4-devel
+               template DEVEL
+       end
+       
+       package db4-utils
+               files = /usr/bin
+       end
+       
+       package db4-cxx
+               files = /usr/lib*/libdb_cxx-%{version_major}.so
+       end
+end
index 319cc01c14b4970d20c0f96f46cac844533b0a34..c80decc2741b37f346b3690e11204c6512aedf33 100644 (file)
@@ -1,64 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = dbus-glib
+version    = 0.94
+release    = 1
 
-PKG_NAME       = dbus-glib
-PKG_VER        = 0.94
-PKG_REL        = 1
+groups     = System/Libraries
+url        = http://www.freedesktop.org/software/dbus/
+license    = GPLv2+ AFL
+summary    = Glib bindings for D-Bus.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.freedesktop.org/software/dbus/
-PKG_LICENSE    = GPLv2+ AFL
-PKG_SUMMARY    = Glib bindings for D-Bus.
-
-PKG_BUILD_DEPS+= dbus dbus-devel expat-devel gettext glib2-devel
-PKG_DEPS-$(PKG_NAME)-devel = glib2-devel
-
-define PKG_DESCRIPTION
+description
        D-Bus add-on library to integrate the standard D-Bus library with \
        the GLib thread abstraction and main loop.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libdir=/lib \
-       --libexecdir=/usr/lib \
-       --mandir=/usr/share/man
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
-
-define STAGE_INSTALL_CMDS
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
-
-       rm -vf $(BUILDROOT)/lib/libdbus-glib-1.so
-       ln -svf ../../lib/libdbus-glib-1.so.2 $(BUILDROOT)/usr/lib/libdbus-glib-1.so
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               dbus
+               dbus-devel
+               expat-devel
+               gettext
+               glib2-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --mandir=/usr/share/man
+
+       test
+               make check
+       end
+
+       install_cmds
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+
+               rm -vf %{BUILDROOT}/lib/libdbus-glib-1.so
+               ln -svf ../../lib/libdbus-glib-1.so.2 %{BUILDROOT}/usr/lib/libdbus-glib-1.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires = glib2-devel
+       end
+end
index 5c7437cf561aec28fd460f16e084ed44836edefa..95921949e8151fc0b3d24a7ec248b5b503b10a7e 100644 (file)
@@ -1,74 +1,69 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = dbus
-PKG_VER        = 1.4.0
-PKG_REL        = 3
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Daemons
-PKG_URL        = http://www.freedesktop.org/software/dbus/
-PKG_LICENSE    = GPLv2+ AFL
-PKG_SUMMARY    = D-BUS message bus.
+name       = dbus
+version    = 1.4.0
+release    = 3
 
-PKG_BUILD_DEPS+= audit-devel expat-devel libselinux-devel
+groups     = System/Daemons
+url        = http://www.freedesktop.org/software/dbus/
+license    = GPLv2+ AFL
+summary    = D-BUS message bus.
 
-define PKG_DESCRIPTION
+description
        D-BUS is a system for sending messages between applications. It is \
        used both for the system-wide message bus service, and as a \
        per-user-login-session messaging facility.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+build
+       requires
+               audit-devel
+               expat-devel
+               libselinux-devel
+       end
 
-PKG_FILES-$(PKG_NAME)-devel += /usr/lib/dbus-1.0
+       configure_options += \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --libdir=/lib \
+               --libexecdir=/lib \
+               --enable-libaudit \
+               --enable-selinux=yes \
+               --with-systemdsystemunitdir=/lib/systemd/system/ \
+               --with-dbus-user=dbus
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --localstatedir=/var \
-       --libdir=/lib \
-       --libexecdir=/lib \
-       --enable-libaudit \
-       --enable-selinux=yes \
-       --with-systemdsystemunitdir=/lib/systemd/system/ \
-       --with-dbus-user=dbus
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
+               #change the arch-deps.h include directory to /usr/lib instead of /lib
+               sed -e 's@-I${libdir}@-I${prefix}/lib@' -i %{BUILDROOT}/usr/lib/pkgconfig/dbus-1.pc
 
-       #change the arch-deps.h include directory to /usr/lib instead of /lib
-       sed -e 's@-I$${libdir}@-I$${prefix}/lib@' -i $(BUILDROOT)/usr/lib/pkgconfig/dbus-1.pc
+               mkdir -pv %{BUILDROOT}/usr/lib/dbus-1.0/include
+               mv -v %{BUILDROOT}/lib/dbus-1.0/include/* %{BUILDROOT}/usr/lib/dbus-1.0/include
+               rm -rvf %{BUILDROOT}/lib/dbus-1.0
 
-       -mkdir -pv $(BUILDROOT)/usr/lib/dbus-1.0/include
-       mv -v $(BUILDROOT)/lib/dbus-1.0/include/* $(BUILDROOT)/usr/lib/dbus-1.0/include
-       rm -rvf $(BUILDROOT)/lib/dbus-1.0
+               rm -vf %{BUILDROOT}/lib/libdbus-1.so
+               ln -svf ../../lib/libdbus-1.so.3 %{BUILDROOT}/usr/lib/libdbus-1.so
+       end
+end
 
-       rm -vf $(BUILDROOT)/lib/libdbus-1.so
-       ln -svf ../../lib/libdbus-1.so.3 $(BUILDROOT)/usr/lib/libdbus-1.so
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               files += /usr/lib/dbus-1.0
+       end
+end
index 3bae435d3b873e8fd5e4ba811fe57942f113a21f..52eb826d2e7d8e189eb8293f7645c6edd05e521f 100644 (file)
@@ -1,59 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = dejagnu
-PKG_VER        = 1.4.4
-PKG_REL        = 1
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/dejagnu/ 
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A front end for testing other programs 
+name       = dejagnu
+version    = 1.4.4
+release    = 1
+arch       = noarch
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+groups     = Development/Tools
+url        = http://www.gnu.org/software/dejagnu/
+license    = GPLv2+
+summary    = A front end for testing other programs
 
-PKG_BUILD_DEPS+= bison
-PKG_DEPS      += expect tcl
-
-define PKG_DESCRIPTION
+description
        DejaGnu is an Expect/Tcl based framework for testing other programs.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man
-
-# Disabled because testsuite doesn't wort at the moment.
-#define STAGE_TEST
-       #cd $(DIR_APP) && make check
-#endef
-
-define STAGE_INSTALL_CMDS
-       cd $(DIR_APP) && make -C doc DESTDIR=$(BUILDROOT) install-man
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man
+
+       # Disabled because testsuite doesn't wort at the moment.
+       #define test
+       #       make check
+       #endef
+
+       install_cmds
+               make -C doc DESTDIR=%{BUILDROOT} install-man
+       end
+end
+
+packages
+       package %{name}
+               requires = expect tcl
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 1d4a42245aab19ff15dabcd68495b65d809429d7..643d35bc92f00ed10f79a1a4385f90e1c08b2d03 100644 (file)
@@ -1,70 +1,55 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = dhcp
+version    = 4.2.1-P1
+release    = 1
 
-PKG_NAME       = dhcp
-PKG_VER        = 4.2.1-P1
-PKG_REL        = 1
+groups     = Networking/Daemons
+url        = http://isc.org/products/DHCP/
+license    = ISC
+summary    = Dynamic host configuration protocol software.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://isc.org/products/DHCP/
-PKG_LICENSE    = ISC
-PKG_SUMMARY    = Dynamic host configuration protocol software.
-
-define PKG_DESCRIPTION
+description
        DHCP (Dynamic Host Configuration Protocol) is a protocol which allows \
        individual devices on an IP network to get their own network \
        configuration information (IP address, subnetmask, broadcast address, \
        etc.) from a DHCP server. The overall purpose of DHCP is to make it \
        easier to administer a large network.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
-       --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
-       --with-srv-pid-file=/var/run/dhcpd.pid \
-       --with-cli-pid-file=/var/run/dhclient.pid \
-       --with-relay-pid-file=/var/run/dhcrelay.pid
-
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/etc/dhclient.conf
-
-       # Move the client to /sbin, create dirs
-       # and remove the default config.
-       -mkdir -pv $(BUILDROOT)/sbin
-       mv -v $(BUILDROOT)/usr/sbin/dhclient $(BUILDROOT)/sbin/dhclient
-
-       install -v -m 755 $(DIR_SOURCE)/dhclient-script \
-               $(BUILDROOT)/sbin/dhclient-script
-       -mkdir -pv $(BUILDROOT)/var/lib/dhclient
-
-       # Remove header files.
-       # There is nothing that makes use out of them.
-       rm -rfv $(BUILDROOT)/usr/include
-endef
+end
+
+source_dl  =
+
+build
+       configure_options += \
+               --sysconfdir=/etc \
+               --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
+               --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
+               --with-srv-pid-file=/var/run/dhcpd.pid \
+               --with-cli-pid-file=/var/run/dhclient.pid \
+               --with-relay-pid-file=/var/run/dhcrelay.pid
+
+       install_cmds
+               rm -vf %{BUILDROOT}/etc/dhclient.conf
+
+               # Move the client to /sbin, create dirs
+               # and remove the default config.
+               mkdir -pv %{BUILDROOT}/sbin
+               mv -v %{BUILDROOT}/usr/sbin/dhclient %{BUILDROOT}/sbin/dhclient
+
+               install -v -m 755 %{DIR_SOURCE}/dhclient-script \
+                       %{BUILDROOT}/sbin/dhclient-script
+               mkdir -pv %{BUILDROOT}/var/lib/dhclient
+
+               # Remove header files.
+               # There is nothing that makes use out of them.
+               rm -rfv %{BUILDROOT}/usr/include
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 5c3a76f32805b6591c478dbdfbb26871b5fe127d..b43cc70ca54a17aa7924faa39031bf22af7d6d8c 100644 (file)
@@ -1,45 +1,30 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = dhcping
+version    = 1.2
+release    = 1
 
-PKG_NAME       = dhcping
-PKG_VER        = 1.2
-PKG_REL        = 1
+groups     = Applications/Internet
+url        = http://www.mavetju.org/unix/general.php
+license    = MIT
+summary    = DHCP daemon ping program.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Internet
-PKG_URL        = http://www.mavetju.org/unix/general.php
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = DHCP daemon ping program.
-
-define PKG_DESCRIPTION
+description
        Dhcping allows the system administrator to check if a remote DHCP
        server is still functioning.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_options += \
+               --mandir=/usr/share/man
+end
 
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man
+packages
+       package %{name}
+       end
+end
index bf80e1aefe2e9c3248e4e38ec68a999408cf57e0..1fa2b4fc3eace5facd88a92abfe321e26d369173 100644 (file)
@@ -1,51 +1,35 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = diffutils
+version    = 3.0
+release    = 1
 
-PKG_NAME       = diffutils
-PKG_VER        = 3.0
-PKG_REL        = 0
+groups     = Base Build Development/Tools
+url        = http://www.gnu.org/software/diffutils/diffutils.html
+license    = GPLv2+
+summary    = A GNU collection of diff utilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Development/Tools
-PKG_URL        = http://www.gnu.org/software/diffutils/diffutils.html
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A GNU collection of diff utilities.
-
-define PKG_DESCRIPTION
+description
        Diffutils includes four utilities: diff, cmp, diff3 and sdiff. Diff \
        compares two files and shows the differences, line by line.  The cmp \
        command shows the offset and line numbers where two files differ, or \
        cmp can show the characters that differ between the two files.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_options += \
+               --mandir=/usr/share
 
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share
+       #test
+       #       make check
+       #end
+end
 
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
-#endef
+packages
+       package %{name}
+end
index df622760ee9873e5627dc165be2f84d9ed65d90a..c5b9890a69201c895f03e1f406add9a77300795a 100644 (file)
@@ -1,55 +1,52 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-include $(PKGROOT)/Include
+name       = DirectFB
+version    = 1.4.1
+release    = 2
 
-PKG_NAME       = DirectFB
-PKG_VER        = 1.4.1
-PKG_REL        = 2
+groups     = System/Graphics
+url        = http://www.directfb.org/
+license    = LGPLv2+
+summary    = Graphics abstraction library for the Linux Framebuffer Device.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Graphics
-PKG_URL        = http://www.directfb.org/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Graphics abstraction library for the Linux Framebuffer Device.
-
-PKG_BUILD_DEPS+= freetype-devel libjpeg-devel libVNCServer-devel perl \
-       sysfsutils-devel zlib-devel
-
-define PKG_DESCRIPTION
+description
        DirectFB is a thin library that provides hardware graphics acceleration, \
        input device handling and abstraction, integrated windowing system with \
        support for translucent windows and multiple display layers on top of the \
        Linux Framebuffer Device.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-CONFIGURE_OPTIONS += \
-       --disable-x11 \
-       --enable-sdl \
-       --enable-video4linux2 \
-       --enable-libv412 \
-       --enable-zlib \
-       --with-dither-rgb16=advanced \
-       --disable-mmx \
-       --disable-sse
+end
+
+source_dl  =
+
+build
+       requires
+               freetype-devel
+                libjpeg-devel
+               libVNCServer-devel
+               perl
+               sysfsutils-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --disable-x11 \
+               --enable-sdl \
+               --enable-video4linux2 \
+               --enable-libv412 \
+               --enable-zlib \
+               --with-dither-rgb16=advanced \
+               --disable-mmx \
+               --disable-sse
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 7b7db9a923568e73de53635dcfd4b970b1625604..43d244a245642a9257fe8e1886942fbfa9f6422b 100644 (file)
@@ -1,50 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = dmidecode
+version    = 2.10
+release    = 1
 
-PKG_NAME       = dmidecode
-PKG_VER        = 2.10
-PKG_REL        = 1
+groups     = Applications/System
+url        = http://www.nongnu.org/dmidecode/
+license    = GPLv2+
+summary    = Tool to analyse BIOS DMI data.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://www.nongnu.org/dmidecode/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Tool to analyse BIOS DMI data.
-
-define PKG_DESCRIPTION
+description
        dmidecode reports information about x86 & ia64 hardware as described \
        in the system BIOS according to the SMBIOS/DMI standard. This \
        information typically includes system manufacturer, model name, \
        serial number, BIOS version, asset tag as well as a lot of other \
        details of varying level of interest and reliability depending on the \
-       manufacturer. 
-endef
+       manufacturer.
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       install
+               make install-bin install-man prefix=/usr DESTDIR=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install-bin install-man prefix=/usr DESTDIR=$(BUILDROOT)
-endef
+packages
+       package %{name}
+       end
+end
index 979038ab992c2fd75a238de8065717c4da637719..e017e197c9b321a9e73c5f47030c5c84a5bd6cc0 100644 (file)
@@ -1,71 +1,61 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = dmraid
-PKG_VER        = 1.0.0.rc15
-PKG_REL        = 1
+name       = dmraid
+version    = 1.0.0.rc15
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://people.redhat.com/heinzm/sw/dmraid
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Device-mapper RAID tool and library.
+groups     = System/Filesystems
+url        = http://people.redhat.com/heinzm/sw/dmraid
+license    = GPLv2+
+summary    = Device-mapper RAID tool and library.
 
-PKG_BUILD_DEPS+= libdevmapper-devel libselinux-devel
-
-define PKG_DESCRIPTION
+description
        DMRAID supports RAID device discovery, RAID set activation, creation, \
        removal, rebuild and display of properties for ATARAID/DDF1 metadata on \
        Linux >= 2.4 using device-mapper.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-DIR_APP        = $(DIR_SRC)/$(PKG_NAME)/$(PKG_VER)
-
-PARALLELISMFLAGS = # Disabled
-
-STAGE_INSTALL_TARGETS += sbindir=$(BUILDROOT)/sbin
-
-CONFIGURE_OPTIONS += \
-       --sbindir=/sbin \
-       --libdir=/lib \
-       --disable-static \
-       --disable-static_link \
-       --enable-libselinux
-
-define STAGE_BUILD_CMDS
-       cd $(DIR_APP) && make -C lib libdmraid.so
-endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/{,usr}/lib
-       cd $(DIR_APP) && install -v -m 755 lib/libdmraid.so \
-               $(BUILDROOT)/lib/libdmraid.so.$(PKG_VER)
-       ln -svf ../../lib/libdmraid.so.$(PKG_VER) $(BUILDROOT)/usr/lib/libdmraid.so
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libdevmapper-devel
+               libselinux-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/%{name}/%{version}
+       PARALLELISMFLAGS = # Disabled
+
+       make_install_targets += sbindir=%{BUILDROOT}/sbin
+
+       configure_options += \
+               --sbindir=/sbin \
+               --libdir=/lib \
+               --disable-static \
+               --disable-static_link \
+               --enable-libselinux
+
+       build_cmds
+               make -C lib libdmraid.so
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/{,usr}/lib
+               install -v -m 755 lib/libdmraid.so \
+                       %{BUILDROOT}/lib/libdmraid.so.%{version}
+               ln -svf ../../lib/libdmraid.so.%{version} %{BUILDROOT}/usr/lib/libdmraid.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b47a63639fa4fbbb0a8f9eb78695a3f7c4085fd2..5b0b053ab036723935575137fff76335086530e9 100644 (file)
@@ -1,53 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = dos2unix
+version    = 5.1.1
+release    = 1
 
-PKG_NAME       = dos2unix
-PKG_VER        = 5.1.1
-PKG_REL        = 0
+groups     = Applications/Text
+url        = http://www.xs4all.nl/~waterlan/dos2unix.html
+license    = BSD
+summary    = Text file format converters.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Text
-PKG_URL        = http://www.xs4all.nl/~waterlan/dos2unix.html
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Text file format converters.
+description
+       Convert text files with DOS or Mac line endings to Unix line endings and \
+       vice versa.
+end
 
-PKG_BUILD_DEPS+= gettext
+source_dl  =
 
-define PKG_DESCRIPTION
-       Convert text files with DOS or Mac line endings to Unix line endings and \ 
-       vice versa.
-endef
+build
+       requires
+               gettext
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       prepare_cmds
+               rm -rvf po/*/eo-x.*
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && rm -rvf po/*/eo-x.*
-endef
+       build
+               make %{PARALLELISMFLAGS} \
+                       CFLAGS="%{CFLAGS} -D_LARGEFILE_SOURCE $(getconf LFS_CFLAGS)"
+       end
+end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) \
-               CFLAGS="$(CFLAGS) -D_LARGEFILE_SOURCE $$(getconf LFS_CFLAGS)"
-endef
+packages
+       package %{name}
+       end
+end
index 0ed09ce64ae42f3edc292dbf1d081ded1e4c0879..c479619f6420557a0f8230a5086f4183023fe2f7 100644 (file)
@@ -1,52 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = dosfstools
-PKG_VER        = 3.0.10
-PKG_REL        = 0
+name       = dosfstools
+version    = 3.0.10
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://www.daniel-baumann.ch/software/dosfstools/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = Utilities for making and checking MS-DOS FAT filesystems on Linux.
+groups     = System/Filesystems
+url        = http://www.daniel-baumann.ch/software/dosfstools/
+license    = GPLv3+
+summary    = Utilities for making and checking MS-DOS FAT filesystems on Linux.
 
-define PKG_DESCRIPTION
+description
        The dosfstools package includes the mkdosfs and dosfsck utilities, \
        which respectively make and check MS-DOS FAT filesystems on hard \
        drives or on floppies.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install-bin DESTDIR=$(BUILDROOT) \
-               PREFIX=/usr SBINDIR=/sbin
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       install
+               make install-bin DESTDIR=%{BUILDROOT} \
+                       PREFIX=/usr SBINDIR=/sbin
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 28753550844aa7c5b3439e370412a18ddb3a3bda..2638db4cc49c5bb0fb5f73d1a6e2b1b2e5912760 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = dracut
-PKG_VER        = 010
-PKG_REL        = 3
-PKG_ARCH       = noarch
+name       = dracut
+version    = 010
+release    = 3
+arch       = noarch
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Boot
-PKG_URL        = http://sourceforge.net/apps/trac/dracut/wiki
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Initramfs generator using udev.
+groups     = System/Boot
+url        = http://sourceforge.net/apps/trac/dracut/wiki
+license    = GPLv2+
+summary    = Initramfs generator using udev.
 
-PKG_DEPS-dracut += \
-       bash \
-       bzip2 \
-       cpio \
-       coreutils \
-       dmraid \
-       e2fsprogs \
-       eject \
-       gzip \
-       iputils \
-       kbd \
-       less \
-       libselinux \
-       lvm2 \
-       mdadm \
-       sysvinit \
-       udev \
-       util-linux \
-       which
-
-define PKG_DESCRIPTION
+description
        dracut is a new, event-driven initramfs infrastructure based around udev.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define STAGE_PREPARE_CMDS
-       # Remove all man pages.
-       # XXX requires docbook
-       cd $(DIR_APP) && sed -i Makefile \
-               -e "s/^all:.*/all: \$$(targets)/" \
-               -e "/.*man.*/d"
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
-               sbindir=/sbin sysconfdir=/etc mandir=/usr/share/man
-
-       # Install local configuration.
-       -mkdir -pv $(BUILDROOT)/etc/dracut.conf.d
-       cp -vf $(DIR_SOURCE)/ipfire.conf $(BUILDROOT)/etc/dracut.conf.d/ipfire.conf
-endef
-
-# Network package
-PKG_PACKAGES += dracut-network
-
-PKG_SUMMARY-dracut-network = Network support for the initramdisk.
-define PKG_DESCRIPTION-dracut-network
-       This package requires everything which is needed to build a generic
-       all purpose initramfs with network support with dracut.
-endef
-
-PKG_DEPS-dracut-network = \
-       bridge-utils \
-       dhclient \
-       iproute \
-       nfs-utils
-
-define PKG_FILES-dracut-network
-       /usr/share/dracut/modules.d/40network
-       /usr/share/dracut/modules.d/95fcoe
-       /usr/share/dracut/modules.d/95iscsi
-       /usr/share/dracut/modules.d/95nbd
-       /usr/share/dracut/modules.d/95nfs
-       /usr/share/dracut/modules.d/45ifcfg
-       /usr/share/dracut/modules.d/95znet
-endef
-
-# Utils package
-PKG_PACKAGES += dracut-utils
-
-PKG_SUMMARY-dracut-utils = Command line utils for dracut.
-define PKG_DESCRIPTION-dracut-utils
-       Command line utils for dracut.
-endef
-
-define PKG_FILES-dracut-utils
-       /sbin/dracut-*
-       /sbin/*initrd
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       prepare_cmds
+               # Remove all man pages.
+               # XXX requires docbook
+               cd %{DIR_APP} && sed -i Makefile \
+                       -e "s/^all:.*/all: \$%{targets}/" \
+                       -e "/.*man.*/d"
+       end
+
+       install
+               make install DESTDIR=%{BUILDROOT} \
+                       sbindir=/sbin sysconfdir=/etc mandir=/usr/share/man
+
+               # Install local configuration.
+               mkdir -pv %{BUILDROOT}/etc/dracut.conf.d
+               cp -vf %{DIR_SOURCE}/ipfire.conf %{BUILDROOT}/etc/dracut.conf.d/ipfire.conf
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       bash
+                       bzip2
+                       cpio
+                       coreutils
+                       dmraid
+                       e2fsprogs
+                       eject
+                       gzip
+                       iputils
+                       kbd
+                       less
+                       libselinux
+                       lvm2
+                       mdadm
+                       sysvinit
+                       udev
+                       util-linux
+                       which
+               end
+       end
+       
+       package %{name}-network
+               summary = Network support for the initramdisk.
+               description
+                       This package requires everything which is needed to build a generic
+                       all purpose initramfs with network support with dracut.
+               end
+       
+               requires
+                       bridge-utils
+                       dhclient
+                       iproute
+                       nfs-utils
+               end
+       
+               files
+                       /usr/share/dracut/modules.d/40network
+                       /usr/share/dracut/modules.d/95fcoe
+                       /usr/share/dracut/modules.d/95iscsi
+                       /usr/share/dracut/modules.d/95nbd
+                       /usr/share/dracut/modules.d/95nfs
+                       /usr/share/dracut/modules.d/45ifcfg
+                       /usr/share/dracut/modules.d/95znet
+               end
+       end
+       
+       
+       package %{name}-utils
+               summary = Command line utils for dracut.
+               description = %{summary}
+       
+               files
+                       /sbin/dracut-*
+                       /sbin/*initrd
+               end
+       end
+end
index 38cde09229347efcf0509b81c3943e7bbb8c79df..5efad8de787e41e6c1ef8f80805cef9676ad51cf 100644 (file)
@@ -1,51 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = dvdrtools
+version    = 0.2.1
+release    = 1
 
-PKG_NAME       = dvdrtools
-PKG_VER        = 0.2.1
-PKG_REL        = 0
+groups     = System/Filesystems
+url        = http://savannah.nongnu.org/projects/dvdrtools/
+license    = GPLv2+
+summary    = A set of command line programs that allows to record media.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://savannah.nongnu.org/projects/dvdrtools/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A set of command line programs that allows to record media.
-
-define PKG_DESCRIPTION
+description
        dvdrtools is a fork of cdrtools/cdrecord with support for writing to DVDs. \
        While its primary purpose is writing data DVDs, it includes basic support \
        for mastering video DVDs.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       configure_options += \
+               --disable-static \
+               --mandir=/usr/share/man
 
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --mandir=/usr/share/man
+       test
+               make check
+       end
+end
 
-define STAGE_TEST
-        cd $(DIR_APP) && make check
-endef
+packages
+       package %{name}
+       end
+end
index d4d30b0156b7b1e8e65178d6298004d6cc5277dd..1fce087e9feab631e7f46465b714ba645d6ea341 100644 (file)
@@ -1,74 +1,53 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = e2fsprogs
-PKG_VER        = 1.41.11
-PKG_REL        = 1
+name       = e2fsprogs
+version    = 1.41.11
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG-GROUPS-$(PKG_NAME) = Base $(PKG_GROUPS)
-PKG_URL        = http://e2fsprogs.sourceforge.net/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Utilities for managing the extended (ext2/ext3/ext4) filesystems.
+groups     = System/Filesystems
+url        = http://e2fsprogs.sourceforge.net/
+license    = GPLv2
+summary    = Utilities for managing the extended (ext2/ext3/ext4) filesystems.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        The e2fsprogs package contains a number of utilities for creating, \
        checking, modifying, and correcting any inconsistencies in second \
        and third extended (ext2/ext3) filesystems.
-endef
-
-PKG_BUILD_DEPS+= libblkid-devel libselinux-devel libsepol-devel libuuid-devel\
-       pkg-config
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_PREPARE_CMDS
-       -mkdir -pv $(DIR_APP)/build
-
-       # Fix DT_TEXTREL in e2fsprogs libraries. --disable-shared and
-       # --with-pic are not options in E2fsprogs:
-       cd $(DIR_APP) && \
-               find lib/ -name Makefile.in -exec sed -i "s/\$$(ALL_CFLAGS)/& -fPIC/" {} \;
-
-       # At run time libblkid looks for the BLKID_DEBUG environment variable to
-       # enable debbugging, with getenv(3). Some suid-root programs use libblkid,
-       # such as mount(1). e2fsprogs includes a safe_getenv() function, which calls
-       # __secure_getenv() from libc. __secure_getenv will restrict some environment
-       # variables if the user is suid or sgid. So, this command replaces getenv()
-       # with safe_getenv():
-       cd $(DIR_APP) && sed \
-               -e "s/getenv(\"BLKID_DEBUG\")/safe_getenv(\"BLKID_DEBUG\")/" \
-               -i lib/blkid/cache.c
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP)/build && \
+end
+
+source_dl  =
+
+build
+       requires
+               libblkid-devel
+               libselinux-devel
+               libsepol-devel
+               libuuid-devel
+       end
+
+       prepare_cmds
+               mkdir -pv %{DIR_APP}/build
+
+               # Fix DT_TEXTREL in e2fsprogs libraries. --disable-shared and
+               # --with-pic are not options in E2fsprogs:
+               find lib/ -name Makefile.in -exec sed -i "s/\%{ALL_CFLAGS}/& -fPIC/" {} \;
+
+               # At run time libblkid looks for the BLKID_DEBUG environment variable to
+               # enable debbugging, with getenv(3). Some suid-root programs use libblkid,
+               # such as mount(1). e2fsprogs includes a safe_getenv() function, which calls
+               # __secure_getenv() from libc. __secure_getenv will restrict some environment
+               # variables if the user is suid or sgid. So, this command replaces getenv()
+               # with safe_getenv():
+               sed \
+                       -e "s/getenv(\"BLKID_DEBUG\")/safe_getenv(\"BLKID_DEBUG\")/" \
+                       -i lib/blkid/cache.c
+       end
+
+       build
+               cd build
                ../configure \
                        --prefix=/usr \
                        --with-root-prefix="" \
@@ -78,19 +57,30 @@ define STAGE_BUILD
                        --disable-uuidd \
                        --disable-libuuid
 
-       cd $(DIR_APP)/build && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP)/build && make check
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP)/build && make install DESTDIR=$(BUILDROOT)
-       cd $(DIR_APP)/build && make install-libs DESTDIR=$(BUILDROOT)
-
-       ln -svf ../../lib/libcom_err.so.2 $(BUILDROOT)/usr/lib/libcom_err.so
-       ln -svf ../../lib/libe2p.so.2 $(BUILDROOT)/usr/lib/libe2p.so
-       ln -svf ../../lib/libext2fs.so.2 $(BUILDROOT)/usr/lib/libext2fs.so
-       ln -svf ../../lib/libss.so.2 $(BUILDROOT)/usr/lib/libss.so
-endef
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               cd build && make check
+       end
+
+       install
+               cd build
+               make install install-libs DESTDIR=%{BUILDROOT}
+
+               ln -svf ../../lib/libcom_err.so.2 %{BUILDROOT}/usr/lib/libcom_err.so
+               ln -svf ../../lib/libe2p.so.2 %{BUILDROOT}/usr/lib/libe2p.so
+               ln -svf ../../lib/libext2fs.so.2 %{BUILDROOT}/usr/lib/libext2fs.so
+               ln -svf ../../lib/libss.so.2 %{BUILDROOT}/usr/lib/libss.so
+       end
+end
+
+packages
+       package %{name}
+               groups += Base
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index cf7d2f3956e8f3121a2f2f2a81ea414da916e929..2539b25c1c0bfe17879d52cb1120e07f79fc9a50 100644 (file)
@@ -1,64 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = ebtables
+version    = v2.0.9-2
+release    = 1
 
-PKG_NAME       = ebtables
-PKG_VER        = v2.0.9-2
-PKG_REL        = 1
+groups     = Networking/Tools
+url        = http://ebtables.sourceforge.net/
+license    = GPLv2+
+summary    = Ethernet Bridge frame table administration tool.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://ebtables.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Ethernet Bridge frame table administration tool.
-
-define PKG_DESCRIPTION
+description
        Ethernet bridge tables is a firewalling tool to transparently filter network \
        traffic passing a bridge. The filtering possibilities are limited to link \
        layer filtering and some basic filtering on higher network layers.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       CFLAGS += -Wall
 
-CFLAGS += -Wall
+       build
+               make CFLAGS="%{CFLAGS}" BINDIR="/sbin" \
+                       LIBDIR="/lib/ebtables" MANDIR="/usr/share/man" %{PARALLELISMFLAGS}
+       end
 
-PKG_REQUIRES_FILTER = libebt
+       install
+               mkdir -pv %{BUILDROOT}/etc/{init.d,sysconfig}
+               make install DESTDIR="%{BUILDROOT}" BINDIR="/sbin" \
+                       LIBDIR="/lib/ebtables" MANDIR="/usr/share/man" INITDIR="/etc/init.d"
 
-define QUALITY_AGENT_WHITELIST_RPATH
-       /lib/ebtables
-endef
+               rm -vfr %{BUILDROOT}/etc/{init.d,sysconfig}
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" BINDIR="/sbin" \
-               LIBDIR="/lib/ebtables" MANDIR="/usr/share/man" $(PARALLELISMFLAGS)
-endef
+       export PKG_REQUIRES_FILTER = libebt
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/etc/{init.d,sysconfig}
-       cd $(DIR_APP) && make install DESTDIR="$(BUILDROOT)" BINDIR="/sbin" \
-               LIBDIR="/lib/ebtables" MANDIR="/usr/share/man" INITDIR="/etc/init.d"
+quality-agent
+       whitelist_rpath
+               /lib/ebtables
+       end
+end
 
-       rm -vfr $(BUILDROOT)/etc/{init.d,sysconfig}
-endef
+packages
+       package %{name}
+       end
+end
index ca695886b79bde362d65fe81835785121f3228f1..f2ddbc78f608306039651f4f9d1c1fe3a53f70be 100644 (file)
@@ -1,57 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = ed
+version    = 1.5
+release    = 3
 
-PKG_NAME       = ed
-PKG_VER        = 1.5
-PKG_REL        = 3
+groups     = Application/Text
+url        = http://www.gnu.org/software/ed/
+license    = GPLv3+
+summary    = The GNU line editor.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Application/Text
-PKG_URL        = http://www.gnu.org/software/ed/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The GNU line editor.
-
-define PKG_DESCRIPTION
+description
        Ed is a line-oriented text editor, used to create, display, and modify \
        text files (both interactively and via shell scripts).  For most \
        purposes, ed has been replaced in normal usage by full-screen editors \
        (emacs and vi, for example).
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_options += \
+               --exec-prefix=/
 
-CONFIGURE_OPTIONS += \
-       --exec-prefix=/
+       make_build_target = CFLAGS="%{CFLAGS}"
 
-STAGE_BUILD_TARGET = CFLAGS="$(CFLAGS)"
+       install
+               # Create directory for man pages
+               mkdir -pv %{BUILDROOT}/usr/share/man/man1
 
-define STAGE_INSTALL
-       # Create directory for man pages
-       mkdir -pv $(BUILDROOT)/usr/share/man/man1
+               make install bindir=/bin mandir=/usr/share/man \
+                       DESTDIR=%{BUILDROOT}
+       end
+end
 
-       cd $(DIR_APP) && make install bindir=/bin mandir=/usr/share/man \
-               DESTDIR=$(BUILDROOT)
-endef
+packages
+       package %{name}
+       end
+end
index 5d8f8a81bb56b4dc996c668c3ca7ad7def0791bf..502736d81db4518bca600e9b75e4ac507976b28a 100644 (file)
@@ -1,50 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = eggdbus
-PKG_VER        = 0.6
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://cgit.freedesktop.org/~david/eggdbus
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Experimental D-Bus bindings for GObject.
+name       = eggdbus
+version    = 0.6
+release    = 1
 
-PKG_BUILD_DEPS+= dbus-devel dbus-glib-devel glib2-devel pkg-config
+groups     = System/Libraries
+url        = http://cgit.freedesktop.org/~david/eggdbus
+license    = LGPLv2+
+summary    = Experimental D-Bus bindings for GObject.
 
-define PKG_DESCRIPTION
+description
        Experimental D-Bus bindings for GObject.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --disable-static
-
-PARALLELISMFLAGS = # off
+end
+
+source_dl  =
+
+build
+       requires
+               dbus-devel
+               dbus-glib-devel
+               glib2-devel
+       end
+
+       configure_options += \
+               --disable-static
+
+       PARALLELISMFLAGS = # off
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index ca9a1ab4d7be0817b935c2db3e842faede491c77..e2a74888bc2325f80d827d37df6bdb3cff8e86a7 100644 (file)
@@ -1,51 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = eject
-PKG_VER        = 2.1.5
-PKG_REL        = 0
+name       = eject
+version    = 2.1.5
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.pobox.com/~tranter
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A program that ejects removable media using software control.
+groups     = System/Base
+url        = http://www.pobox.com/~tranter
+license    = GPLv2+
+summary    = A program that ejects removable media using software control.
 
-PKG_BUILD_DEPS+= gettext libtool
-
-define PKG_DESCRIPTION
+description
        The eject program allows the user to eject removable media (typically \
        CD-ROMs, floppy disks or Iomega Jaz or Zip disks) using software \
        control. Eject can also control some multi-disk CD changers and even \
        some devices' auto-eject features.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gettext
+               libtool
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       DIR_APP = %{DIR_SRC}/%{name}
 
-DIR_APP        = $(DIR_SRC)/$(PKG_NAME)
+       configure_options += \
+               --mandir=/usr/share/man
+end
 
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man
+packages
+       package %{name}
+       end
+end
index 002adc9333afd5dfade0b22c5e5bc2d86758144d..a82a69b4917f50ec6e1488aa0985c87e17591f43 100644 (file)
@@ -1,77 +1,71 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = elfutils
+version    = 0.152
+release    = 2
 
-PKG_NAME       = elfutils
-PKG_VER        = 0.152
-PKG_REL        = 2
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Libraries
+url        = https://fedorahosted.org/elfutils/
+license    = GPLv2 with exceptions
+summary    = A collection of utilities and DSOs to handle compiled objects.
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = https://fedorahosted.org/elfutils/
-PKG_LICENSE    = GPLv2 with exceptions
-PKG_SUMMARY    = A collection of utilities and DSOs to handle compiled objects.
-
-PKG_BUILD_DEPS+= bzip2-devel m4 xz-devel zlib-devel
-
-define PKG_DESCRIPTION
-       Elfutils is a collection of utilities, including ld (a linker), \
-       nm (for listing symbols from object files), size (for listing the \
-       section sizes of an object or archive file), strip (for discarding \
-       symbols), readelf (to see the raw ELF file structures), and elflint \
+description
+       Elfutils is a collection of utilities, including ld (a linker),
+       nm (for listing symbols from object files), size (for listing the
+       section sizes of an object or archive file), strip (for discarding
+       symbols), readelf (to see the raw ELF file structures), and elflint
        (to check for well-formed ELF files).
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               bzip2-devel
+               m4
+               xz-devel
+               zlib-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+       configure_options += \
+               --program-prefix=eu-
 
-PKG_DEPS-$(PKG_NAME)-devel = $(PKG_NAME) $(PKG_NAME)-libs
+       prepare_cmds
+               # Fix a compiler warning.
+               sed -i.scanf-m -e 's/%m/%a/g' \
+                       src/addr2line.c tests/line2addr.c
+       end
 
-CONFIGURE_OPTIONS += \
-       --program-prefix=eu-
+       # fails
+       #test
+       #       make check
+       #end
+end
 
-define QUALITY_AGENT_WHITELIST_RPATH
-       /usr/lib/elfutils
-endef
+quality-agent
+       whitelist_rpath
+               /usr/lib/elfutils
+       end
+end
 
-# Remove -Wall from CFLAGS because -Werror is used at some places.
-CFLAGS        := $(filter-out -Wall,$(CFLAGS))
+packages
+       package %{name}
 
-define STAGE_PREPARE_CMDS
-       # Fix a compiler warning.
-       cd $(DIR_APP) && sed -i.scanf-m -e 's/%m/%a/g' \
-               src/addr2line.c tests/line2addr.c
-endef
+       package %{name}-devel
+               template DEVEL
+       
+               requires = %{name}=%{thisver} %{name}-libs=%{thisver}
+       end
 
-# fails
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
-#endef
+       package %{name}-libs
+               template LIBS
 
-# Libs are not versioned very well...
-PKG_FILES-$(PKG_NAME_REAL)-libs += \
-       /usr/lib/lib*$(PKG_VER).so \
-       /usr/lib/elfutils
+               files += /usr/lib*/lib*%{version}.so
+               files += /usr/lib/elfutils
+       end
+end
index 9fa5e2ec3400931ab77d7b030fe6d42e9b137e1b..1e846eb4fe15ee56d33153946035c21dc4d46b61 100644 (file)
@@ -1,51 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2011  IPFire Team  <info@ipfire.org>                     #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = elinks
-PKG_VER        = 0.11.7
-PKG_REL        = 1
+name       = elinks
+version    = 0.11.7
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Internet
-PKG_URL        = http://elinks.or.cz/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Full-Featured Text WWW Browser.
+groups     = Applications/Internet
+url        = http://elinks.or.cz/
+license    = GPLv2
+summary    = Full-Featured Text WWW Browser.
 
-PKG_BUILD_DEPS+= expat-devel gdbm-devel gnutls-devel libidn-devel \
-       openssl-devel zlib-devel
-
-define PKG_DESCRIPTION
+description
        ELinks is an advanced and well-established feature-rich text mode \
        web (HTTP/FTP/..) browser. ELinks can render both frames and tables, \
        is highly customizable and can be extended via Lua or Guile scripts. \
        It is quite portable and runs on a variety of platforms.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --enable-bittorrent \
-       --enable-256-colors
+end
+
+source_dl  =
+
+build
+       requires
+               expat-devel
+               gdbm-devel
+               gnutls-devel
+               libidn-devel
+               openssl-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --enable-bittorrent \
+               --enable-256-colors
+end
+
+packages
+       package %{name}
+       end
+end
index 4389725997d9889d48a8c98a9bcca46507a575e3..5ceab2aa9c7a9d3cc8cc806966d89acbe908158f 100644 (file)
@@ -1,52 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = etherwake
+version    = 1.09
+release    = 2
 
-PKG_NAME       = etherwake
-PKG_VER        = 1.09
-PKG_REL        = 2
+groups     = Networking/Tools
+url        =
+license    =
+summary    = Can wake up sleeping PCs by WOL.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = 
-PKG_LICENSE    = 
-PKG_SUMMARY    = Can wake up sleeping PCs by WOL.
-
-define PKG_DESCRIPTION
+description
        A little tool to send magic Wake-on-LAN packets You can wake up WOL \
        compliant Computers which have been powered down to sleep mode or start \
        WOL compliant Computers with a BIOS feature.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       prepare_cmds
+               sed -e "s/^CFLAGS.*/CFLAGS = %{CFLAGS}/" -i Makefile
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/^CFLAGS.*/CFLAGS = $(CFLAGS)/" -i Makefile
-endef
+       install
+               mkdir -pv %{BUILDROOT}/usr/sbin
+               make install DESTDIR=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-endef
+packages
+       package %{name}
+       end
+end
index 4bb0accde1c8715e8dcd9bd0afad39bda81ae69d..dfbca0e6189f30717cadb4d2666beb56c16e9d89 100644 (file)
@@ -1,46 +1,31 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = ethtool
+version    = 2.6.34
+release    = 1
 
-PKG_NAME       = ethtool
-PKG_VER        = 2.6.34
-PKG_REL        = 0
+groups     = Base Applications/System
+url        = http://sourceforge.net/projects/gkernel/
+license    = GPLv2
+summary    = Ethernet settings tool for PCI ethernet cards.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://sourceforge.net/projects/gkernel/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Ethernet settings tool for PCI ethernet cards.
-
-define PKG_DESCRIPTION
+description
        This utility allows querying and changing settings such as speed, \
        port, autonegotiation, PCI locations and checksum offload on many \
        network devices, especially of ethernet devices.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_options += \
+               --sbindir=/sbin
+end
 
-CONFIGURE_OPTIONS += \
-       --sbindir=/sbin
+packages
+       package %{name}
+       end
+end
index 46992b94d37b6bfca72facddc92c65893df6785b..dc13fc7370a81caf941d66e3d8c22dd166cf79eb 100644 (file)
@@ -1,56 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = expat
-PKG_VER        = 2.0.1
-PKG_REL        = 0
+name       = expat
+version    = 2.0.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.libexpat.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = An XML parser library.
+groups     = System/Libraries
+url        = http://www.libexpat.org/
+license    = MIT
+summary    = An XML parser library.
 
-define PKG_DESCRIPTION
+description
        This is expat, the C library for parsing XML, written by James Clark. Expat \
        is a stream oriented XML parser. This means that you register handlers with \
        the parser prior to starting the parse. These handlers are called when the \
        parser discovers the associated structures in the document being parsed. A \
        start tag is an example of the kind of structures for which you may \
        register handlers.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += --libdir=/lib --mandir=/usr/share
-
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/lib/libexpat.so
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libexpat.so.1 $(BUILDROOT)/usr/lib/libexpat.so
-endef
+end
+
+source_dl  =
+
+build
+       configure_options += \
+               --libdir=/lib \
+               --mandir=/usr/share
+
+       install_cmds
+               rm -vf %{BUILDROOT}/lib/libexpat.so
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libexpat.so.1 %{BUILDROOT}/usr/lib/libexpat.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index f00c5cc5109a54e85be86805ec932a1a8b0c0ae9..eea26324ae8d3e3c1558bbfca8d646435f99e8ad 100644 (file)
@@ -1,66 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = expect
-PKG_VER        = 5.43
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://expect.nist.gov/
-PKG_LICENSE    = Public Domain
-PKG_SUMMARY    = A program-script interaction and testing utility.
+name       = expect
+version    = 5.43
+release    = 1
 
-PKG_BUILD_DEPS+= autoconf automake tcl
+groups     = Development/Languages
+url        = http://expect.nist.gov/
+license    = Public Domain
+summary    = A program-script interaction and testing utility.
 
-define PKG_DESCRIPTION
+description
        xpect is a tcl application for automating and testing \
        interactive applications such as telnet, ftp, passwd, fsck, \
        rlogin, tip, etc. Expect makes it easy for a script to \
        control another program and interact with it.
-endef
-
-PKG_TARBALL    = $(THISAPP).0.tar.gz
-
-CONFIGURE_OPTIONS = \
-       --mandir=/usr/share/man \
-       --with-tcl=/usr/lib \
-       --with-tclinclude=/usr/include/ \
-       --with-x=no \
-       --enable-shared
-
-define STAGE_TEST
-       cd $(DIR_APP) && make test
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install INSTALL_ROOT=$(BUILDROOT)
-       
-       # remove cryptdir/decryptdir, as Linux has no crypt command
-       rm -f $(BUILDROOT)/usr/bin/{cryptdir,decryptdir} 
-       rm -f $(BUILDROOT)/usr/share/man1/{cryptdir,decryptdir}.1*
-       rm -f $(BUILDROOT)/usr/bin/autopasswd
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.0.tar.gz
+
+build
+       requires
+               autoconf
+               automake
+               tcl
+       end
+
+       configure_options = \
+               --mandir=/usr/share/man \
+               --with-tcl=/usr/lib \
+               --with-tclinclude=/usr/include/ \
+               --with-x=no \
+               --enable-shared
+
+       test
+               make test
+       end
+
+       install
+               make install INSTALL_ROOT=%{BUILDROOT}
+
+               # remove cryptdir/decryptdir, as Linux has no crypt command
+               rm -f %{BUILDROOT}/usr/bin/{cryptdir,decryptdir}
+               rm -f %{BUILDROOT}/usr/share/man1/{cryptdir,decryptdir}.1*
+               rm -f %{BUILDROOT}/usr/bin/autopasswd
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 305385e26b119a1ea66a5a17c7d12a30fe367e38..a91cdc4b44bf5673ac0b86a082f74c9de4f49b81 100644 (file)
@@ -1,46 +1,31 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = ez-ipupdate
+version    = 3.0.11b8
+release    = 1
 
-PKG_NAME       = ez-ipupdate
-PKG_VER        = 3.0.11b8
-PKG_REL        = 0
+groups     = Networking/Tools
+url        = http://www.gusnet.cx/proj/ez-ipupdate/
+license    = GPLv2+
+summary    = Client for Dynamic DNS Services.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://www.gusnet.cx/proj/ez-ipupdate/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Client for Dynamic DNS Services.
-
-define PKG_DESCRIPTION
-       ez-ipupdate is a small utility for updating your host name for a lot of \
+description
+       ez-ipupdate is a small utility for updating your host name for a lot of
        dynamic DNS service provider.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_cmds
+               chmod -v 755 missing
+       end
+end
 
-define STAGE_CONFIGURE_CMDS
-       cd $(DIR_APP) && chmod -v 755 missing
-endef
+packages
+       package %{name}
+       end
+end
index 99337289e283d1c75046819cd94aaf3aa5f17f1c..0d204e028619c028a4b457b26226cab2b9800cda 100644 (file)
@@ -1,54 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = fail2ban
-PKG_VER        = 0.8.4
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Security/Tools
-PKG_URL        = http://fail2ban.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Ban IPs that make too many password failures.
+name       = fail2ban
+version    = 0.8.4
+release    = 1
 
-PKG_BUILD_DEPS+= python-devel
+groups     = Security/Tools
+url        = http://fail2ban.sourceforge.net/
+license    = GPLv2+
+summary    = Ban IPs that make too many password failures.
 
-
-define PKG_DESCRIPTION
+description
        Fail2ban scans log files like /var/log/pwdfail or
        /var/log/apache/error_log and bans IP that makes too many password
        failures. It updates firewall rules to reject the IP address.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-STAGE_BUILD = # nothing to do
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-       -mkdir -pv $(BUILDROOT)/etc/logrotate.d/
-       cp -vf $(DIR_SOURCE)/fail2ban.logrotate $(BUILDROOT)/etc/logrotate.d/fail2ban 
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               python-devel
+       end
+
+       build
+               : # nothing to do
+       end
+
+       install
+               python setup.py install --root=%{BUILDROOT}
+               mkdir -pv %{BUILDROOT}/etc/logrotate.d/
+               cp -vf %{DIR_SOURCE}/fail2ban.logrotate %{BUILDROOT}/etc/logrotate.d/fail2ban
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index aebd060cba49a0b17795993f65057101e03f8478..c193681d6546c8f5d3c4d5275b874119e0772a7f 100644 (file)
@@ -1,55 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = file
-PKG_VER        = 5.07
-PKG_REL        = 1
+name       = file
+version    = 5.07
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Tools
-PKG_URL        = http://www.darwinsys.com/file/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A utility for determining file types.
+groups     = Base Build System/Tools
+url        = http://www.darwinsys.com/file/
+license    = BSD
+summary    = A utility for determining file types.
 
-PKG_BUILD_DEPS+= zlib-devel
-
-define PKG_DESCRIPTION
+description
        The file command is used to identify a particular file according to the \
        type of data contained by the file.  File can identify many different \
        file types, including ELF binaries, system libraries, RPM packages, and \
        different graphics formats.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               zlib-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --disable-static
 
-PKG_PACKAGES  += file-devel
+       test
+               make check
+       end
+end
 
-CONFIGURE_OPTIONS += \
-       --disable-static
+packages
+       package %{name}
 
-define STAGE_TEST
-        cd $(DIR_APP) && make check
-endef
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 830c57daaace8fd094f12befe9472aa0e727090f..f5668ef54cf3563b2f138951dfaebeedd8f0d3b7 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = filesystem
+version    = 001
+release    = 2
 
-PKG_NAME       = filesystem
-PKG_VER        = 001
-PKG_REL        = 2
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Base Build System/Base
+url        =
+license    = Public Domain
+summary    = The basic directory layout for a Linux system.
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Base System/Base
-PKG_URL        = 
-PKG_LICENSE    = Public Domain
-PKG_SUMMARY    = The basic directory layout for a Linux system.
-
-PKG_BUILD_DEPS = # No compiler needed.
-PKG_PREREQUIRES += setup
-
-define PKG_DESCRIPTION
+description
        The filesystem package is one of the basic packages that is installed
        on a Linux system. Filesystem contains the basic directory layout
        for a Linux operating system, including the correct permissions for
        the directories.
-endef
+end
+
+# No tarball.
+sources   =
 
-DIR_APP = $(DIR_SRC)
+build
+       DIR_APP = %{DIR_SRC}
 
-QUALITY_AGENT_NO_DIRECTORY_CHECK = yes
-QUALITY_AGENT_NO_DIRECTORY_PRUNE = yes
+       build
+               : # Nothing to do
+       end
 
-STAGE_BUILD = # Nothing to do
+       install
+               cd %{BUILDROOT}
+               mkdir -pv \
+                       bin \
+                       boot \
+                       dev \
+                       etc/pki \
+                       etc/skel \
+                       etc/sysconfig \
+                       home \
+                       lib/modules \
+                       media \
+                       mnt \
+                       opt \
+                       proc \
+                       root \
+                       run/lock \
+                       sbin \
+                       srv \
+                       sys \
+                       tmp \
+                       usr/bin \
+                       usr/include \
+                       usr/lib \
+                       usr/lib/locale \
+                       usr/sbin \
+                       usr/share/{aclocal,dict,doc,empty,info,mime-info,misc} \
+                       usr/share/man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p} \
+                       usr/src \
+                       usr/local/bin \
+                       usr/local/etc \
+                       usr/local/lib \
+                       usr/local/sbin \
+                       usr/local/share \
+                       usr/local/share/man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x} \
+                       usr/local/share/info \
+                       usr/local/include \
+                       var/empty \
+                       var/lib \
+                       var/local \
+                       var/lock/subsys \
+                       var/log \
+                       var/nis \
+                       var/preserve \
+                       var/run \
+                       var/spool/{mail,lpd} \
+                       var/tmp \
+                       var/db \
+                       var/cache
 
-define STAGE_INSTALL
-       cd $(BUILDROOT) && mkdir -pv \
-               bin \
-               boot \
-               dev \
-               etc/pki \
-               etc/skel \
-               etc/sysconfig \
-               home \
-               lib/modules \
-               media \
-               mnt \
-               opt \
-               proc \
-               root \
-               run/lock \
-               sbin \
-               srv \
-               sys \
-               tmp \
-               usr/bin \
-               usr/include \
-               usr/lib \
-               usr/lib/locale \
-               usr/sbin \
-               usr/share/{aclocal,dict,doc,empty,info,mime-info,misc} \
-               usr/share/man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x,0p,1p,3p} \
-               usr/src \
-               usr/local/bin \
-               usr/local/etc \
-               usr/local/lib \
-               usr/local/sbin \
-               usr/local/share \
-               usr/local/share/man/man{1,2,3,4,5,6,7,8,9,n,1x,2x,3x,4x,5x,6x,7x,8x,9x} \
-               usr/local/share/info \
-               usr/local/include \
-               var/empty \
-               var/lib \
-               var/local \
-               var/lock/subsys \
-               var/log \
-               var/nis \
-               var/preserve \
-               var/run \
-               var/spool/{mail,lpd} \
-               var/tmp \
-               var/db \
-               var/cache
+               ln -snf ../var/tmp usr/tmp
+               ln -snf spool/mail var/mail
 
-       cd $(BUILDROOT) && ln -snf ../var/tmp usr/tmp
-       cd $(BUILDROOT) && ln -snf spool/mail var/mail
+               # Setting correct permissions.
+               chmod 1777 %{BUILDROOT}/{,var/}tmp
+               chown root:mail %{BUILDROOT}/var/spool/mail
+               chmod 775 %{BUILDROOT}/var/spool/mail
+       end
+       
+       # XXX not implemented at the moment     
+       export QUALITY_AGENT_NO_DIRECTORY_CHECK = yes
+       export QUALITY_AGENT_NO_DIRECTORY_PRUNE = yes
+end
 
-       # Setting correct permissions.
-       chmod 1777 $(BUILDROOT)/{,var/}tmp
-       chown root:mail $(BUILDROOT)/var/spool/mail
-       chmod 775 $(BUILDROOT)/var/spool/mail
-endef
+packages
+       package %{name}
+               prerequires = setup
+       end
+end
index ddcd6c8a2ccd88fd524c3f7f2f29250ae8a2b71a..335aa68c990877301ccdeb37d33822687cf141c5 100644 (file)
@@ -1,63 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = findutils
-PKG_VER        = 4.5.10
-PKG_REL        = 1
+name       = findutils
+version    = 4.5.10
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Tools
-PKG_URL        = http://www.gnu.org/software/findutils/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The GNU versions of find utilities (find and xargs).
+groups     = Base Build System/Tools
+url        = http://www.gnu.org/software/findutils/
+license    = GPLv3+
+summary    = The GNU versions of find utilities (find and xargs).
 
-PKG_BUILD_DEPS+= libselinux-devel
-
-define PKG_DESCRIPTION
+description
        The findutils package contains programs which will help you locate \
        files on your system.  The find utility searches through a hierarchy \
        of directories looking for files which match a certain set of criteria \
        (such as a filename pattern).  The xargs utility builds and executes \
        command lines from standard input arguments (usually lists of file \
        names generated by the find command).
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libselinux-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --libexecdir=/usr/lib/findutils \
+               --localstatedir=/var/lib/locate
 
-CONFIGURE_OPTIONS += \
-       --libexecdir=/usr/lib/findutils \
-       --localstatedir=/var/lib/locate
+       test
+               make check
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+       install_cmds
+               mkdir -pv %{BUILDROOT}/bin
+               mv -v %{BUILDROOT}/usr/bin/find %{BUILDROOT}/bin
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/bin
-       mv -v $(BUILDROOT)/usr/bin/find $(BUILDROOT)/bin
+               sed -i -e 's/find:=${BINDIR}/find:=\/bin/' %{BUILDROOT}/usr/bin/updatedb
+       end
+end
 
-       sed -i -e 's/find:=$${BINDIR}/find:=\/bin/' $(BUILDROOT)/usr/bin/updatedb
-endef
+packages
+       package %{name}
+       end
+end
index fd6bbdb5790ec6902c8fe43a76a9355644514c43..6e3cd35ea6ec440b6f050ceccddcc6d65e9af236 100644 (file)
@@ -1,58 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = firewall
-PKG_VER        =
-PKG_REL        = 2
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Networking/Firewall
-PKG_URL        = http://www.ipfire.org/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The IPFire Firewall Engine.
+name       = firewall
+version    = 0.1
+release    = 2
 
-PKG_BUILD_DEPS = # Empty
-PKG_DEPS      += iproute2 iptables
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Networking/Firewall
+url        = http://www.ipfire.org/
+license    = GPLv3+
+summary    = The IPFire Firewall Engine.
 
-define PKG_DESCRIPTION
+description
        This script installs IPFire's firewall.
-endef
-
-DIR_APP = $(DIR_SOURCE)/src
-
-PKG_TARBALL    =
-
-STAGE_PREPARE = # Do nothing
-STAGE_BUILD = # Do nothing
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/{lib,share}/firewall $(BUILDROOT)/usr/bin
-       for i in $(DIR_APP)/{functions,zones}*; do \
-               install -m 644 -v $$i $(BUILDROOT)/usr/lib/firewall; \
-       done
-       cp -avf $(DIR_APP)/macros $(BUILDROOT)/usr/share/firewall/
-       install -m 755 -v $(DIR_APP)/firewall $(BUILDROOT)/usr/bin
-endef
+end
+
+# No tarball.
+sources    =
+
+build
+       DIR_APP = %{DIR_SOURCE}/src
+
+       build
+               : # Do nothing.
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/{lib,share}/firewall %{BUILDROOT}/usr/bin
+               for i in %{DIR_APP}/{functions,zones}*; do \
+                       install -m 644 -v $i %{BUILDROOT}/usr/lib/firewall; \
+               done
+               cp -avf %{DIR_APP}/macros %{BUILDROOT}/usr/share/firewall/
+               install -m 755 -v %{DIR_APP}/firewall %{BUILDROOT}/usr/bin
+       end
+end
+
+packages
+       package %{name}
+               requires = iproute2 iptables
+       end
+end
index 7f45cf9875fd4aa1a249ca54a946b0f32bf23852..8f31c1760cc2a581b42db57fac0ebc6ca7e00643 100644 (file)
@@ -1,43 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = flex
-PKG_VER        = 2.5.35
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://flex.sourceforge.net/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A tool for creating scanners (text pattern recognizers).
+name       = flex
+version    = 2.5.35
+release    = 2
 
-PKG_BUILD_DEPS+= bison gcc-c++ m4
-PKG_DEPS      += m4
+groups     = Development/Tools
+url        = http://flex.sourceforge.net/
+license    = BSD
+summary    = A tool for creating scanners (text pattern recognizers).
 
-define PKG_DESCRIPTION
+description
        The flex program generates scanners. Scanners are programs which can \
        recognize lexical patterns in text. Flex takes pairs of regular \
        expressions and C code as input and generates a C source file as \
@@ -47,21 +22,38 @@ define PKG_DESCRIPTION
        executes the corresponding C code. Flex was designed to work with \
        both Yacc and Bison, and is used by many programs as part of their \
        build process.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
-
-define STAGE_INSTALL_CMDS
-       echo "#!/bin/sh"                        >  $(BUILDROOT)/usr/bin/lex
-       echo "exec /usr/bin/flex -l \"$$@\""    >> $(BUILDROOT)/usr/bin/lex
-       chmod 755 $(BUILDROOT)/usr/bin/lex
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               bison
+               gcc-c++
+               m4
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man
+
+       test
+               make check
+       end
+
+       install_cmds
+               echo "#!/bin/sh"                        >  %{BUILDROOT}/usr/bin/lex
+               echo "exec /usr/bin/flex -l \"$$@\""    >> %{BUILDROOT}/usr/bin/lex
+               chmod 755 %{BUILDROOT}/usr/bin/lex
+       end
+end
+
+packages
+       package %{name}
+               requires = m4
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index c2dc70c53d943254803f034f010f88702a2a6575..666165c436bd975ca2eaf8d9a85561fe29f40f16 100644 (file)
@@ -1,54 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = fontconfig
-PKG_VER        = 2.7.1
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Graphics
-PKG_URL        = http://fontconfig.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Font configuration and customization library.
+name       = fontconfig
+version    = 2.7.1
+release    = 1
 
-PKG_BUILD_DEPS+= freetype-devel libxml2-devel pkg-config zlib-devel
+groups     = System/Graphics
+url        = http://fontconfig.org/
+license    = MIT
+summary    = Font configuration and customization library.
 
-define PKG_DESCRIPTION
+description
        Fontconfig is designed to locate fonts within the \
        system and select them according to requirements specified by \
        applications.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --localstatedir=/var \
-       --enable-libxml2 \
-       --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
-
+end
+
+source_dl  =
+
+build
+       requires
+               freetype-devel
+               libxml2-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --enable-libxml2 \
+               --with-add-fonts=/usr/share/X11/fonts/Type1,/usr/share/X11/fonts/TTF,/usr/local/share/fonts
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 4cc46b0c3ce8c34529325b450c83464ad170819c..e780786ff24789523883ed52f6c42b8e64df7afb 100644 (file)
@@ -1,63 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = freeradius-server
-PKG_VER        = 2.1.9
-PKG_REL        = 2
+name       = freeradius-server
+version    = 2.1.9
+release    = 2
 
-PKG_MAINTAINER = 
-PKG_GROUPS     = System/Daemons
-PKG_URL        = http://www.freeradius.org
-PKG_LICENSE    = GPLv2+ and LGPLv2+
-PKG_SUMMARY    = High-performance and highly configurable free RADIUS server.
+groups     = System/Daemons
+url        = http://www.freeradius.org
+license    = GPLv2+ and LGPLv2+
+summary    = High-performance and highly configurable free RADIUS server.
 
-PKG_BUILD_DEPS+= gdbm-devel libpcap-devel libtool libtool-devel openssl-devel \
-       perl
-
-# Freeradius requires make to generate it's certificates
-PKG_DEPS      += make
-
-define PKG_DESCRIPTION
+description
        The FreeRADIUS Server Project is a high performance and highly \
        configurable GPL'd free RADIUS server. \
        FreeRADIUS is an Internet authentication daemon, which implements \
        the RADIUS protocol, as defined in RFC 2865. It allows \
        Network Access Servers to perform authentication for dial-up users.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-define QUALITY_AGENT_WHITELIST_RPATH
-       /usr/lib/freeradius
-endef
+build
+       requires
+               gdbm-devel
+               libpcap-devel
+               libtool
+               libtool-devel
+               openssl-devel
+               perl
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && \
+       build
                ./configure \
-                       $(CONFIGURE_ARCH) \
+                       %{CONFIGURE_ARCH} \
                        --prefix=/usr \
                        --sysconfdir=/etc \
                        --libdir=/usr/lib/freeradius \
@@ -73,17 +50,30 @@ define STAGE_BUILD
                        --without-rlm_sql_db2 \
                        --without-rlm_sql_oracle
 
-       cd $(DIR_APP) && make LIBTOOL="libtool --tag=CC" #$(PARALLELISMFLAGS)
-endef
+               make LIBTOOL="libtool --tag=CC" #%{PARALLELISMFLAGS}
+       end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && R=$(BUILDROOT) make install
-endef
+       install
+               R=%{BUILDROOT} make install
+       end
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/logrotate.d/
-       cp -vf $(DIR_SOURCE)/logrotate/freeradius $(BUILDROOT)/etc/logrotate.d/ 
-endef
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/logrotate.d/
+               cp -vf %{DIR_SOURCE}/logrotate/freeradius %{BUILDROOT}/etc/logrotate.d/
+       end
+end
+
+quality-agent
+       whitelist_rpath
+               /usr/lib/freeradius
+       end
+end
 
 # Generate certificates after installation
 # Command: cd /etc/raddb/certs/ && make Makefile
+
+packages
+       package %{name}
+               requires = make
+       end
+end
index 74215098f39d740a16212358f5a430bde4445376..75ae2823e5838cfc8dd60a68c7fa476cec62ff8c 100644 (file)
@@ -1,57 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = freetype
-PKG_VER        = 2.3.9
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Graphics
-PKG_URL        = http://www.freetype.org/
-PKG_LICENSE    = FTL GPLv2+
-PKG_SUMMARY    = A free and portable font rendering engine.
+name       = freetype
+version    = 2.3.9
+release    = 1
 
-PKG_BUILD_DEPS+= pkg-config zlib-devel
+groups     = System/Graphics
+url        = http://www.freetype.org/
+license    = FTL GPLv2+
+summary    = A free and portable font rendering engine.
 
-define PKG_DESCRIPTION
+description
        The FreeType engine is a free and portable font rendering \
        engine, developed to provide advanced font support for a variety of \
        platforms and environments. FreeType is a library which can open and \
        manages font files as well as efficiently load, hint and render \
        individual glyphs. FreeType is not a font server or a complete \
        text-rendering library.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+build
+       requires
+               zlib-devel
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && \
+       prepare_cmds
                sed -i -r -e 's:.*(#.*BYTE.*) .*:\1:' \
                        -e 's:.*(#.*SUBPIX.*) .*:\1:' \
                        include/freetype/config/ftoption.h
-endef
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b4e4dcc78d981eeb7d70bd75b3dc69c6e836c323..ac137808ea9f60dea438130743203def3958836d 100644 (file)
@@ -1,51 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = fuse-sshfs
-PKG_VER        = 2.2
-PKG_REL        = 1
+name       = fuse-sshfs
+version    = 2.2
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://fuse.sourceforge.net/sshfs.html
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = FUSE-Filesystem to access remote filesystems via SSH.
+groups     = System/Filesystems
+url        = http://fuse.sourceforge.net/sshfs.html
+license    = GPLv2
+summary    = FUSE-Filesystem to access remote filesystems via SSH.
 
-PKG_PROVIDES  += sshfs=$(THISVER)
-
-PKG_BUILD_DEPS+= fuse-devel glib2-devel openssh-clients
-PKG_DEPS      += openssh-clients
-
-define PKG_DESCRIPTION
+description
        This is a FUSE-filesystem client based on the SSH File Transfer Protocol.
        Since most SSH servers already support this protocol it is very easy to set
        up: i.e. on the server side there's nothing to do.  On the client side
        mounting the filesystem is as easy as logging into the server with ssh.
-endef
-
-PKG_TARBALL    = sshfs-fuse-$(PKG_VER).tar.gz
-
-DIR_APP        = $(DIR_SRC)/sshfs-fuse-$(PKG_VER)
+end
+
+source_dl  =
+sources    = sshfs-fuse-%{version}.tar.gz
+
+build
+       requires
+               fuse-devel
+               glib2-devel
+               openssh-clients
+       end
+
+       DIR_APP = %{DIR_SRC}/sshfs-fuse-%{version}
+end
+
+packages
+       package %{name}
+               provides = sshfs=%{thisver}
+               requires = openssh-clients
+       end
+end
index ef9f3d68a2eb86f1ef5c50650f60d3325e5ef780..35c30d5a4000b2c6963e9e0e8f3ddac035f1d2ab 100644 (file)
@@ -1,58 +1,47 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = fuse
-PKG_VER        = 2.8.5
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://fuse.sf.net/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = File System in Userspace (FUSE) utilities.
+name       = fuse
+version    = 2.8.5
+release    = 1
 
-PKG_BUILD_DEPS+= libselinux-devel
+groups     = System/Filesystems
+url        = http://fuse.sf.net/
+license    = GPL+
+summary    = File System in Userspace (FUSE) utilities.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        With FUSE it is possible to implement a fully functional \
        filesystem in a userspace program. This package contains the \
        FUSE userspace tools to mount a FUSE filesystem.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --disable-rpath
-
-define STAGE_INSTALL_CMDS
-       rm -vrf $(BUILDROOT)/etc/init.d
-
-       # Remove /dev/fuse which cannot be packaged.
-       rm -rvf $(BUILDROOT)/dev
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libselinux-devel
+       end
+
+       configure_options += \
+               --disable-static \
+               --disable-rpath
+
+       install_cmds
+               rm -vrf %{BUILDROOT}/etc/init.d
+
+               # Remove /dev/fuse which cannot be packaged.
+               rm -rvf %{BUILDROOT}/dev
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 29b52b1731d90afd5a26b398cad3e948ca64f1d0..835aef21d391b1d8b350b5c46218d3108f482121 100644 (file)
@@ -1,66 +1,54 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = gawk
+version    = 4.0.0
+release    = 1
 
-PKG_NAME       = gawk
-PKG_VER        = 4.0.0
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Tools
-PKG_URL        = http://www.gnu.org/software/gawk/gawk.html
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The GNU version of the awk text processing utility.
-
-# Needed for testsuite.
-PKG_BUILD_DEPS+= util-linux
+groups     = Base Build System/Tools
+url        = http://www.gnu.org/software/gawk/gawk.html
+license    = GPLv3+
+summary    = The GNU version of the awk text processing utility.
 
-define PKG_DESCRIPTION
+description
        The gawk package contains the GNU version of awk, a text processing \
        utility. Awk interprets a special-purpose programming language to do \
        quick and easy text pattern matching and reformatting jobs.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.xz
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --libexecdir=/usr/lib \
-       --with-libsigsegv-prefix=no
-
-define STAGE_TEST
-        cd $(DIR_APP) && make check diffout
-endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       ln -svf ../../bin/awk $(BUILDROOT)/usr/bin/awk
-       ln -svf ../../bin/gawk $(BUILDROOT)/usr/bin/gawk
-
-       mv -v $(BUILDROOT)/bin/{p,i}gawk $(BUILDROOT)/usr/bin/
-
-       # Remove versioned binary.
-       rm -rfv $(BUILDROOT)/bin/{,p}gawk-*
-endef
+# Needed for testsuite.
+source_dl  =
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               util-linux
+       end
+
+       configure_options += \
+               --bindir=/bin \
+               --libexecdir=/usr/lib \
+               --with-libsigsegv-prefix=no
+
+       test
+               make check diffout
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/bin
+               ln -svf ../../bin/awk %{BUILDROOT}/usr/bin/awk
+               ln -svf ../../bin/gawk %{BUILDROOT}/usr/bin/gawk
+
+               mv -v %{BUILDROOT}/bin/{p,i}gawk %{BUILDROOT}/usr/bin/
+
+               # Remove versioned binary.
+               rm -rfv %{BUILDROOT}/bin/{,p}gawk-*
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 36cf73bb5ea68e9877d73e7a4146c1c2bcedf400..f9a81df45fe1d1cda3017cbe2cfb1bc2c91fef8d 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+# Configure build to compile with cloog and ppl.
+# XXX THIS PACKAGE DOES CURRENTLY NOT BUILD WITH CLOOG AND PPL WHICH
+# NEEDS TO BE FIXED SOON.
+build_cloog_ppl = 0
 
-BUILD_CLOOG_PPL= 1
+name       = gcc
+version    = 4.6.1
+release    = 3
 
-PKG_NAME       = gcc
-PKG_VER        = 4.6.1
-PKG_REL        = 3
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Compilers
+url        = http://gcc.gnu.org/
+license    = GPLv3+ and GPLv2+ with exceptions
+summary    = Various compilers (C, C++, Objective-C, Java, ...).
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Compilers
-PKG_URL        = http://gcc.gnu.org/
-PKG_LICENSE    = GPLv3+ and GPLv2+ with exceptions
-PKG_SUMMARY    = Various compilers (C, C++, Objective-C, Java, ...).
-
-define PKG_DESCRIPTION
+description
        The gcc package contains the GNU Compiler Collection. \
        You'll need this package in order to compile C code.
-endef
-
-BINUTILS_VER = 2.21.51.0.8-1
-
-PKG_BUILD_DEPS+= \
-       autogen \
-       binutils>=$(BINUTILS_VER) \
-       dejagnu \
-       elfutils-devel \
-       expect \
-       flex \
-       gmp-devel \
-       libffi-devel \
-       mpc-devel \
-       mpfr-devel \
-       texinfo \
-       zlib-devel
-
-PKG_DEPS-gcc  += binutils>=$(BINUTILS_VER) libgcc-devel
-
-ifeq "$(BUILD_CLOOG_PPL)" "1"
-       PKG_BUILD_DEPS += cloog-ppl-devel ppl-devel
-       PKG_DEPS-gcc   += cloog-ppl>=0.15
-       CONFIGURE_ARGS += --with-cloog --with-ppl
-endif
-
-# Make the GCC target platform
-GCC_TARGET_PLATFORM = $(subst -gnu,,$(DISTRO_MACHINE))
-
-ifeq "$(DISTRO_ARCH)" "x86_64"
-       CONFIGURE_ARGS = --disable-multilib
-endif
-
-ifeq "$(DISTRO_ARCH)" "i686"
-       CONFIGURE_ARGS = --with-arch=$(DISTRO_ARCH) --with-tune=generic
-endif
-
-# Modify CFLAGS
-#  Remove -m32 and -m64
-CFLAGS := $(subst -m32,,$(CFLAGS))
-CFLAGS := $(subst -m64,,$(CFLAGS))
-#  Remove -march=i686
-CFLAGS := $(subst -march=i686,,$(CFLAGS))
-
-HARD_CFLAGS = -DEFAULT_PIE_SSP -DEFAULT_RELRO -DEFAULT_BIND_NOW
-
-export CFLAGS
-export CXXFLAGS = $(subst -Wall,,$(CFLAGS))
-
-PKG_TARBALL   += $(THISAPP).tar.gz
-
-PKG_PATCHES    = \
-       gcc46-hack.patch0 \
-       gcc46-c++-builtin-redecl.patch0 \
-       gcc46-pr33763.patch0 \
-       gcc46-libgomp-omp_h-multilib.patch0 \
-       gcc46-libtool-no-rpath.patch0 \
-       gcc46-cloog-dl.patch0 \
-       gcc46-pr38757.patch0 \
-       gcc46-no-add-needed.patch0 \
-       gcc46-unwind-debughook-sdt.patch0 \
-       gcc46-ppl-0.10.patch \
-       gcc46-Woverlength-string.patch0 \
-       gcc46-Woverlength-string-asm.patch0 \
+end
+
+# This is the at least required version of binutils.
+required_binutils_version = 2.21.51.0.8-1
+
+source_dl  = http://ftp.gnu.org/gnu/gcc/
+sources    = %{thisapp}.tar.gz
+
+patches
+       gcc46-hack.patch0
+       gcc46-c++-builtin-redecl.patch0
+       gcc46-pr33763.patch0
+       gcc46-libgomp-omp_h-multilib.patch0
+       gcc46-libtool-no-rpath.patch0
+       gcc46-cloog-dl.patch0
+       gcc46-pr38757.patch0
+       gcc46-no-add-needed.patch0
+       gcc46-unwind-debughook-sdt.patch0
+       gcc46-ppl-0.10.patch
+       gcc46-Woverlength-string.patch0
+       gcc46-Woverlength-string-asm.patch0
        gcc-4.6.0-piepatches-20110407.patch
-
-# A package for C++
-PKG_PACKAGES += $(PKG_NAME)-c++
-PKG_DEPS-$(PKG_NAME)-c++ = gcc libstdc++-devel
-define PKG_FILES-$(PKG_NAME)-c++
-       /usr/bin/*++
-       /usr/lib/gcc/*/*/cc1plus
-       /usr/share/man/man*/*++*
-endef
-
-# libgcc
-PKG_PACKAGES += libgcc
-define PKG_FILES-libgcc
-       /lib/libgcc*.so.*
-endef
-
-PKG_PACKAGES += libgcc-devel
-define PKG_FILES-libgcc-devel
-       /usr/lib/libgcc*.so
-endef
-
-# libstdc++
-PKG_PACKAGES += libstdc++
-define PKG_FILES-libstdc++
-       /usr/lib/libstdc++*.so.*
-endef
-
-PKG_PACKAGES += libstdc++-devel
-define PKG_FILES-libstdc++-devel
-       /usr/include/c++
-       /usr/lib/libstdc++*.so
-endef
-
-# libgomp
-PKG_PACKAGES += libgomp
-define PKG_FILES-libgomp
-       /usr/lib/libgomp*.so.*
-endef
-
-PKG_PACKAGES += libgomp-devel
-define PKG_FILES-libgomp-devel
-       /usr/lib/libgomp*.so
-       /usr/lib/libgomp.spec
-endef
-
-# libmudflap
-PKG_PACKAGES += libmudflap
-define PKG_FILES-libmudflap
-       /usr/lib/libmudflap*.so.*
-endef
-
-PKG_PACKAGES += libmudflap-devel
-define PKG_FILES-libmudflap-devel
-       /usr/lib/libmudflap*.so
-endef
-
-# libquadmath
-PKG_PACKAGES += libquadmath
-define PKG_FILES-libquadmath
-       /usr/lib/libquadmath*.so.*
-endef
-
-PKG_PACKAGES += libquadmath-devel
-define PKG_FILES-libquadmath-devel
-       /usr/lib/libquadmath*.so
-endef
-
-define STAGE_PREPARE_CMDS
-       -mkdir -v $(DIR_SRC)/gcc-build
-
-       # Remove unneeded features that will save some compile time
-       rm -rf $(DIR_APP)/lib{gfortran,java,objc} \
-               $(DIR_APP)/gcc/{fortran,java,objc,objcp}
-
-       # Apply a sed substitution that will suppress the installation of
-       # libiberty.a. The version of libiberty.a provided by Binutils will be used
-       # instead:
-       cd $(DIR_APP) && sed -i 's/install_to_$$(INSTALL_DEST) //' libiberty/Makefile.in
-
-       # Branding gcc
-       echo "$(DISTRO_NAME) $(PKG_VER)-$(PKG_RELEASE)" > $(DIR_APP)/gcc/DEV-PHASE
-
-       # Libgomp uses -Werror regardless of --disable-werror, and this will cause a
-       # build failure when -D_FORTIFY_SOURCE=2 causes build time warnings:
-       cd $(DIR_APP) && sed -e "s/-Werror//" -i libgomp/configure
-       
-       # The fixincludes script is known to occasionally erroneously attempt to
-       # "fix" the system headers installed so far. As the headers up to this point
-       # are known to not require fixing, issue the following command to prevent
-       # the fixincludes script from running:
-       cd $(DIR_APP) && sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
-
-       cd $(DIR_APP) && sed -i gcc/Makefile.in \
-               -e "s/-fno-exceptions/& -fno-asynchronous-unwind-tables/"
-
-       # we want to be able to control the pie patch logic via something other
-       # than ALL_CFLAGS...
-       cd $(DIR_APP) && sed -i gcc/Makefile.in \
-               -e '/^ALL_CFLAGS/iHARD_CFLAGS = ' \
-               -e 's|^ALL_CFLAGS = |ALL_CFLAGS = $$(HARD_CFLAGS) |'
-
-       # Enable the GCC hardening by default.
-       cd $(DIR_APP) && sed -i gcc/Makefile.in \
-               -e "s|^HARD_CFLAGS = |HARD_CFLAGS = $(HARD_CFLAGS) |"
-
-       # Compile the compile with -fPIC as well.
-       cd $(DIR_APP) && sed -i gcc/Makefile.in \
-               -e "s|^ESP_NOPIE_CFLAGS = .*|ESP_NOPIE_CFLAGS =|"
-endef
-
-define STAGE_BUILD
-       cd $(DIR_SRC)/gcc-build && \
-               CFLAGS="$(CFLAGS)" \
-               CXXFLAGS="$(CXXFLAGS)" \
-               XCFLAGS="$(CFLAGS)" \
-               TCFLAGS="$(CFLAGS)" \
-               ../$(THISAPP)/configure \
-                       --build=$(GCC_TARGET_PLATFORM) \
+end
+
+build
+       requires
+               autogen
+               binutils>=%{required_binutils_version}
+               dejagnu
+               elfutils-devel
+               expect
+               flex
+               glibc-devel
+               gmp-devel
+               libffi-devel
+               mpc-devel
+               mpfr-devel
+               texinfo
+               zlib-devel
+       end
+
+       # If cloog support is enabled, we require the devel packages for build.
+       if "%{build_cloog_ppl}" == "1"
+               requires += cloog-ppl-devel ppl-devel
+       end
+
+       # A couple of configure arguments depending on the architecture and
+       # configuration.
+       configure_options =
+
+       if "%{DISTRO_ARCH}" == "x86_64"
+               configure_options = --disable-multilib
+       end
+
+       if "%{DISTRO_ARCH}" == "i686"
+               configure_options = --with-arch=%{DISTRO_ARCH} --with-tune=generic
+       end
+
+       if "%{build_cloog_ppl}" == "1"
+               configure_options += --with-cloog --with-ppl
+       end
+
+       # CFLAGS for hardening.
+       HARD_CFLAGS = -DEFAULT_PIE_SSP -DEFAULT_RELRO -DEFAULT_BIND_NOW
+
+       prepare_cmds
+               mkdir -v %{DIR_SRC}/gcc-build
+
+               # Remove unneeded features that will save some compile time
+               rm -rf lib{gfortran,java,objc} gcc/{fortran,java,objc,objcp}
+
+               # Apply a sed substitution that will suppress the installation of
+               # libiberty.a. The version of libiberty.a provided by Binutils will be used
+               # instead:
+               sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in
+
+               # Branding gcc
+               echo "%{DISTRO_NAME} %{version}-%{release}" > gcc/DEV-PHASE
+
+               # Libgomp uses -Werror regardless of --disable-werror, and this will cause a
+               # build failure when -D_FORTIFY_SOURCE=2 causes build time warnings:
+               sed -e "s/-Werror//" -i libgomp/configure
+
+               # The fixincludes script is known to occasionally erroneously attempt to
+               # "fix" the system headers installed so far. As the headers up to this point
+               # are known to not require fixing, issue the following command to prevent
+               # the fixincludes script from running:
+               sed -i 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
+
+               sed -i gcc/Makefile.in \
+                       -e "s/-fno-exceptions/& -fno-asynchronous-unwind-tables/"
+
+               # we want to be able to control the pie patch logic via something other
+               # than ALL_CFLAGS...
+               sed -i gcc/Makefile.in \
+                       -e '/^ALL_CFLAGS/iHARD_CFLAGS = ' \
+                       -e 's|^ALL_CFLAGS = |ALL_CFLAGS = $(HARD_CFLAGS) |'
+
+               # Enable the GCC hardening by default.
+               sed -i gcc/Makefile.in \
+                       -e "s|^HARD_CFLAGS = |HARD_CFLAGS = %{HARD_CFLAGS} |"
+
+               # Compile the compiler with -fPIC as well.
+               sed -i gcc/Makefile.in \
+                       -e "s|^ESP_NOPIE_CFLAGS = .*|ESP_NOPIE_CFLAGS =|"
+
+               ./contrib/gcc_update --touch
+       end
+
+       build
+               cd %{DIR_SRC}/gcc-build
+
+               # Modify CFLAGS
+               OPT_FLAGS="%{CFLAGS}"
+               CFLAGS="%{CFLAGS}"
+               CFLAGS=$(echo ${CFLAGS} | sed -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g')
+               CFLAGS=$(echo ${CFLAGS} | sed -e 's/-m64//g;s/-m32//g;s/-m31//g')
+               CFLAGS=$(echo  ${CFLAGS} | sed -e 's/-march=i.86//g')
+               #CFLAGS=$(echo ${CFLAGS} | sed -e 's/ -pipe / /g')
+               CFLAGS=$(echo "${CFLAGS}" | sed -e 's/[[:blank:]]\+/ /g')
+               CXXFLAGS=$(echo  ${CFLAGS} | sed -e 's/ -Wall//g')
+
+               CFLAGS="${CFLAGS}" \
+               CXXFLAGS="${CXXFLAGS}" \
+               XCFLAGS="${CFLAGS}" \
+               TCFLAGS="${CFLAGS}" \
+               ../%{thisapp}/configure \
+                       --build=%{DISTRO_BUILDTARGET} \
                        --prefix=/usr \
                        --libexecdir=/usr/lib \
                        --mandir=/usr/share/man \
@@ -241,27 +168,122 @@ define STAGE_BUILD
                        --disable-libunwind-exceptions \
                        --enable-gnu-unique-object \
                        --enable-linker-build-id \
-                       $(CONFIGURE_ARGS)
-
-       cd $(DIR_SRC)/gcc-build && make profiledbootstrap #$(PARALLELISMFLAGS)
-endef
-
-#define STAGE_TEST
-#      cd $(DIR_SRC)/gcc-build && make check
-#      cd $(DIR_APP) && ./contrib/test_summary
-#endef
-
-define STAGE_INSTALL
-       cd $(DIR_SRC)/gcc-build && make install DESTDIR=$(BUILDROOT)
-
-       -mkdir -pv $(BUILDROOT)/lib
-       ln -sfv ../usr/bin/cpp $(BUILDROOT)/lib/cpp
-       ln -sfv gcc $(BUILDROOT)/usr/bin/cc
-
-       # Move libgcc_s to /lib
-       mv -vf $(BUILDROOT)/usr/lib/libgcc_s.so.1 $(BUILDROOT)/lib/
-       ln -svf ../../lib/libgcc_s.so.1 $(BUILDROOT)/usr/lib/libgcc_s.so
-
-       # Remove some GNU debugger stuff.
-       rm -vf $(BUILDROOT)/usr/lib/lib*.py
-endef
+                       %{configure_options}
+
+               # GCC does not support a parallel build.
+               make profiledbootstrap BOOT_CFLAGS="${OPT_FLAGS}" #%{PARALLELISMFLAGS}
+       end
+
+       #test
+       #       cd %{DIR_SRC}/gcc-build && make check
+       #       cd %{DIR_APP} && ./contrib/test_summary
+       #end
+
+       install
+               cd %{DIR_SRC}/gcc-build
+               make install DESTDIR=%{BUILDROOT}
+
+               mkdir -pv %{BUILDROOT}/lib
+               ln -sfv ../usr/bin/cpp %{BUILDROOT}/lib/cpp
+               ln -sfv gcc %{BUILDROOT}/usr/bin/cc
+
+               # Move libgcc_s to /lib
+               mv -vf %{BUILDROOT}/usr/lib/libgcc_s.so.1 %{BUILDROOT}/lib/
+               ln -svf ../../lib/libgcc_s.so.1 %{BUILDROOT}/usr/lib/libgcc_s.so
+
+               # Remove some GNU debugger stuff.
+               rm -vf %{BUILDROOT}/usr/lib/lib*.py
+       end
+end
+
+packages
+       package %{name}
+               groups += Build
+
+               requires
+                       binutils>=%{required_binutils_version}
+                       glibc-devel
+                       libgcc-devel
+               end
+
+               if "%{build_cloog_ppl}" == "1"
+                       requires += cloog-ppl>=0.15
+               end
+       end
+
+       # XXX add package descriptions
+
+       package %{name}-c++
+               requires = gcc=%{thisver} libstdc++-devel
+
+               files
+                       /usr/bin/*++
+                       /usr/lib/gcc/*/*/cc1plus
+                       /usr/share/man/man*/*++*
+               end
+       end
+
+       package libgcc
+               files
+                       /lib/libgcc*.so.*
+               end
+       end
+
+       package libgcc-devel
+               requires = libgcc=%{thisver}
+
+               files
+                       /usr/lib/libgcc*.so
+               end
+       end
+
+       package libstdc++
+               files
+                       /usr/lib/libstdc++*.so.*
+               end
+       end
+
+       package libstdc++-devel
+               files
+                       /usr/include/c++
+                       /usr/lib/libstdc++*.so
+               end
+       end
+
+       package libgomp
+               files
+                       /usr/lib/libgomp*.so.*
+               end
+       end
+
+       package libgomp
+               files
+                       /usr/lib/libgomp*.so
+                       /usr/lib/libgomp.spec
+               end
+       end
+
+       package libmudflap
+               files
+                       /usr/lib/libmudflap*.so.*
+               end
+       end
+
+       package libmudflap-devel
+               files
+                       /usr/lib/libmudflap*.so
+               end
+       end
+
+       package libquadmath
+               files
+                       /usr/lib/libquadmath*.so.*
+               end
+       end
+
+       package libquadmath-devel
+               files
+                       /usr/lib/libquadmath*.so
+               end
+       end
+end
index 1f1368021fb5d04c69eecf9f6c17be1f9c6b0b04..f09032ecf3bf2ce78438270cb2082953d35f4d49 100644 (file)
@@ -1,52 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gdb
-PKG_VER        = 7.2
-PKG_REL        = 0
+name       = gdb
+version    = 7.2
+release    = 1
 
-PKG_MAINTAINER = 
-PKG_GROUPS     = Development/Debuggers
-PKG_URL        = http://gnu.org/software/gdb/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A GNU source-level debugger for C, C++, Java and other languages.
+groups     = Development/Debuggers
+url        = http://gnu.org/software/gdb/
+license    = GPLv3+
+summary    = A GNU source-level debugger for C, C++, Java and other languages.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-PKG_BUILD_DEPS+= ncurses-devel readline-devel zlib-devel
-PKG_DEPS      += python
-
-define PKG_DESCRIPTION
+description
        GDB, the GNU debugger, allows you to debug programs written in C, C++, \
        Java, and other languages, by executing them in a controlled fashion \
        and printing their data.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-        --disable-werror
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               ncurses-devel
+               readline-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man \
+               --disable-werror
+end
+
+packages
+       package %{name}
+               requires = python
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b643bd41aac3c3a9fd19bd1166ae4cc3327f58c5..30404d3911f5f4d82d15d81477936170bb7269f9 100644 (file)
@@ -1,58 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = gdbm
+version    = 1.8.3
+release    = 1
 
-PKG_NAME       = gdbm
-PKG_VER        = 1.8.3
-PKG_REL        = 0
+groups     = Development/Tools
+url        = http://www.gnu.org/software/gdbm/
+license    = GPL
+summary    = The GDBM package contains the GNU Database Manager.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/gdbm/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = The GDBM package contains the GNU Database Manager.
-
-define PKG_DESCRIPTION
+description
        The GDBM package contains the GNU Database Manager. This is a disk file \
        format database which stores key/data-pairs in single files. The actual \
        data of any record being stored is indexed by a unique key, which can be \
        retrieved in less time than if it was stored in a text file.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += --mandir=/usr/share/man
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i Makefile.* \
-               -e "s/^BINOWN = .*/BINOWN = root/" \
-               -e "s/^BINGRP = .*/BINGRP = root/"
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install install-compat INSTALL_ROOT=$(BUILDROOT)
-endef
+end
+
+source_dl  =
+
+build
+       configure_options += --mandir=/usr/share/man
+
+       prepare_cmds
+               sed -i Makefile.* \
+                       -e "s/^BINOWN = .*/BINOWN = root/" \
+                       -e "s/^BINGRP = .*/BINGRP = root/"
+       end
+
+       install
+               make install install-compat INSTALL_ROOT=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index e71351e2f7f4778f6bedeedfd97d06d089ad281f..91b0f8e9eaf4e7e76e016fc51a36efac27b451a0 100644 (file)
@@ -1,42 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gettext
-PKG_VER        = 0.18.1.1
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.gnu.org/software/gettext/
-PKG_LICENSE    = GPLv3 LGPL2+
-PKG_SUMMARY    = GNU libraries and utilities for producing multi-lingual messages.
+name       = gettext
+version    = 0.18.1.1
+release    = 1
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+groups     = System/Base
+url        = http://www.gnu.org/software/gettext/
+license    = GPLv3 LGPL2+
+summary    = GNU libraries and utilities for producing multi-lingual messages.
 
-define PKG_DESCRIPTION
+description
        The GNU gettext package provides a set of tools and documentation for \
        producing multi-lingual messages in programs. Tools include a set of \
        conventions about how programs should be written to support message \
@@ -47,17 +23,32 @@ define PKG_DESCRIPTION
        library and tools for creating, using, and modifying natural language \
        catalogs and is a powerful and simple method for internationalizing \
        programs.
-endef
-
-PKG_BUILD_DEPS+= bison libxml2-devel
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --enable-shared \
-       --disable-rpath
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+               libxml2-devel
+       end
+
+       configure_options += \
+               --disable-static \
+               --enable-shared \
+               --disable-rpath
+
+# Disable testsuite - it's broken ( readlink test )
+#      test
+#              make check
+#      end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 573e742c2ce35f752f0de271a4cf3eecaefefe18..9922894b3ce300f789eb7180bb8f15ae72b28e27 100644 (file)
@@ -1,40 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = ghostscript
+version    = 9.02
+release    = 1
 
-PKG_NAME       = ghostscript
-PKG_VER        = 9.02
-PKG_REL        = 1
+groups     = Applications/Printing
+url        = http://ghostscript.com
+license    = GPL
+summary    = An interpreter for the PostScript language and for PDF.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Printing
-PKG_URL        = http://ghostscript.com
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = An interpreter for the PostScript language and for PDF.
-
-define PKG_DESCRIPTION
+description
        Ghostscript is a package of software that provides:\
        \
        * An interpreter for the PostScript (TM) language, with the ability to \
@@ -49,11 +27,18 @@ define PKG_DESCRIPTION
          graphics and filtering (data compression / decompression \
          / conversion) capabilities that appear as primitive operations in \
          the PostScript language and in PDF.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-CONFIGURE_OPTIONS += \
+build
+       configure_options += \
                --without-omni
 
-PARALLELISMFLAGS = # Disable this
+       PARALLELISMFLAGS = # Disable this
+end
+
+packages
+       package %{name}
+       end
+end
index 78ae5905bc5550cace1790ed8423c93dedc7d330..2317c878c11001297633d5a73bccfd2af0540b7e 100644 (file)
@@ -1,69 +1,67 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = git
-PKG_VER        = 1.7.3.2
-PKG_REL        = 1
+name       = git
+version    = 1.7.3.2
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://git-scm.com/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Fast Version Control System.
+groups     = Development/Tools
+url        = http://git-scm.com/
+license    = GPLv2
+summary    = Fast Version Control System.
 
-PKG_BUILD_DEPS+= expat-devel gettext libcurl-devel openssl-devel perl-devel \
-       zlib-devel
-PKG_DEPS      += less openssh-clients rsync /usr/bin/vi
-
-define PKG_DESCRIPTION
+description
        Git is a fast, scalable, distributed revision control system with an \
        unusually rich command set that provides both high-level operations \
        and full access to internals.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               expat-devel
+               gettext
+               libcurl-devel
+               openssl-devel
+               perl-devel
+               zlib-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+       prepare_cmds
+               echo "CFLAGS = %{CFLAGS}" > %{DIR_APP}/config.mak
+               echo "BLK_SHA1 = 1" >> %{DIR_APP}/config.mak
+               echo "NEEDS_CRYPTO_WITH_SSL = 1" >> %{DIR_APP}/config.mak
+               echo "NO_PYTHON = 1" >> %{DIR_APP}/config.mak
+               echo "NO_TCLTK = 1" >> %{DIR_APP}/config.mak
+               echo "ETC_GITCONFIG = /etc/gitconfig" >> %{DIR_APP}/config.mak
+               echo "DESTDIR = %{BUILDROOT}" >> %{DIR_APP}/config.mak
+               echo "INSTALL = install -p" >> %{DIR_APP}/config.mak
+               echo "GITWEB_PROJECTROOT = /var/lib/git" >> %{DIR_APP}/config.mak
+               echo "htmldir = /usr/share/doc/%{thisapp}" >> %{DIR_APP}/config.mak
+               echo "prefix = /usr" >> %{DIR_APP}/config.mak
+               echo "gitwebdir = /var/www/git" >> %{DIR_APP}/config.mak
+               echo "gitexecdir = lib/git-core" >> %{DIR_APP}/config.mak
+       end
 
-define STAGE_PREPARE_CMDS
-       echo "CFLAGS = $(CFLAGS)" > $(DIR_APP)/config.mak
-       echo "BLK_SHA1 = 1" >> $(DIR_APP)/config.mak
-       echo "NEEDS_CRYPTO_WITH_SSL = 1" >> $(DIR_APP)/config.mak
-       echo "NO_PYTHON = 1" >> $(DIR_APP)/config.mak
-       echo "NO_TCLTK = 1" >> $(DIR_APP)/config.mak
-       echo "ETC_GITCONFIG = /etc/gitconfig" >> $(DIR_APP)/config.mak
-       echo "DESTDIR = $(BUILDROOT)" >> $(DIR_APP)/config.mak
-       echo "INSTALL = install -p" >> $(DIR_APP)/config.mak
-       echo "GITWEB_PROJECTROOT = /var/lib/git" >> $(DIR_APP)/config.mak
-       echo "htmldir = /usr/share/doc/$(THISAPP)" >> $(DIR_APP)/config.mak
-       echo "prefix = /usr" >> $(DIR_APP)/config.mak
-       echo "gitwebdir = /var/www/git" >> $(DIR_APP)/config.mak
-       echo "gitexecdir = lib/git-core" >> $(DIR_APP)/config.mak
-endef
+       build
+               make %{PARALLELISMFLAGS}
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+       make_install_targets += INSTALLDIRS=vendor
+end
 
-STAGE_INSTALL_TARGETS += INSTALLDIRS=vendor
+packages
+       package %{name}
+               requires
+                       less
+                       openssh-clients
+                       rsync
+                       /usr/bin/vi
+               end
+       
+       end
+end
index c4bbbcea8a5135e81c03643ae2dac17647a6ddf3..08c056af71824e8bb027f93955f2de5d0bddf285 100644 (file)
@@ -1,65 +1,59 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = glib
-PKG_VER        = 2.29.14
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gtk.org
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = A library of handy utility functions.
+name       = glib
+version    = 2.29.14
+release    = 1
 
-PKG_BUILD_DEPS+= gettext libffi-devel libselinux-devel pcre-devel pkg-config\
-        zlib-devel
+groups     = System/Libraries
+url        = http://www.gtk.org
+license    = LGPLv2+
+summary    = A library of handy utility functions.
 
-define PKG_DESCRIPTION
+description
        GLib is the low-level core library that forms the basis \
        for projects such as GTK+ and GNOME. It provides data structure \
        handling for C, portability wrappers, and interfaces for such runtime \
        functionality as an event loop, threads, dynamic loading, and an \
        object system.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.xz
-
-PKG_PACKAGES  += $(PKG_NAME)2-devel
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --with-pcre=system
-
-define STAGE_INSTALL_CMDS
-       cd $(DIR_APP) && ./mkinstalldirs $(BUILDROOT)/lib
-       cd $(BUILDROOT)/usr/lib && for name in glib gobject gmodule gthread gio; do \
-               mv -v lib$${name}-2.0.so.* ../../lib; \
-               ln -svf ../../lib/lib$${name}-2.0.so.*.* lib$${name}-2.0.so; \
-       done
-
-       -mkdir -pv $(BUILDROOT)/etc/profile.d/
-       cp -vf $(DIR_SOURCE)/glib2-locale.sh $(BUILDROOT)/etc/profile.d/
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               gettext
+               libffi-devel
+               libselinux-devel
+               pcre-devel
+               pkg-config
+               zlib-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --with-pcre=system
+
+       install_cmds
+               ./mkinstalldirs %{BUILDROOT}/lib
+               cd %{BUILDROOT}/usr/lib && for name in glib gobject gmodule gthread gio; do \
+                       mv -v lib${name}-2.0.so.* ../../lib; \
+                       ln -svf ../../lib/lib${name}-2.0.so.*.* lib${name}-2.0.so; \
+               done
+
+               mkdir -pv %{BUILDROOT}/etc/profile.d/
+               cp -vf %{DIR_SOURCE}/glib2-locale.sh %{BUILDROOT}/etc/profile.d/
+       end
+end
+
+packages
+       package %{name}2
+       end
+       
+       package %{name}2-devel
+               template DEVEL
+       end
+end
index 70eb14f08a7bf03e4c599687f8b3cfb629ecea7e..73372aa50e60dd14194e2d6076f574086d6893e1 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = glibc
-PKG_VER        = 2.14
-PKG_REL        = 1
-
 # TODO tzdata
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = System/Base
-PKG_URL        = http://sources.redhat.com/glibc/
-PKG_LICENSE    = GPLv2+ LGPLv2+
-PKG_SUMMARY    = The GNU libc libraries.
-
-PKG_BUILD_DEPS+= audit-devel autoconf automake gettext libcap-devel \
-       libselinux-devel texinfo
-
-define PKG_DESCRIPTION
-       The glibc package contains standard libraries which are used by \
-       multiple programs on the system. In order to save disk space and \
-       memory, as well as to make upgrading easier, common system code is \
-       kept in one place and shared between programs. This particular package \
-       contains the most important sets of shared libraries: the standard C \
-       library and the standard math library. Without these two libraries, a \
+name       = glibc
+version    = 2.14
+release    = 1
+
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = System/Base
+url        = http://sources.redhat.com/glibc/
+license    = GPLv2+ LGPLv2+
+summary    = The GNU libc libraries.
+
+description
+       The glibc package contains standard libraries which are used by
+       multiple programs on the system. In order to save disk space and
+       memory, as well as to make upgrading easier, common system code is
+       kept in one place and shared between programs. This particular package
+       contains the most important sets of shared libraries: the standard C
+       library and the standard math library. Without these two libraries, a
        Linux system will not function.
-endef
-
-# Build glibc with custom cflags
-GLIBC_FLAGS = -O3 -g -fasynchronous-unwind-tables -DNDEBUG -DPIC
-
-ifeq "$(DISTRO_ARCH)" "i686"
-       GLIBC_FLAGS += -march=i686 -mtune=generic
-endif
-
-ifeq "$(DISTRO_ARCH)" "x86_64"
-       GLIBC_FLAGS += -mtune=generic
-endif
-
-export CFLAGS    = $(GLIBC_FLAGS)
-export CXXFLAGS  = $(GLIBC_FLAGS)
-
-GLIBC_TARGET_PLATFORM = $(subst -gnu,,$(DISTRO_MACHINE))
-OPTIMIZED_KERNEL = 2.6.32
-
-PKG_OBJECTS   += $(THISAPP).tar.xz
-
-# $(THISAPP)-pt_pax-1.patch - Support for PT_PaX markings.
-
-# $(THISAPP)-strlcpy_strlcat-1.patch
-#      This patch adds the strlcpy and strlcat functions and manual pages to Glibc.
-#      A paper written about these functions is available here:
-#      http://www.courtesan.com/todd/papers/strlcpy.html. The Glibc project has
-#      refused to add these functions, and that mail tread starts here:
-#      http://sources.redhat.com/ml/libc-alpha/2000-08/msg00052.html. Linus Torvalds
-#      has added a similar function to the Linux kernel, and that mail thread is
-#      here: http://lwn.net/Articles/33814/. The strlcpy() and strlcat() functions
-#      are replacements for strncpy() and strncat(). The controversy of these
-#      functions is that strlcpy() and strlcat() copy the source data to the
-#      destination buffer until the destination is full, and discards the rest of
-#      the data if there is any. This means that these functions will never
-#      overflow. The basis for the Glibc team's refusal to add these functions is
-#      that they silently hide programing errors, and they have a higher performance
-#      hit than strncpy() and strncat(). These functions should not be needed in a
-#      perfect world, but were invented to deal with the real world. Many packages
-#      will use these functions if they are found, such as Perl and many BLFS
-#      packages. These functions do reduce buffer overflows, and so they are
-#      recommended. After installing this patch no other effort is needed to use it.
-#      Packages will use autotools to detect whether they are available or not.
-
-# $(THISAPP)-asprintf_reset2null-1.patch
-#      The asprintf(3) and vasprintf(3) functions are GNU extentions, not defined
-#      by C or Posix standards. In Glibc these functions leave (char **strp) undefined
-#      after an error. This patch resets (char **strp) to NULL after an error, for
-#      sanity. 
-
-# $(THISAPP)-issetugid-1.patch
-#      This patch adds the issetugid() function, which is a front-end to the
-#      __libc_enable_secure() dynamic linker private function. This function
-#      reports whether the program is running with matching real and effective
-#      ID's, or not, to determine whether the program is running with set-uid or
-#      set-gid privileges. Many packages will search for issetugid() and use it if
-#      found, such as Ncurses. This is safer than allowing each program to
-#      determine privileges itself because it is tested at a lower level which is
-#      not manipulatable by the user. Apply this patch with the following command: 
-
-# $(THISAPP)-localedef_trampoline-1.patch
-#      The next patch modifies the localedef program so it does not use GCC
-#      Trampoline code (http://gcc.gnu.org/onlinedocs/gccint/Trampolines.html),
-#      which relies on an executable stack to run. Without this patch the localedef
-#      program will be killed if it is run on a kernel with PaX memory protection.
-#      See http://pax.grsecurity.net/docs/pageexec.txt and
-#      http://pax.grsecurity.net/docs/segmexec.txt for more information.
-
-# $(THISAPP)-sanitize_env.patch
-#      This patch resticts the environment, particularly with setuid programs. 
-
-# $(THISAPP)-mktemp_urandom.patch
-#      The patch modifies __gen_tempname(), used by the mk*temp()/tmpnam() family
-#      of functions, to use /dev/urandom instead of hp-timing, gettimeofday(), or
-#      getpid(): 
-
-# $(THISAPP)-res_randomid.patch
-#      The res_randomid() function is a pseudo-random number generator, using
-#      getpid() for entropy. See: http://www.openbsd.org/advisories/res_random.txt
-#      for the vulnerability. This patch uses /dev/urandom instead.
-
-# $(THISAPP)-resolv_response_length.patch
-#      This patch does a check on the buffer size of res_* functions.
-
-QUALITY_AGENT_RPATH_ALLOW_ORIGIN=yes
-
-define STAGE_PREPARE
-       @cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(firstword $(PKG_OBJECTS))
-       @mkdir $(DIR_SRC)/glibc-build
-
-       # In the vi_VN.TCVN locale, bash enters an infinite loop at startup. It is
-       # unknown whether this is a bash bug or a Glibc problem. Disable
-       # installation of this locale in order to avoid the problem.
-       cd $(DIR_APP) && sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED
-
-       # The ldd shell script contains Bash-specific syntax. Change its default
-       # program interpreter to /bin/bash in case another /bin/sh is installed.
-       cd $(DIR_APP) && sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
-
-       $(DO_PATCHES)
-
-       # We don't install pt_chown(1) on the final system, so why install it to
-       # $(TOOLS_DIR):
-       cd $(DIR_APP) && sed -e "/^install.*pt_chown/d" -i login/Makefile
-
-       # Build nscd with -fstack-protector-all, instead of -fstack-protector:
-       cd $(DIR_APP) && sed -e "s/fstack-protector/&-all/" -i nscd/Makefile
-
-       # We don't need to set -march=i?86 in confparams because GCC was built with
-       # --with-arch=i?86.
-
-       cat $(DIR_SOURCE)/$(PKG_NAME)-stack_chk_fail.c \
-               > $(DIR_APP)/debug/stack_chk_fail.c
-
-       #cd $(DIR_APP) && \
-       #       sed -e "s|libs -o|libs -L/usr/lib -Wl,-dynamic-linker=$(shell readelf -l /bin/sh | sed -n 's@.*interpret.*$(TOOLS_DIR)\(.*\)]$$@\1@p') -o|" \
-       #       -i scripts/test-installation.pl
-
-       # Use gnu hash style
-       cd $(DIR_APP) && sed -i Makeconfig \
-               -e "s/-Wl,--hash-style=both/-Wl,--hash-style=gnu -Wl,-O1/"
-
-       # stdlib/tst-putenvmod is not linked against libc.
-       cd $(DIR_APP) && sed -i stdlib/Makefile \
-               -e "s/^CFLAGS-tst-putenvmod.c.*/& -fno-stack-protector/g"
-
-       # stdio-common/bug22 hits timeout.
-       cd $(DIR_APP) && sed -i stdio-common/bug22.c \
-               -e "s/#define TIMEOUT.*/#define TIMEOUT 300/"
-
-       # These tests don't work or need more investigation:
-       cd $(DIR_APP) && sed -i dlfcn/Makefile -e "s/default //g"
-
-       cd $(DIR_APP) && sed -i nptl/Makefile \
-               -e "s/tst-mutex5 //g" \
-               -e "s/tst-mutex5a //g" \
-               -e "s/tst-cond11 //g" \
-               -e "s/tst-rwlock6 //g" \
-               -e "s/tst-rwlock7 //g" \
-               -e "s/tst-sem5 //g" \
-               -e "s/tst-cancelx4 //g" \
-               -e "s/tst-cancelx5 //g" \
-               -e "s/tst-cancelx10 //g" \
-               -e "s/tst-cancelx18 //g" \
-               -e "s/tst-signal1 //g"
-
-       # These are known to fail on x86:
-       cd $(DIR_APP) && sed -i rt/Makefile \
-               -e "s/tst-cpuclock1 //g" \
-               -e "s/tst-cpuclock2 //g"
-
-       cd $(DIR_APP) && sed -i elf/Makefile \
-               -e "s/tst-tls1 //g" \
-               -e "s/tst-tls1-static //g" \
-               -e "s/tst-tls2 //g" \
-               -e "s/tst-tls2-static //g" \
-               -e "s/tst-tls3 //g" \
-               -e "s/resolvfail //g" \
-               -e "s/constload1 //g" \
-               -e "s/order //g" \
-               -e "s/lateglobal //g" \
-               -e "s/dblload //g" \
-               -e "s/dblunload //g" \
-               -e "s/reldep6 //g" \
-               -e "s/circleload1 //g" \
-               -e "s/tst-global1 //g" \
-               -e "s/tst-audit2 //g" \
-               -e "s/check-localplt //g" \
-               -e "s/check-localplt.out$$//g"
-
-       cd $(DIR_APP) && sed -i signal/Makefile \
-               -e "s/tst-sigset2//g"
-
-       #cd $(DIR_APP) && sed -i configure \
-       #       -e "s/-Werror -fstack-protector/-fstack-protector/"
-endef
-
-define STAGE_BUILD
-       cd $(DIR_SRC)/glibc-build && \
-               CFLAGS="$(CFLAGS) -fno-asynchronous-unwind-tables" \
-               ../$(THISAPP)/configure \
-                       --build=$(GLIBC_TARGET_PLATFORM) \
-                       --host=$(GLIBC_TARGET_PLATFORM) \
+end
+
+source_dl  = http://ftp.gnu.org/gnu/glibc/
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               audit-devel
+               autoconf
+               automake
+               gettext
+               libcap-devel
+               libselinux-devel
+               texinfo
+       end
+
+       # Build glibc with custom cflags
+       GLIBC_FLAGS = -O3 -g -fasynchronous-unwind-tables -DNDEBUG -DPIC
+
+       if "%{DISTRO_ARCH}" == "i686"
+               GLIBC_FLAGS += -march=i686 -mtune=generic
+       elif "%{DISTRO_ARCH}" == "x86_64"
+               GLIBC_FLAGS += -mtune=generic
+       end
+
+       export CFLAGS   = %{GLIBC_FLAGS}
+       export CXXFLAGS = %{GLIBC_FLAGS}
+
+       # Optimize glibc for kernel
+       OPTIMIZED_KERNEL = 2.6.32
+
+       export QUALITY_AGENT_RPATH_ALLOW_ORIGIN=yes
+
+       prepare_cmds
+               # In the vi_VN.TCVN locale, bash enters an infinite loop at startup. It is
+               # unknown whether this is a bash bug or a Glibc problem. Disable
+               # installation of this locale in order to avoid the problem.
+               sed -i '/vi_VN.TCVN/d' localedata/SUPPORTED
+
+               # The ldd shell script contains Bash-specific syntax. Change its default
+               # program interpreter to /bin/bash in case another /bin/sh is installed.
+               sed -i 's|@BASH@|/bin/bash|' elf/ldd.bash.in
+
+               # We don't install pt_chown(1) on the final system, so why install it to
+               # $(TOOLS_DIR):
+               sed -e "/^install.*pt_chown/d" -i login/Makefile
+
+               # Build nscd with -fstack-protector-all, instead of -fstack-protector:
+               sed -e "s/fstack-protector/&-all/" -i nscd/Makefile
+
+               cat %{DIR_SOURCE}/glibc-stack_chk_fail.c > debug/stack_chk_fail.c
+
+               # Use gnu hash style
+               sed -i Makeconfig \
+                       -e "s/-Wl,--hash-style=both/-Wl,--hash-style=gnu -Wl,-O1/"
+
+               # stdlib/tst-putenvmod is not linked against libc.
+               sed -i stdlib/Makefile \
+                       -e "s/^CFLAGS-tst-putenvmod.c.*/& -fno-stack-protector/g"
+
+               # stdio-common/bug22 hits timeout.
+               sed -i stdio-common/bug22.c \
+                       -e "s/#define TIMEOUT.*/#define TIMEOUT 300/"
+
+               # These tests don't work or need more investigation:
+               sed -i dlfcn/Makefile -e "s/default //g"
+
+               sed -i nptl/Makefile \
+                       -e "s/tst-mutex5 //g" \
+                       -e "s/tst-mutex5a //g" \
+                       -e "s/tst-cond11 //g" \
+                       -e "s/tst-rwlock6 //g" \
+                       -e "s/tst-rwlock7 //g" \
+                       -e "s/tst-sem5 //g" \
+                       -e "s/tst-cancelx4 //g" \
+                       -e "s/tst-cancelx5 //g" \
+                       -e "s/tst-cancelx10 //g" \
+                       -e "s/tst-cancelx18 //g" \
+                       -e "s/tst-signal1 //g"
+
+               # These are known to fail on x86:
+               sed -i rt/Makefile \
+                       -e "s/tst-cpuclock1 //g" \
+                       -e "s/tst-cpuclock2 //g"
+
+               sed -i elf/Makefile \
+                       -e "s/tst-tls1 //g" \
+                       -e "s/tst-tls1-static //g" \
+                       -e "s/tst-tls2 //g" \
+                       -e "s/tst-tls2-static //g" \
+                       -e "s/tst-tls3 //g" \
+                       -e "s/resolvfail //g" \
+                       -e "s/constload1 //g" \
+                       -e "s/order //g" \
+                       -e "s/lateglobal //g" \
+                       -e "s/dblload //g" \
+                       -e "s/dblunload //g" \
+                       -e "s/reldep6 //g" \
+                       -e "s/circleload1 //g" \
+                       -e "s/tst-global1 //g" \
+                       -e "s/tst-audit2 //g" \
+                       -e "s/check-localplt //g" \
+                       -e "s/check-localplt.out$$//g"
+
+               sed -i signal/Makefile \
+                       -e "s/tst-sigset2//g"
+       end
+
+       build
+               mkdir %{DIR_SRC}/glibc-build
+               cd %{DIR_SRC}/glibc-build
+
+               CFLAGS="${CFLAGS} -fno-asynchronous-unwind-tables" \
+               ../%{thisapp}/configure \
+                       --build=%{DISTRO_BUILDTARGET} \
+                       --host=%{DISTRO_BUILDTARGET} \
                        --prefix=/usr \
                        --libexecdir=/usr/lib/glibc \
                        --disable-profile \
                        --enable-add-ons \
-                       --enable-kernel=$(OPTIMIZED_KERNEL) \
+                       --enable-kernel=%{OPTIMIZED_KERNEL} \
                        --with-selinux \
                        --disable-werror \
                        --enable-bind-now \
@@ -244,156 +153,157 @@ define STAGE_BUILD
                        --with-gd \
                        --with-nss-crypt
 
-       cd $(DIR_SRC)/glibc-build && sed -i config.make \
-               -e "s/^build-pic-default=.*/build-pic-default=yes/"
-
-       # Our GCC is already passing -fPIC, and that's all we want for the libraries.
-       # LDFLAGS.so is appended to so we don't build shared libraries with
-       # DT_TEXTREL (and to tell us if something goes wrong). For now we only build
-       # the libraries, not the programs:
-       echo "build-programs=no" \
-               >> $(DIR_SRC)/glibc-build/configparms
-
-       cd $(DIR_SRC)/glibc-build && make PARALLELMFLAGS=$(PARALLELISMFLAGS) \
-               CFLAGS="$(CFLAGS) -fno-stack-protector -U_FORTIFY_SOURCE" \
-               CXXFLAGS="$(CXXFLAGS) -fno-stack-protector -U_FORTIFY_SOURCE"
-
-       # Then build the programs with hardening, so everything possible in
-       # $(TOOLS_DIR) is hardened:
-       echo "# Nothing in here :D" >  $(DIR_SRC)/glibc-build/configparms
-       cd $(DIR_SRC)/glibc-build && make PARALLELMFLAGS=$(PARALLELISMFLAGS) \
-               CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)"
-endef
-
-#define STAGE_TEST
-#      cd $(DIR_SRC)/glibc-build && TIMEOUTFACTOR=16 make check \
-#              CFLAGS="$(CFLAGS) -fno-stack-protector -U_FORTIFY_SOURCE" \
-#              CXXFLAGS="$(CXXFLAGS) -fno-stack-protector -U_FORTIFY_SOURCE"
-#endef
-
-define STAGE_INSTALL
-       cd $(DIR_SRC)/glibc-build && make install install_root=$(BUILDROOT)
-
-       # Locales
-       -mkdir -pv $(BUILDROOT)/usr/lib/locale
-       # This would install all locales that are supported
-       cd $(DIR_SRC)/glibc-build && make localedata/install-locales install_root=$(BUILDROOT)
-
-       # Timezone
-       cp -v --remove-destination $(BUILDROOT)/usr/share/zoneinfo/GMT $(BUILDROOT)/etc/localtime
-
-       # Configuration
-       cp -vf $(DIR_SOURCE)/{ld.so.conf,nsswitch.conf} $(BUILDROOT)/etc
-       -mkdir -pv $(BUILDROOT)/etc/{default,ld.so.conf.d}
-       install -p -m644 $(DIR_APP)/nis/nss $(BUILDROOT)/etc/default/nss
-
-       # Remove unused binaries
-       rm -vf $(BUILDROOT)/sbin/sln \
-               $(BUILDROOT)/usr/bin/rpcinfo
-
-       # Don't distribute linker cache
-       rm -vf $(BUILDROOT)/etc/ld.so.cache
-
-       # Include /usr/lib/gconv/gconv-modules.cache
-       > $(BUILDROOT)/usr/lib/gconv/gconv-modules.cache
-       chmod 644 $(BUILDROOT)/usr/lib/gconv/gconv-modules.cache
-
-       strip -g $(BUILDROOT)/usr/lib/*.o
-
-       # Move some libs to correct place
-       mv -v $(BUILDROOT)/lib/lib{memusage,pcprofile}.so $(BUILDROOT)/usr/lib/
-endef
-
-### Packages
-
-# glibc-common
-PKG_PACKAGES  += $(PKG_NAME)-common
-PKG_DEPS      += $(PKG_NAME)-common
-
-define PKG_FILES-$(PKG_NAME)-common
-       /usr/bin
-       /usr/sbin
-       /usr/share
-       !/usr/share/zoneinfo
-endef
-
-# glibc-devel
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-PKG_SUMMARY-$(PKG_NAME)-devel = \
-       Object files for development using standard C libraries.
-PKG_GROUP-$(PKG_NAME)-devel = Development/Libraries
-PKG_DEPS-$(PKG_NAME)-devel += $(PKG_NAME)-headers
-
-define PKG_DESCRIPTION-$(PKG_NAME)-devel
-       The glibc-devel package contains the object files necessary
-       for developing programs which use the standard C libraries (which are
-       used by nearly all programs).  If you are developing programs which
-       will use the standard C libraries, your system needs to have these
-       standard object files available in order to create the
-       executables.
-
-       Install glibc-devel if you are going to develop programs which will
-       use the standard C libraries.
-endef
-
-PKG_FILES-$(PKG_NAME)-devel += /usr/lib/*.a /usr/lib/*.o
-
-# glibc-headers
-PKG_PACKAGES  += $(PKG_NAME)-headers
-
-PKG_DEPS-$(PKG_NAME)-headers += kernel-headers
-
-define PKG_DESCRIPTION-$(PKG_NAME)-heasders
-       The glibc-headers package contains the header files necessary
-       for developing programs which use the standard C libraries (which are
-       used by nearly all programs).  If you are developing programs which
-       will use the standard C libraries, your system needs to have these
-       standard header files available in order to create the
-       executables.
-
-       Install glibc-headers if you are going to develop programs which will
-       use the standard C libraries.
-endef
-
-define PKG_FILES-$(PKG_NAME)-headers
-       /usr/include
-       !/usr/include/linuxthreads
-       !/usr/include/gnu/stubs-[32164]*.h
-endef
-
-# nscd
-PKG_PACKAGES  += nscd
-
-PKG_SUMMARY-nscd = A Name Service Caching Daemon (nscd).
-PKG_GROUP-nscd   = System/Daemons
-
-define PKG_DESCRIPTION-nscd
-       Nscd caches name service lookups and can dramatically improve \
-       performance with NIS+, and may help with DNS as well.
-endef
-
-define PKG_FILES-nscd
-       /usr/sbin/nscd
-endef
-
-# glibc-utils
-PKG_PACKAGES  += $(PKG_NAME)-utils
-
-PKG_SUMMARY-$(PKG_NAME)-utils = Development utilities from GNU C library.
-PKG_GROUP-$(PKG_NAME)-utils   = Development/Tools
-define PKG_DESCRIPTION_$(PKG_NAME)-utils
-       The glibc-utils package contains memusage, a memory usage profiler, \
-       mtrace, a memory leak tracer and xtrace, a function call tracer \
-       which can be helpful during program debugging.
-endef
-
-define PKG_FILES-$(PKG_NAME)-utils
-       /usr/bin/memusage
-       /usr/bin/memusagestat
-       /usr/bin/mtrace
-       /usr/bin/pcprofiledump
-       /usr/bin/xtrace
-       /usr/lib/libmemusage.so
-       /usr/lib/libpcprofile.so
-endef
+               sed -i config.make \
+                       -e "s/^build-pic-default=.*/build-pic-default=yes/"
+
+               # Our GCC is already passing -fPIC, and that's all we want for the libraries.
+               # LDFLAGS.so is appended to so we don't build shared libraries with
+               # DT_TEXTREL (and to tell us if something goes wrong). For now we only build
+               # the libraries, not the programs:
+               echo "build-programs=no" >> configparms
+
+               make PARALLELMFLAGS=%{PARALLELISMFLAGS} \
+                       CFLAGS="%{CFLAGS} -fno-stack-protector -U_FORTIFY_SOURCE" \
+                       CXXFLAGS="%{CXXFLAGS} -fno-stack-protector -U_FORTIFY_SOURCE"
+
+               # Then build the programs with hardening, so everything possible in
+               # is hardened:
+               echo "# Nothing in here :D" > configparms
+               make PARALLELMFLAGS=%{PARALLELISMFLAGS} \
+                       CFLAGS="%{CFLAGS}" CXXFLAGS="%{CXXFLAGS}"
+       end
+
+       #test
+       #       cd $(DIR_SRC)/glibc-build
+       #       make check TIMEOUTFACTOR=16 \
+       #               CFLAGS="%{CFLAGS} -fno-stack-protector -U_FORTIFY_SOURCE" \
+       #               CXXFLAGS="%{CXXFLAGS} -fno-stack-protector -U_FORTIFY_SOURCE"
+       #end
+
+       install
+               cd %{DIR_SRC}/glibc-build
+               make install install_root=%{BUILDROOT}
+
+               # Locales
+               mkdir -pv %{BUILDROOT}/usr/lib/locale
+               # This would install all locales that are supported
+               make localedata/install-locales install_root=%{BUILDROOT}
+
+               # Timezone
+               cp -v --remove-destination %{BUILDROOT}/usr/share/zoneinfo/GMT \
+                       %{BUILDROOT}/etc/localtime
+
+               # Configuration
+               cp -vf %{DIR_SOURCE}/{ld.so.conf,nsswitch.conf} %{BUILDROOT}/etc
+               mkdir -pv %{BUILDROOT}/etc/{default,ld.so.conf.d}
+               install -p -m644 %{DIR_APP}/nis/nss %{BUILDROOT}/etc/default/nss
+
+               # Remove unused binaries
+               rm -vf %{BUILDROOT}/sbin/sln \
+                       %{BUILDROOT}/usr/bin/rpcinfo
+
+               # Don't distribute linker cache
+               rm -vf %{BUILDROOT}/etc/ld.so.cache
+
+               # Include /usr/lib/gconv/gconv-modules.cache
+               > %{BUILDROOT}/usr/lib/gconv/gconv-modules.cache
+               chmod 644 %{BUILDROOT}/usr/lib/gconv/gconv-modules.cache
+
+               strip -g %{BUILDROOT}/usr/lib/*.o
+
+               # Move some libs to correct place
+               mv -v %{BUILDROOT}/lib/lib{memusage,pcprofile}.so %{BUILDROOT}/usr/lib/
+       end
+end
+
+packages
+       package glibc
+               requires = glibc-common=%{thisver}      
+       end
+
+       package glibc-common
+               # XXX description and summary are missing
+
+               files
+                       /usr/bin
+                       /usr/sbin
+                       /usr/share
+                       !/usr/share/zoneinfo
+               end
+       end
+
+       package glibc-devel
+               summary = Object files for development using standard C libraries.
+               description
+                       The glibc-devel package contains the object files necessary
+                       for developing programs which use the standard C libraries (which are
+                       used by nearly all programs).  If you are developing programs which
+                       will use the standard C libraries, your system needs to have these
+                       standard object files available in order to create the
+                       executables.
+
+                       Install glibc-devel if you are going to develop programs which will
+                       use the standard C libraries.
+               end
+               group = Development/Libraries
+
+               requires = glibc-headers=%{thisver}
+
+               files = /usr/lib/*.a /usr/lib/*.o
+       end
+
+       package glibc-headers
+               description
+                       The glibc-headers package contains the header files necessary
+                       for developing programs which use the standard C libraries (which are
+                       used by nearly all programs).  If you are developing programs which
+                       will use the standard C libraries, your system needs to have these
+                       standard header files available in order to create the
+                       executables.
+
+                       Install glibc-headers if you are going to develop programs which will
+                       use the standard C libraries.
+               end
+
+               requires = kernel-headers
+
+               files
+                       /usr/include
+                       !/usr/include/linuxthreads
+                       !/usr/include/gnu/stubs-[32164]*.h
+               end
+       end
+
+       package nscd
+               summary = A Name Service Caching Daemon (nscd).
+               description
+                       Nscd caches name service lookups and can dramatically improve
+                       performance with NIS+, and may help with DNS as well.
+               end
+               group = System/Daemons
+
+               files
+                       /usr/sbin/nscd
+               end
+       end
+
+       package %{name}-utils
+               summary = Development utilities from GNU C library.
+               description
+                       The glibc-utils package contains memusage, a memory usage profiler,
+                       mtrace, a memory leak tracer and xtrace, a function call tracer
+                       which can be helpful during program debugging.
+               end
+               group = Development/Tools
+
+               files
+                       /usr/bin/memusage
+                       /usr/bin/memusagestat
+                       /usr/bin/mtrace
+                       /usr/bin/pcprofiledump
+                       /usr/bin/xtrace
+                       /usr/lib/libmemusage.so
+                       /usr/lib/libpcprofile.so
+               end
+       end
+end
index d096b992f6b93a5f9b740a690e1d1bc9db7a7c92..730e1f4c7893a1f8e6d655ecd6f406c12bb5f592 100644 (file)
@@ -1,40 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = gmp
+version    = 5.0.1
+release    = 0
 
-PKG_NAME       = gmp
-PKG_VER        = 5.0.1
-PKG_REL        = 0
+groups     = System/Libraries
+url        = http://gmplib.org/
+license    = LGPLv3+
+summary    = A GNU arbitrary precision library.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://gmplib.org/
-PKG_LICENSE    = LGPLv3+
-PKG_SUMMARY    = A GNU arbitrary precision library.
-
-define PKG_DESCRIPTION
+description
        The gmp package contains GNU MP, a library for arbitrary precision \
        arithmetic, signed integers operations, rational numbers and floating \
        point numbers. GNU MP is designed for speed, for both small and very \
@@ -42,32 +20,44 @@ define PKG_DESCRIPTION
        arithmetic type, it uses fast algorithms, it carefully optimizes \
        assembly code for many CPUs' most common inner loops, and it generally \
        emphasizes speed over simplicity/elegance in its operations.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
+end
 
-PKG_BUILD_DEPS+= gcc-c++ m4
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+build
+       requires
+               gcc-c++
+               m4
+       end
 
-ifeq "$(MACHINE)" "x86_64"
-       ABI = 64
-else
-       ABI = 32
-endif
+       build
+               if [ "%{MACHINE}" = "x86_64" ]; then
+                       ABI=64
+               else
+                       ABI=32
+               fi
 
-define STAGE_BUILD
-       cd $(DIR_APP) && \
-               ABI=$(ABI) \
+               ABI=%{ABI} \
                ./configure \
                        --prefix=/usr \
                        --enable-cxx \
                        --enable-mpbsd \
                        --disable-static
 
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 8ef75bb1595a3527ca9484a1ec20301a58c7a207..8e35ca8fd4dd8e9a2d7cce21a5ddbf7f3f362976 100644 (file)
@@ -1,52 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gnupg
-PKG_VER        = 2.0.17
-PKG_REL        = 0
+name       = gnupg
+version    = 2.0.17
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Security/Tools
-PKG_URL        = http://www.gnupg.org/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = Utility for secure communication and data storage.
+groups     = Security/Tools
+url        = http://www.gnupg.org/
+license    = GPLv3+
+summary    = Utility for secure communication and data storage.
 
-PKG_BUILD_DEPS+= libassuan-devel libcurl-devel libgcrypt-devel libksba-devel \
-       pinentry pth-devel zlib-devel
-
-define PKG_DESCRIPTION
+description
        The GnuPG 2 package is GNU's tool for secure communication and data \
        storage. It can be used to encrypt data and to create digital signatures. \
        It includes an advanced key management facility and is compliant with the \
        proposed OpenPGP Internet standard as described in RFC2440 and the S/MIME \
        standard as described by several RFCs.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --libexecdir=/usr/lib/gnupg2 \
-       --enable-standard-socket
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libassuan-devel
+               libcurl-devel
+               libgcrypt-devel
+               libksba-devel
+               pinentry
+               pth-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --libexecdir=/usr/lib/gnupg2 \
+               --enable-standard-socket
+end
+
+packages
+       package %{name}
+       end
+end
index 4c0a5174d1652e9564efc4eaa71a17eb5d67a4b6..04376dc0ff2de142da53ad5df283d896c17d9709 100644 (file)
@@ -1,59 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gnutls
-PKG_VER        = 3.0.0
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnu.org/software/gnutls/
-PKG_LICENSE    = LGPLv2.1+
-PKG_SUMMARY    = A general-purpose cryptography library.
+name       = gnutls
+version    = 3.0.0
+release    = 1
 
-PKG_BUILD_DEPS+= libtasn1-devel nettle-devel p11-kit-devel zlib-devel
+groups     = System/Libraries
+url        = http://www.gnu.org/software/gnutls/
+license    = LGPLv2.1+
+summary    = A general-purpose cryptography library.
 
-define PKG_DESCRIPTION
+description
        GnuTLS is a project that aims to develop a library which provides \
        a secure layer, over a reliable transport layer. Currently the \
        GnuTLS library implements the proposed standards by the IETF's \
        TLS working group.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.xz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-# Build library without an executable stack.
-CFLAGS        += -Wa,--noexecstack
-
-CONFIGURE_OPTIONS += \
-       --with-included-libcfg \
-       --disable-srp-authentication
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               libtasn1-devel
+               nettle-devel
+               p11-kit-devel
+               zlib-devel
+       end
+
+       # Build library without an executable stack.
+       CFLAGS += -Wa,--noexecstack
+
+       configure_options += \
+               --with-included-libcfg \
+               --disable-srp-authentication
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 9524373fcd358d4ac64b78dbc5a1c7d5628d718f..fc9232eb5ff2f34fa1c7a0b13218155a34f3c485 100644 (file)
@@ -1,57 +1,57 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gobject-introspection
-PKG_VER        = 0.9.12
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries 
-PKG_URL        = http://live.gnome.org/GObjectIntrospection
-PKG_LICENSE    = GPLv2+, LGPLv2+, MIT
-PKG_SUMMARY    = Introspection system for GObject-based libraries.
+name       = gobject-introspection
+version    = 0.9.12
+release    = 1
 
-PKG_BUILD_DEPS+= bison cairo-devel flex glib2-devel libffi-devel libtool \
-       pkg-config python-devel
+groups     = Development/Libraries
+url        = http://live.gnome.org/GObjectIntrospection
+license    = GPLv2+, LGPLv2+, MIT
+summary    = Introspection system for GObject-based libraries.
 
-PKG_DEPS-$(PKG_NAME_REAL)-devel += $(PKG_NAME_REAL)
-
-define PKG_DESCRIPTION
+description
        GObject Introspection can scan C header and source files in order \
        to generate introspection "typelib" files. It also provides an API to \
        examine typelib files, useful for creating language bindings among \
        other things.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
-
-CONFIGURE_OPTIONS += --sbindir=/sbin --disable-static
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+               cairo-devel
+               flex
+               glib2-devel
+               libffi-devel
+               libtool
+               python-devel
+       end
+
+       configure_options += \
+               --sbindir=/sbin \
+               --disable-static
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires = %{name}=%{thisver}
+       end
+end
index def24ae0165248f71485b78f162da5551e0b35e5..add112c0b308a038c106956c76d2c7390acdc20a 100644 (file)
@@ -1,48 +1,35 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gperf
-PKG_VER        = 3.0.4
-PKG_REL        = 0
+name       = gperf
+version    = 3.0.4
+release    = 0
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/gperf/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A perfect hash function generator.
+groups     = Development/Tools
+url        = http://www.gnu.org/software/gperf/
+license    = GPLv2+
+summary    = A perfect hash function generator.
 
-PKG_BUILD_DEPS+= gcc-c++
-
-define PKG_DESCRIPTION
+description
        Gperf is a perfect hash function generator written in C++. Simply \
        stated, a perfect hash function is a hash function and a data \
        structure that allows recognition of a key word in a set of words \
        using exactly one probe into the data structure.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += --disable-static
+end
 
-CONFIGURE_OPTIONS += --disable-static
+packages
+       package %{name}
+       end
+end
index 6a0ee512115c250474dce5665509c30e05b8699d..c6476b2303794232456fbbc3f730167e7647d4a6 100644 (file)
@@ -1,52 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = grep
-PKG_VER        = 2.9
-PKG_REL        = 1
+name       = grep
+version    = 2.9
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/Text
-PKG_URL        = http://www.gnu.org/software/grep/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A pattern matching utilities.
+groups     = Base Build Applications/Text
+url        = http://www.gnu.org/software/grep/
+license    = GPLv3+
+summary    = A pattern matching utilities.
 
-PKG_BUILD_DEPS+= pcre-devel
-
-define PKG_DESCRIPTION
+description
        The GNU versions of commonly used grep utilities. Grep searches through \
        textual input for lines which contain a match to a specified pattern and then \
        prints the matching lines. GNU's grep utilities include grep, egrep and fgrep.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               pcre-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.xz
+       configure_options += \
+               --bindir=/bin
 
-CONFIGURE_OPTIONS += \
-       --bindir=/bin
+       test
+               make check
+       end
+end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+packages
+       package %{name}
+       end
+end
index d7bbde5a9390d754ccab3de3ca905d9cfc142e4f..344e745bc993000733739b52024574b806d51d8a 100644 (file)
@@ -1,84 +1,75 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = groff
-PKG_VER        = 1.18.1.4
-PKG_REL        = 0
+name       = groff
+version    = 1.18.1.4
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Text
-PKG_URL        = http://groff.ffii.org/
-PKG_LICENSE    = GPLv2 and GFDL
-PKG_SUMMARY    = A document formatting system.
+groups     = Applications/Text
+url        = http://groff.ffii.org/
+license    = GPLv2 and GFDL
+summary    = A document formatting system.
 
-PKG_BUILD_DEPS+= bison gcc-c++ perl
-
-define PKG_DESCRIPTION
+description
        Groff is a document formatting system. Groff takes standard text and \
        formatting commands as input and produces formatted output. The \
        created documents can be shown on a display or printed on a printer. \
        Groff's formatting commands allow you to specify font type and size, \
        bold type, italic type, the number and size of columns on a page, and \
        more.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+               gcc-c++
+               perl
+       end
+
+       export PAGE = A4
+       PARALLELISMFLAGS =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --enable-multibyte
 
-export PAGE=A4
-CONFIGURE_OPTIONS += --enable-multibyte
-PARALLELISMFLAGS =
+       prepare_cmds
+               sed -i \
+                       -e 's/2010/002D/' \
+                       -e 's/2212/002D/' \
+                       -e 's/2018/0060/' \
+                       -e 's/2019/0027/' font/devutf8/R.proto
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i \
-               -e 's/2010/002D/' \
-               -e 's/2212/002D/' \
-               -e 's/2018/0060/' \
-               -e 's/2019/0027/' font/devutf8/R.proto
-endef
+       install
+               mkdir -pv %{BUILDROOT}/usr/{bin,include,sbin,share/man}
+               make install \
+                       manroot=%{BUILDROOT}/usr/share/man \
+                       bindir=%{BUILDROOT}/usr/bin \
+                       mandir=%{BUILDROOT}/usr/share/man \
+                       prefix=%{BUILDROOT}/usr \
+                       exec_prefix=%{BUILDROOT}/usr \
+                       sbindir=%{BUILDROOT}/usr/sbin \
+                       sysconfdir=%{BUILDROOT}/etc \
+                       datadir=%{BUILDROOT}/usr/share \
+                       infodir=%{BUILDROOT}/usr/share/info \
+                       sysconfdir=%{BUILDROOT}/etc \
+                       includedir=%{BUILDROOT}/usr/include \
+                       libdir=%{BUILDROOT}/usr/lib \
+                       libexecdir=%{BUILDROOT}/usr/libexec \
+                       localstatedir=%{BUILDROOT}/var \
+                       sharedstatedir=%{BUILDROOT}/usr/com \
+                       infodir=%{BUILDROOT}/usr/share/info
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/{bin,include,sbin,share/man}
-       cd $(DIR_APP) && make install \
-               manroot=$(BUILDROOT)/usr/share/man \
-               bindir=$(BUILDROOT)/usr/bin \
-               mandir=$(BUILDROOT)/usr/share/man \
-               prefix=$(BUILDROOT)/usr \
-               exec_prefix=$(BUILDROOT)/usr \
-               sbindir=$(BUILDROOT)/usr/sbin \
-               sysconfdir=$(BUILDROOT)/etc \
-               datadir=$(BUILDROOT)/usr/share \
-               infodir=$(BUILDROOT)/usr/share/info \
-               sysconfdir=$(BUILDROOT)/etc \
-               includedir=$(BUILDROOT)/usr/include \
-               libdir=$(BUILDROOT)/usr/lib \
-               libexecdir=$(BUILDROOT)/usr/libexec \
-               localstatedir=$(BUILDROOT)/var \
-               sharedstatedir=$(BUILDROOT)/usr/com \
-               infodir=$(BUILDROOT)/usr/share/info
+               ln -svf eqn %{BUILDROOT}/usr/bin/geqn
+               ln -svf tbl %{BUILDROOT}/usr/bin/gtbl
+       end
+end
 
-       ln -svf eqn $(BUILDROOT)/usr/bin/geqn
-       ln -svf tbl $(BUILDROOT)/usr/bin/gtbl
-endef
+packages
+       package %{name}
+       end
+end
index 1aa3f1451122dda1a54250740eb109e64b5953c6..27306682922374715fd03457b3cab06ea0526f0d 100644 (file)
@@ -1,82 +1,82 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = grub
-PKG_VER        = 1.98
-PKG_REL        = 6
+name       = grub
+version    = 1.98
+release    = 6
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Boot
-PKG_URL        = http://www.gnu.org/software/grub/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Grand Unified Boot Loader.
+groups     = Base System/Boot
+url        = http://www.gnu.org/software/grub/
+license    = GPLv2+
+summary    = Grand Unified Boot Loader.
 
-PKG_BUILD_DEPS+= autoconf automake bison flex freetype-devel gettext \
-       ncurses-devel xorg-x11-fonts zlib-devel
-PKG_DEPS      += gettext os-prober
-
-define PKG_DESCRIPTION
+description
        GRUB (Grand Unified Boot Loader) is an experimental boot loader \
        capable of booting into most free operating systems - Linux, FreeBSD, \
        NetBSD, GNU Mach, and others as well as most commercial operating \
        systems.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-QUALITY_AGENT_WHITELIST_NX = /usr/bin/*|/usr/sbin/*
-
-CFLAGS        += -fno-strict-aliasing
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --with-platform=pc \
-       --enable-grub-emu
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && \
+end
+
+source_dl  =
+
+build
+       requires
+               autoconf
+               automake
+               bison
+               flex
+               freetype-devel
+               gettext
+               ncurses-devel
+               xorg-x11-fonts
+               zlib-devel
+       end
+
+       CFLAGS += -fno-strict-aliasing
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --with-platform=pc \
+               --enable-grub-emu
+
+       prepare_cmds
                sed -e "s@ GNU/Linux\"@\"@" -i util/grub.d/10_linux.in
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-
-       sed -e "s/pkgdatadir/pkglibdir/g" -i $(BUILDROOT)/usr/sbin/grub-install
-
-       -mkdir -pv $(BUILDROOT)/boot/grub
-
-       # Install theme file
-       install -m 0744 $(DIR_SOURCE)/05_theme $(BUILDROOT)/etc/grub.d/ 
-
-       # Install splash background
-       install $(DIR_SOURCE)/splash.png $(BUILDROOT)/boot/grub
-
-       # XXX - We will have to do this after the installation of the package by pakfire
-       # Generate grub compatible font for graphical boot menu
-       # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters
-       $(BUILDROOT)/usr/bin/grub-mkfont --output=$(BUILDROOT)/boot/grub/unifont.pf2 \
-               --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz
-endef
+       end
+
+       install
+               make install DESTDIR=%{BUILDROOT}
+
+               sed -e "s/pkgdatadir/pkglibdir/g" -i %{BUILDROOT}/usr/sbin/grub-install
+
+               mkdir -pv %{BUILDROOT}/boot/grub
+
+               # Install theme file
+               install -m 0744 %{DIR_SOURCE}/05_theme %{BUILDROOT}/etc/grub.d/
+
+               # Install splash background
+               install %{DIR_SOURCE}/splash.png %{BUILDROOT}/boot/grub
+
+               # XXX - We will have to do this after the installation of the package by pakfire
+               # Generate grub compatible font for graphical boot menu
+               # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters
+               %{BUILDROOT}/usr/bin/grub-mkfont --output=%{BUILDROOT}/boot/grub/unifont.pf2 \
+                       --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz
+       end
+end
+
+quality-agent
+       whitelist_nx
+               /usr/bin/*|/usr/sbin/*
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       gettext
+                       os-prober
+               end
+       end
+end
index 0bddc82337489c56ce40aac3e122d0d00fb9c2d1..792f8720a714e41a4bc959ff0d69ab4d50262e6e 100644 (file)
@@ -1,45 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gssdp
-PKG_VER        = 0.7.0
-PKG_REL        = 0
+name       = gssdp
+version    = 0.7.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gupnp.org
-PKG_LICENSE    = LGPL
-PKG_SUMMARY    = Resource discovery and announcement over SSDP.
+groups     = System/Libraries
+url        = http://www.gupnp.org
+license    = LGPL
+summary    = Resource discovery and announcement over SSDP.
 
-PKG_BUILD_DEPS+= glib2-devel libsoup-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        GSSDP implements resource discovery and announcement over SSDP.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+
+build
+       requires
+               glib2-devel
+               libsoup-devel
+               pkg-config
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 01e8aaf3f663be3d5beb33c3f39335f18ec21606..ef8e08fe4ee14a73fb578b260852d4ecadbc844f 100644 (file)
@@ -1,60 +1,53 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = guile
-PKG_VER        = 1.8.8
-PKG_REL        = 1
+name       = guile
+version    = 1.8.8
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/guile/
-PKG_LICENSE    = GPLv2+ and LGPLv2+ and GFDL and OFSFDL
-PKG_SUMMARY    = A GNU implementation of Scheme for application extensibility.
+groups     = Development/Tools
+url        = http://www.gnu.org/software/guile/
+license    = GPLv2+ and LGPLv2+ and GFDL and OFSFDL
+summary    = A GNU implementation of Scheme for application extensibility.
 
-PKG_BUILD_DEPS+= gmp-devel libtool-devel
-
-define PKG_DESCRIPTION
+description
        GUILE (GNU's Ubiquitous Intelligent Language for Extension) is a library \
        implementation of the Scheme programming language, written in C. GUILE \
        provides a machine-independent execution platform that can be linked in \
        as a library during the building of extensible programs.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gmp-devel
+               libtool-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --disable-static \
+               --disable-error-on-warning
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       test
+               make check
+       end
+end
 
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --disable-error-on-warning
+quality-agent
+       whitelist_rpath
+               /usr/lib
+       end
+end
 
-QUALITY_AGENT_WHITELIST_RPATH = /usr/lib
+packages
+       package %{name}
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+       package %{name}-devel
+               template DEVEL
 
-PKG_DEPS-$(PKG_NAME_REAL)-devel += gmp-devel libtool-devel
+               requires = gmp-devel libtool-devel
+       end
+end
index f3eeec78f0c658354f2ae9914115ddf0b04e7db5..18c8e257fb259078fd41d64b5d70da7439517fb7 100644 (file)
@@ -1,49 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gupnp-av
-PKG_VER        = 0.5.1
-PKG_REL        = 0
+name       = gupnp-av
+version    = 0.5.1
+release    = 1
 
-PKG_MAINTAINER = 
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gupnp.org
-PKG_LICENSE    = LGPL
-PKG_SUMMARY    = gupnp audio/video helpers.
+groups     = System/Libraries
+url        = http://www.gupnp.org
+license    = LGPL
+summary    = gupnp audio/video helpers.
 
-PKG_BUILD_DEPS+= gssdp-devel gupnp-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        GUPnP-AV is a collection of helpers for building AV (audio/video) \
        applications using GUPnP.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-        --without-gnome
+end
+
+source_dl  =
+
+build
+       requires
+               gssdp-devel
+               gupnp-devel
+       end
+
+       configure_options += \
+               --without-gnome
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index df9f4a2cea21de340d3a5af4915892ca8288d121..e84c0a65df14a1e8643ad26fe4e6b65840484e00 100644 (file)
@@ -1,48 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gupnp-igd
-PKG_VER        = 0.1.3
-PKG_REL        = 1
+name       = gupnp-igd
+version    = 0.1.3
+release    = 1
 
-PKG_MAINTAINER = 
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gupnp.org
-PKG_LICENSE    = LGPL
-PKG_SUMMARY    = gupnp - Internet Gateway device implementation (Microsoft).
+groups     = System/Libraries
+url        = http://www.gupnp.org
+license    = LGPL
+summary    = gupnp - Internet Gateway device implementation (Microsoft).
 
-PKG_BUILD_DEPS+= gssdp-devel gupnp-devel libsoup-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        This is a library to handle Internet Gateway Device port mappings.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-        --without-gnome
+end
+
+source_dl  =
+
+build
+       requires
+               gssdp-devel
+               gupnp-devel
+               libsoup-devel
+       end
+
+       configure_options += \
+               --without-gnome
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 24ed6fd0280886c268852c7493d15b4ecd056bfa..5dd403a5282f8d87b8a957979642d11a9aca1560 100644 (file)
@@ -1,51 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = gupnp
-PKG_VER        = 0.13.1
-PKG_REL        = 0
+name       = gupnp
+version    = 0.13.1
+release    = 1
 
-PKG_MAINTAINER = 
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gupnp.org
-PKG_LICENSE    = LGPL
-PKG_SUMMARY    = An UPNP framework.
+groups     = System/Libraries
+url        = http://www.gupnp.org
+license    = LGPL
+summary    = An UPNP framework.
 
-PKG_BUILD_DEPS+= glib2-devel gssdp-devel libsoup-devel libuuid-devel \
-       libxml2-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        GUPnP is an object-oriented open source framework for creating UPnP\
        devices and control points, written in C using GObject and libsoup.\
-       The GUPnP API is intended to be easy to use, efficient and flexible. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-        --without-gnome
+       The GUPnP API is intended to be easy to use, efficient and flexible.
+end
+
+source_dl  =
+
+build
+       requires
+               glib2-devel
+               gssdp-devel
+               libsoup-devel
+               libuuid-devel
+               libxml2-devel
+       end
+
+       configure_options += \
+               --without-gnome
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 307b19beb1903d56a79c5b5dfacb210aa4505c65..b3d2baab0b92abf9a8824f41180e07e933e7ef71 100644 (file)
@@ -1,66 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = gzip
+version    = 1.4
+release    = 1
 
-PKG_NAME       = gzip
-PKG_VER        = 1.4
-PKG_REL        = 0
+groups     = Base Build Applications/Compression
+url        = http://www.gzip.org/
+license    = GPLv2
+summary    = The GNU data compression program.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/Compression
-PKG_URL        = http://www.gzip.org/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = The GNU data compression program.
-
-define PKG_DESCRIPTION
+description
        The gzip package contains the popular GNU gzip data compression \
        program. Gzipped files have a .gz extension.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-define STAGE_BUILD
-       # NO_ASM is for textrels.
-       cd $(DIR_APP) && \
+build
+       build
+               # NO_ASM is for textrels.
                DEFS=NO_ASM \
                CPPFLAGS="-DHAVE_LSTAT" \
                ./configure \
                        --prefix=/usr \
                        --bindir=/bin
 
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               make check
+       end
 
-define STAGE_TEST
-        cd $(DIR_APP) && make check
-endef
+       install
+               make install DESTDIR=%{BUILDROOT}
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
+               mkdir -pv %{BUILDROOT}/usr/bin
+               mv -v %{BUILDROOT}/bin/{gzexe,uncompress,zcmp,zdiff,zegrep} %{BUILDROOT}/usr/bin
+               mv -v %{BUILDROOT}/bin/{zfgrep,zforce,zgrep,zless,zmore,znew} %{BUILDROOT}/usr/bin
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       mv -v $(BUILDROOT)/bin/{gzexe,uncompress,zcmp,zdiff,zegrep} $(BUILDROOT)/usr/bin
-       mv -v $(BUILDROOT)/bin/{zfgrep,zforce,zgrep,zless,zmore,znew} $(BUILDROOT)/usr/bin
-endef
+packages
+       package %{name}
+       end
+end
index 50e26be4bac0db13ef28e2c79effc30df4f2faea..4ccd35f65bdb325cb913b49cbaa45a9c5b493e3a 100644 (file)
@@ -1,52 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = hdparm
+version    = 9.37
+release    = 1
 
-PKG_NAME       = hdparm
-PKG_VER        = 9.37
-PKG_REL        = 0
+groups     = Base Applications/Hardware
+url        = http://sourceforge.net/projects/hdparm/
+license    = BSD
+summary    = A utility for displaying and/or setting hard disk parameters.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/Hardware
-PKG_URL        = http://sourceforge.net/projects/hdparm/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A utility for displaying and/or setting hard disk parameters.
-
-define PKG_DESCRIPTION
+description
        Hdparm is a useful system utility for setting (E)IDE hard drive \
        parameters. For example, hdparm can be used to tweak hard drive \
        performance and to spin down hard drives for power conservation.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       build
+               cd %{DIR_APP} && CFLAGS="%{CFLAGS}" make %{PARALELLIAMFLAGS} LDFLAGS=
+       end
 
-define STAGE_BUILD
-       $(DO_FIX_LIBTOOL)
-       cd $(DIR_APP) && CFLAGS="$(CFLAGS)" make $(PARALELLIAMFLAGS) LDFLAGS= 
-endef
+       install
+               make install DESTDIR=%{BUILDROOT} binprefix=/usr
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) binprefix=/usr
-endef
+packages
+       package %{name}
+       end
+end
index a47e7622645ee398c9acc1830929925554ed9a6a..208f1ff1abbb44af998f514ba49d8f647f007b56 100644 (file)
@@ -1,52 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = help2man
+version    = 1.40.4
+release    = 1
 
-PKG_NAME       = help2man
-PKG_VER        = 1.40.4
-PKG_REL        = 1
+groups     = Development/Tools
+url        = http://www.gnu.org/software/help2man
+license    = GPLv3+
+summary    = Create simple man pages from --help output.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/help2man
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = Create simple man pages from --help output.
-
-define PKG_DESCRIPTION
+description
        help2man is a script to create simple man pages from the --help and
        --version output of programs.
 
        Since most GNU documentation is now in info format, this provides a
        way to generate a placeholder man page pointing to that resource while
        still providing some useful information.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_options += \
+               --disable-nls \
+               --libdir=/usr/lib/help2man
 
-CONFIGURE_OPTIONS += \
-       --disable-nls \
-       --libdir=/usr/lib/help2man
+       make_install_targets += install_l10n
+end
 
-STAGE_INSTALL_TARGETS += install_l10n
+packages
+       package %{name}
+       end
+end
index fdcd24817aff055276cf282175c824034abbbe27..0571e0f152c0d383681365479a878696571db586 100644 (file)
@@ -1,60 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = hostapd
-PKG_VER        = 0.6.9
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://hostap.epitest.fi/hostapd/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = User space daemon to create Wifi Access points.
+name       = hostapd
+version    = 0.6.9
+release    = 1
 
-PKG_BUILD_DEPS+= libnl-devel openssl-devel
+groups     = Networking/Tools
+url        = http://hostap.epitest.fi/hostapd/
+license    = GPLv2+
+summary    = User space daemon to create Wifi Access points.
 
-define PKG_DESCRIPTION
+description
        Hostapd is a user space daemon for access point and authentication \
        servers. It implements IEEE 802.11 access point management, IEEE \
        802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and \
        RADIUS authentication server.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP)/hostapd && cp -vf $(DIR_SOURCE)/config .config
-       cd $(DIR_APP)/hostapd && sed -e "s@/usr/local@$(BUILDROOT)/usr@g" -i Makefile
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP)/hostapd && make $(PARALLELISMFLAGS) CC=gcc
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       cd $(DIR_APP)/hostapd && make install
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libnl-devel
+               openssl-devel
+       end
+
+       prepare_cmds
+               cd hostapd
+               cp -vf %{DIR_SOURCE}/config .config
+               sed -e "s@/usr/local@%{BUILDROOT}/usr@g" -i Makefile
+       end
+
+       build
+               cd hostapd
+               make %{PARALLELISMFLAGS} CC=gcc
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/bin
+               cd hostapd && make install
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index c765b6f3fd59b20404b918fb406d0c9fae864453..16eb31de4601fee694c10069c84386898115f1b4 100644 (file)
@@ -1,52 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = hplip
-PKG_VER        = 3.10.9
-PKG_REL        = 0
+name       = hplip
+version    = 3.10.9
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Printing
-PKG_URL        = http://hplipopensource.com/hplip-web/index.html
-PKG_LICENSE    = GPLv2*
-PKG_SUMMARY    = HP Printer/Scanner Library (full version).
+groups     = Applications/Printing
+url        = http://hplipopensource.com/hplip-web/index.html
+license    = GPLv2*
+summary    = HP Printer/Scanner Library (full version).
 
-PKG_BUILD_DEPS+= autoconf automake cups-devel dbus-devel gcc-c++ libjpeg-devel \
-       libtool libusb-compat-devel net-snmp-devel pkg-config python-devel \
-       sane-devel
-
-define PKG_DESCRIPTION
+description
        HPLIP (Hewlett-Packard Linux Imaging & Printing) is an HP-developed \
        olution for printing, scanning, and faxing with HP inkjet and laser based \
        printers in Linux. The HPLIP project provides printing support for 1,924 \
        printer models. \
        This is the full version including printer/scanner support.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
+end
+
+source_dl  =
+
+build
+       requires
+               autoconf
+               automake
+               cups-devel
+               dbus-devel
+               gcc-c++
+               libjpeg-devel
+               libtool
+               libusb-compat-devel
+               net-snmp-devel
+               pkg-config
+               python-devel
+               sane-devel
+       end
+
+       configure_options += \
                --sysconfdir=/etc
+end
+
+packages
+       package %{name}
+       end
+end
index ef549097d972aa3c399bd53fe71922d9bd0ed8fa..efd8b877cf2f7cf355b2e6b1457738dfdcbb0753 100644 (file)
@@ -1,51 +1,38 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = htop
-PKG_VER        = 0.9
-PKG_REL        = 1
+name       = htop
+version    = 0.9
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://htop.sourceforge.net/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Interactive process viewer.
+groups     = Base Applications/System
+url        = http://htop.sourceforge.net/
+license    = GPL+
+summary    = Interactive process viewer.
 
-PKG_BUILD_DEPS+= ncurses-devel
-
-define PKG_DESCRIPTION
+description
        htop is an interactive text-mode process viewer for Linux, similar to \
        top(1).
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               ncurses-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --sysconfdir=/etc
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc
+       install_cmds
+               rm -rf %{BUILDROOT}/usr/share/{applications,pixmaps}
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       rm -rf $(BUILDROOT)/usr/share/{applications,pixmaps}
-endef
+packages
+       package %{name}
+       end
+end
index 0bfc7d7599d276ed60fd3ac3e9158ebcec3ea80c..049f410a54a7b9de2406e0e00258b8a7028960b3 100644 (file)
@@ -1,48 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = hwdata
-PKG_VER        = 0.232
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = hwdata
+version    = 0.232
+release    = 1
+arch       = noarch
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Base
-PKG_URL        = http://git.fedorahosted.org/git/hwdata.git
-PKG_LICENSE    = GPLv2+ and LGPLv2+
-PKG_SUMMARY    = Hardware identification and configuration data.
+groups     = Base System/Base
+url        = http://git.fedorahosted.org/git/hwdata.git
+license    = GPLv2+ and LGPLv2+
+summary    = Hardware identification and configuration data.
 
-PKG_BUILD_DEPS = # Need no gcc
-PKG_DEPS      += module-init-tools
-
-define PKG_DESCRIPTION
+description
        hwdata contains various hardware identification and configuration data, \
        such as the pci.ids database and MonitorsDb databases.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-STAGE_BUILD = # Nothing to do
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       build
+               : # Nothing to do
+       end
+end
+
+packages
+       package %{name}
+               requires = module-init-tools
+       end
+end
index 39ad9866ed8119fa00ded6b0d98f5e74c158cec7..5bf4a1369bcd3c3949849e523a0e1bedeafa9d44 100644 (file)
@@ -1,47 +1,28 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = iana-etc
+version    = 2.30
+release    = 1
+arch       = noarch
 
-PKG_NAME       = iana-etc
-PKG_VER        = 2.30
-PKG_REL        = 1
-PKG_ARCH       = noarch
+groups     = Base Networking/Tools
+url        = http://www.iana.org/
+license    =
+summary    = The Internet Assigned Numbers Authority.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Networking/Tools
-PKG_URL        = http://www.iana.org/
-PKG_LICENSE    =
-PKG_SUMMARY    = The Internet Assigned Numbers Authority.
-
-PKG_BUILD_DEPS = # EMPTY
-PKG_DEPS       =
-
-define PKG_DESCRIPTION
+description
        The Internet Assigned Numbers Authority (IANA) is responsible for the \
        global coordination of the DNS Root, IP addressing, and other Internet \
        protocol resources.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+packages
+       package %{name}
+       end
+end
index 545bff9328fb8c5846c7fbce61c8668eb779ecd9..793e1f5f43a0d4b6c3de817e1ba8a244b6a121b2 100644 (file)
@@ -1,48 +1,23 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
 # XXX man pages are missing
 # XXX initscripts for daemons are missing
 
-PKG_NAME       = icecream
-PKG_VER        = 0.9.6
-PKG_REL        = 3
+name       = icecream
+version    = 0.9.6
+release    = 3
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Compilers
-PKG_URL        = http://en.opensuse.org/Icecream
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Distributed compiler.
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Compilers
+url        = http://en.opensuse.org/Icecream
+license    = GPLv2+
+summary    = Distributed compiler.
 
-PKG_DEPS      += gcc-c++ /usr/bin/ldd
-PKG_BUILD_DEPS+= gcc-c++
 
-ICECREAM_TARGET_PLATFORM = $(subst -gnu,,$(DISTRO_MACHINE))
-
-define PKG_DESCRIPTION
+description
        Icecream is a distributed compile system. It allows parallel compiling by \
        distributing the compile jobs to several nodes of a compile network running the \
        icecc daemon. The icecc scheduler routes the jobs and provides status and \
@@ -50,29 +25,47 @@ define PKG_DESCRIPTION
        or more compile jobs depending on the number of processors and the settings of \
        the daemon. Link jobs and other jobs which cannot be distributed are executed \
        locally on the node where the compilation is started.
-endef
+end
+
+source_dl  =
+sources    = icecc-%{version}.tar.bz2
+
+build
+       requires
+               gcc-c++
+       end
+
+       DIR_APP = %{DIR_SRC}/icecc-%{version}
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       configure_options += \
+               --disable-static \
+               --enable-shared
 
-DIR_APP        = $(DIR_SRC)/icecc-$(PKG_VER)
-PKG_TARBALL    = icecc-$(PKG_VER).tar.bz2
+       install_cmds
+               ICECREAM_TARGET_PLATFORM=$(echo %{DISTRO_MACHINE} | sed -e "s/-gnu//g")
 
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --enable-shared
+               mkdir -pv %{BUILDROOT}/usr/lib/icecc/bin
+               for i in gcc g++ cc c++; do
+                       ln -svf ../../../bin/icecc %{BUILDROOT}/usr/lib/icecc/bin/${i}
+                       ln -svf ../../../bin/icecc %{BUILDROOT}/usr/lib/icecc/bin/%{ICECREAM_TARGET_PLATFORM}-${i}
+               done
+               sed -e 's|^#!.*|#!/bin/bash|' -i %{BUILDROOT}/usr/lib/icecc/icecc-create-env
 
-define STAGE_INSTALL_CMDS
-       mkdir -pv $(BUILDROOT)/usr/lib/icecc/bin
-       for i in gcc g++ cc c++; do \
-               ln -svf ../../../bin/icecc $(BUILDROOT)/usr/lib/icecc/bin/$${i}; \
-               ln -svf ../../../bin/icecc $(BUILDROOT)/usr/lib/icecc/bin/$(ICECREAM_TARGET_PLATFORM)-$${i}; \
-       done
-       sed -e 's|^#!.*|#!/bin/bash|' -i $(BUILDROOT)/usr/lib/icecc/icecc-create-env
+               mkdir -pv %{BUILDROOT}/etc/profile.d
+               sed -e "s|@LIBDIR@|/usr/lib|g" \
+                       < %{DIR_SOURCE}/icecream.sh > %{BUILDROOT}/etc/profile.d/icecream.sh
 
-       -mkdir -pv $(BUILDROOT)/etc/profile.d
-       sed -e "s|@LIBDIR@|/usr/lib|g" \
-               < $(DIR_SOURCE)/icecream.sh > $(BUILDROOT)/etc/profile.d/icecream.sh
+               # create default working dir
+               mkdir -pv %{BUILDROOT}/var/cache/icecream
+       end
+end
 
-       # create default working dir
-       -mkdir -pv $(BUILDROOT)/var/cache/icecream
-endef
+packages
+       package %{name}
+               requires = gcc-c++ /usr/bin/ldd
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index ddb0683d795f74a174e178032d36250a9cc689ad..bee6dac1ceda601cdf413d6859894bcb58490e00 100644 (file)
@@ -1,49 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = iftop
-PKG_VER        = 0.17
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://www.ex-parrot.com/pdw/iftop/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Interactive traffic listings
+name       = iftop
+version    = 0.17
+release    = 1
 
-PKG_BUILD_DEPS+= libpcap-devel ncurses-devel
+groups     = Base Applications/System
+url        = http://www.ex-parrot.com/pdw/iftop/
+license    = GPL+
+summary    = Interactive traffic listings
 
-define PKG_DESCRIPTION
+description
        iftop is an interactive text-mode traffic viewer for Linux.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --mandir=/usr/share/man
-
-
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.gz
+
+build
+       requires
+               libpcap-devel
+               ncurses-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --mandir=/usr/share/man
+end
+
+packages
+       package %{name}
+       end
+end
index 90260aba814c1875b7abd7f9f84e588257be8adc..41cff18ef061b44e8baadb3c9fe9fa0da6f40157 100644 (file)
@@ -1,46 +1,31 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = igmpproxy
+version    = 0.1
+release    = 1
 
-PKG_NAME       = igmpproxy
-PKG_VER        = 0.1
-PKG_REL        = 1
+groups     = Networking/Routing
+url        = http://sourceforge.net/projects/igmpproxy/
+license    = GPLv2+
+summary    = A proxy for IGMP.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Routing
-PKG_URL        = http://sourceforge.net/projects/igmpproxy/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A proxy for IGMP.
-
-define PKG_DESCRIPTION
+description
        IGMPproxy is a simple dynamic Multicast Routing Daemon using only IGMP
        signalling. It's intended for simple forwarding of Multicast traffic
        between networks.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_options += \
+               --sysconfdir=/etc
+end
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc
+packages
+       package %{name}
+       end
+end
index 4830e766e7bd9fb25947c87253b8d684caa91cb1..c4fe57285cd572ddfcc047b66afba6d1505e7d79 100644 (file)
@@ -1,78 +1,80 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = initscripts
-PKG_EPOCH      = 1
-PKG_VER        = 2.99
-PKG_REL        = 5
+name       = initscripts
+epoch      = 1
+version    = 2.99
+release    = 5
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Boot
-PKG_URL        =
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The set of scripts that initalize the system.
+groups     = Base System/Boot
+url        =
+license    = GPLv3+
+summary    = The set of scripts that initalize the system.
 
-PKG_BUILD_DEPS+= glib2-devel popt-devel
-PKG_DEPS      += bash coreutils e2fsprogs grep iproute2 module-init-tools \
-       procps sed system-release udev util-linux
-
-define PKG_DESCRIPTION
+description
        The initscripts package contains the basic system scripts used to boot \
        your system and shut the system down cleanly.
-endef
-
-DIR_APP = $(DIR_SOURCE)
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP)/src && make clean
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP)/src && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP)/src && make test
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP)/src && make install clean DESTDIR=$(BUILDROOT)
-
-       -mkdir -pv $(BUILDROOT)/etc/{init,sysconfig}
-
-       cp -vf $(DIR_SOURCE)/functions $(BUILDROOT)/etc/init/
-
-       for i in $(DIR_SOURCE)/sysconfig/*; do \
-               install -v -m 644 $$i $(BUILDROOT)/etc/sysconfig/; \
-       done
-       chmod -v 755 $(BUILDROOT)/etc/sysconfig/rc.local
-
-       cp -vf $(DIR_SOURCE)/sysctl.conf $(BUILDROOT)/etc
-
-       # Install udev rules
-       -mkdir -pv $(BUILDROOT)/lib/udev/rules.d/
-       cp -vf $(DIR_SOURCE)/udev/* $(BUILDROOT)/lib/udev/rules.d/
-endef
+end
+
+# Nothing to download.
+sources    =
+
+build
+       requires
+               glib2-devel
+               popt-devel
+       end
+
+       DIR_APP = %{DIR_SOURCE}
+
+       prepare_cmds
+               cd src && make clean
+       end
+
+       build
+               cd src && make %{PARALLELISMFLAGS}
+       end
+
+       test
+               cd src && make test
+       end
+
+       install
+               cd src && make install clean DESTDIR=%{BUILDROOT}
+
+               mkdir -pv %{BUILDROOT}/etc/{init,sysconfig}
+
+               cp -vf %{DIR_SOURCE}/functions %{BUILDROOT}/etc/init/
+
+               for i in %{DIR_SOURCE}/sysconfig/*; do
+                       install -v -m 644 $i %{BUILDROOT}/etc/sysconfig/
+               done
+               chmod -v 755 %{BUILDROOT}/etc/sysconfig/rc.local
+
+               cp -vf %{DIR_SOURCE}/sysctl.conf %{BUILDROOT}/etc
+
+               # Install udev rules
+               mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
+               cp -vf %{DIR_SOURCE}/udev/* %{BUILDROOT}/lib/udev/rules.d/
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       bash
+                       coreutils
+                       e2fsprogs
+                       grep
+                       iproute2
+                       module-init-tools
+                       procps
+                       sed
+                       system-release
+                       udev
+                       util-linux
+               end
+       end
+end
index 74ae1e34ab00647c44d98dabfdf58ef13683bc2b..23608e23ce6c829a7501c3ab48a01ccccf8e53ac 100644 (file)
@@ -1,50 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = intltool
-PKG_VER        = 0.40.5
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = intltool
+version    = 0.40.5
+release    = 1
+arch       = noarch
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Localization/Tools
-PKG_URL        = http://www.gnome.org/
-PKG_LICENSE    = GPLv2 with exceptions
-PKG_SUMMARY    = Utility for internationalizing various kinds of data files.
+groups     = Localization/Tools
+url        = http://www.gnome.org/
+license    = GPLv2 with exceptions
+summary    = Utility for internationalizing various kinds of data files.
 
-define PKG_DESCRIPTION
+description
        This tool automatically extracts translatable strings from oaf, glade, \
        bonobo ui, nautilus theme, .desktop, and other data files and puts \
        them in the po files.
-endef
-
-PKG_BUILD_DEPS+= expat-devel gettext perl-XML-Parser
-PKG_DEPS      += gettext perl-XML-Parser
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               expat-devel
+               gettext
+               perl-XML-Parser
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man
+end
+
+packages
+       package %{name}
+               requires = gettext perl-XML-Parser
+       end
+end
index ae6e407c6a1618a6846ca2839ff7be345e4a66e1..14fe817cc01dcb21a70998dc5c8993ce25918538 100644 (file)
@@ -1,60 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = iproute2
-PKG_VER        = 2.6.39
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Networking/Tools
-PKG_URL        = http://www.linuxfoundation.org/en/Net:Iproute2
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Advanced IP routing and network device configuration tools.
+name       = iproute2
+version    = 2.6.39
+release    = 1
 
-PKG_BUILD_DEPS+= bison db4-devel flex
+groups     = Base Networking/Tools
+url        = http://www.linuxfoundation.org/en/Net:Iproute2
+license    = GPLv2+
+summary    = Advanced IP routing and network device configuration tools.
 
-define PKG_DESCRIPTION
+description
        The iproute package contains networking utilities (ip and rtmon, for \
        example) which are designed to use the advanced networking \
        capabilities of the Linux 2.4.x and 2.6.x kernel.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i -e "s@DESTDIR=.*@DESTDIR=@" \
-               -e "s@/share/@/usr/share/@g" Makefile
-endef
-
-#define STAGE_BUILD
-#      cd $(DIR_APP) && make OPT_FLAGS="$(CFLAGS)" #$(PARALLELISMFLAGS)
-#endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       cd $(DIR_APP) && mv -v $(BUILDROOT)/sbin/arpd $(BUILDROOT)/usr/sbin
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+               db4-devel
+               flex
+       end
+
+       prepare_cmds
+               sed -i -e "s@DESTDIR=.*@DESTDIR=@" \
+                       -e "s@/share/@/usr/share/@g" Makefile
+       end
+
+       install
+               make install DESTDIR=%{BUILDROOT}
+               mkdir -pv %{BUILDROOT}/usr/sbin
+               mv -v %{BUILDROOT}/sbin/arpd %{BUILDROOT}/usr/sbin
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 7ed99a3de32d9b4c5c35e75d406b37930a43a7e5..b7ce6aa3dcade3e1df4d959fffa9f584743d96b2 100644 (file)
@@ -1,95 +1,86 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = iptables
+version    = 1.4.12
+release    = 1
 
-PKG_NAME       = iptables
-PKG_VER        = 1.4.12
-PKG_REL        = 1
+groups     = Networking/Tools
+url        = http://www.netfilter.org/
+license    = GPL+
+summary    = Tools for managing Linux kernel packet filtering capabilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_GROUPS-iptables = Base $(PKG_GROUPS)
-PKG_URL        = http://www.netfilter.org/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Tools for managing Linux kernel packet filtering capabilities.
-
-PKG_BUILD_DEPS+= libnfnetlink-devel libselinux-devel
-
-define PKG_DESCRIPTION
+description
        The iptables utility controls the network packet filtering code in the \
        Linux kernel. If you need to set up firewalls and/or IP masquerading, \
        you should install this package.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               libnfnetlink-devel
+               libselinux-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       CFLAGS += -fno-strict-aliasing
 
-CFLAGS        += -fno-strict-aliasing
+       configure_options += \
+               --bindir=/bin \
+               --sbindir=/sbin \
+               --libdir=/lib \
+               --libexecdir=/lib \
+               --sysconfdir=/etc \
+               --with-pkgconfigdir=/usr/lib/pkgconfig \
+               --mandir=/usr/share/man \
+               --with-kernel=/usr \
+               --with-kbuild=/usr \
+               --with-ksource=/usr \
+               --enable-devel \
+               --enable-libipq
 
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --sbindir=/sbin \
-       --libdir=/lib \
-       --libexecdir=/lib \
-       --sysconfdir=/etc \
-       --with-pkgconfigdir=/usr/lib/pkgconfig \
-       --mandir=/usr/share/man \
-       --with-kernel=/usr \
-       --with-kbuild=/usr \
-       --with-ksource=/usr \
-       --enable-devel \
-       --enable-libipq
+       prepare_cmds
+               # Make more space for target name on output.
+               cd iptables && sed -e "s/%-9s/%-18s/g" -i ip{,6}tables.c
+       end
 
-define STAGE_PREPARE_CMDS
-       # Make more space for target name on output.
-       cd $(DIR_APP)/iptables && sed -e "s/%-9s/%-18s/g" -i ip{,6}tables.c
-endef
+       install_cmds
+               # install ip*tables.h header files
+               mkdir -pv %{BUILDROOT}/usr/include/{iptables,libiptc}
+               install -v -m 644 include/ip{,6}tables.h \
+                       %{BUILDROOT}/usr/include
+               install -v -m 644 include/iptables/internal.h \
+                       %{BUILDROOT}/usr/include/iptables/
+               install -v -m 644 include/libiptc/*.h \
+                       %{BUILDROOT}/usr/include/libiptc
 
-define STAGE_INSTALL_CMDS
-       # install ip*tables.h header files
-       -mkdir -pv $(BUILDROOT)/usr/include/{iptables,libiptc}
-       cd $(DIR_APP) && install -v -m 644 include/ip{,6}tables.h \
-               $(BUILDROOT)/usr/include
-       cd $(DIR_APP) && install -v -m 644 include/iptables/internal.h \
-               $(BUILDROOT)/usr/include/iptables/
-       cd $(DIR_APP) && install -v -m 644 include/libiptc/*.h \
-               $(BUILDROOT)/usr/include/libiptc
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -vf %{BUILDROOT}/lib/libip{tc,4tc,6tc,q}.so %{BUILDROOT}/lib/libxtables.so
+               ln -svf ../../lib/libiptc.so.0 %{BUILDROOT}/usr/lib/libiptc.so
+               ln -svf ../../lib/libip4tc.so.0 %{BUILDROOT}/usr/lib/libip4tc.so
+               ln -svf ../../lib/libip6tc.so.0 %{BUILDROOT}/usr/lib/libip6tc.so
+               ln -svf ../../lib/libipq.so.0 %{BUILDROOT}/usr/lib/libipq.so
+               ln -svf ../../lib/libxtables.so.7 %{BUILDROOT}/usr/lib/libxtables.so
 
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -vf $(BUILDROOT)/lib/libip{tc,4tc,6tc,q}.so $(BUILDROOT)/lib/libxtables.so
-       ln -svf ../../lib/libiptc.so.0 $(BUILDROOT)/usr/lib/libiptc.so
-       ln -svf ../../lib/libip4tc.so.0 $(BUILDROOT)/usr/lib/libip4tc.so
-       ln -svf ../../lib/libip6tc.so.0 $(BUILDROOT)/usr/lib/libip6tc.so
-       ln -svf ../../lib/libipq.so.0 $(BUILDROOT)/usr/lib/libipq.so
-       ln -svf ../../lib/libxtables.so.7 $(BUILDROOT)/usr/lib/libxtables.so
+               # Replace absolute symlink
+               ln -svf ../sbin/xtables-multi %{BUILDROOT}/bin/iptables-xml
 
-       # Replace absolute symlink
-       ln -svf ../sbin/xtables-multi $(BUILDROOT)/bin/iptables-xml
+               # Move binary which links to /usr/lib to /usr.
+               mkdir -pv %{BUILDROOT}/usr/sbin
+               mv -v %{BUILDROOT}/{,usr/}sbin/nfnl_osf
+       end
+end
 
-       # Move binary which links to /usr/lib to /usr.
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       mv -v $(BUILDROOT)/{,usr/}sbin/nfnl_osf
-endef
+packages
+       package %{name}
+               groups += Base
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index ae82eda9f1bd931e396709c44dffe20658feeffa..27b5fdef8b83d147693923e67cf42ccb5d313826 100644 (file)
@@ -1,79 +1,68 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = iputils
-PKG_VER        = s20071127
-PKG_REL        = 1
+name       = iputils
+version    = s20071127
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Networking/Tools
-PKG_URL        = http://www.skbuff.net/iputils
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Network monitoring tools including ping.
+groups     = Base Networking/Tools
+url        = http://www.skbuff.net/iputils
+license    = BSD
+summary    = Network monitoring tools including ping.
 
-PKG_BUILD_DEPS+= libcap-devel libidn-devel
-
-define PKG_DESCRIPTION
+description
        The iputils package contains basic utilities for monitoring a network, \
        including ping. The ping command sends a series of ICMP protocol \
        ECHO_REQUEST packets to a specified network host to discover whether \
        the target machine is alive and receiving network traffic.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+patches    = %{thisapp}-addrcache.patch
+patches   += %{thisapp}-arping-infiniband.patch
+patches   += %{thisapp}-arping_timeout.patch
+patches   += %{thisapp}-countermeasures.patch
+patches   += %{thisapp}-idn.patch
+patches   += %{thisapp}-open-max.patch
+patches   += %{thisapp}-ping-subint.patch
+patches   += %{thisapp}-ping_cleanup.patch
+patches   += %{thisapp}-rh.patch
+patches   += %{thisapp}-traffic_class.patch
+patches   += %{thisapp}-warnings.patch
+patches   += %{thisapp}-output.patch
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               libcap-devel
+               libidn-devel
+       end
 
-PKG_PATCHES    = $(THISAPP)-addrcache.patch
-PKG_PATCHES   += $(THISAPP)-arping-infiniband.patch
-PKG_PATCHES   += $(THISAPP)-arping_timeout.patch
-PKG_PATCHES   += $(THISAPP)-countermeasures.patch
-PKG_PATCHES   += $(THISAPP)-idn.patch
-PKG_PATCHES   += $(THISAPP)-open-max.patch
-PKG_PATCHES   += $(THISAPP)-ping-subint.patch
-PKG_PATCHES   += $(THISAPP)-ping_cleanup.patch
-PKG_PATCHES   += $(THISAPP)-rh.patch
-PKG_PATCHES   += $(THISAPP)-traffic_class.patch
-PKG_PATCHES   += $(THISAPP)-warnings.patch
-PKG_PATCHES   += $(THISAPP)-output.patch
+       install
+               mkdir -pv %{BUILDROOT}/{bin,sbin} %{BUILDROOT}/usr/sbin
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/{bin,sbin} $(BUILDROOT)/usr/sbin
+               install -cp clockdiff   %{BUILDROOT}/usr/sbin/
+               install -cp arping      %{BUILDROOT}/sbin/
+               install -cp ping        %{BUILDROOT}/bin/
+               install -cp ping6       %{BUILDROOT}/bin/
+               install -cp rdisc       %{BUILDROOT}/sbin/
+               install -cp tracepath   %{BUILDROOT}/bin/
+               install -cp tracepath6  %{BUILDROOT}/bin/
 
-       cd $(DIR_APP) && install -cp clockdiff  $(BUILDROOT)/usr/sbin/
-       cd $(DIR_APP) && install -cp arping             $(BUILDROOT)/sbin/
-       cd $(DIR_APP) && install -cp ping               $(BUILDROOT)/bin/
-       cd $(DIR_APP) && install -cp ping6              $(BUILDROOT)/bin/
-       cd $(DIR_APP) && install -cp rdisc              $(BUILDROOT)/sbin/
-       cd $(DIR_APP) && install -cp tracepath  $(BUILDROOT)/bin/
-       cd $(DIR_APP) && install -cp tracepath6 $(BUILDROOT)/bin/
+               ln -svf ../../sbin/arping       %{BUILDROOT}/usr/sbin/arping
+               ln -svf ../../bin/ping6         %{BUILDROOT}/usr/sbin/
+               ln -svf ../../bin/tracepath     %{BUILDROOT}/usr/sbin/
+               ln -svf ../../bin/tracepath6    %{BUILDROOT}/usr/sbin/
 
-       ln -svf ../../sbin/arping               $(BUILDROOT)/usr/sbin/arping
-       ln -svf ../../bin/ping6                 $(BUILDROOT)/usr/sbin/
-       ln -svf ../../bin/tracepath             $(BUILDROOT)/usr/sbin/
-       ln -svf ../../bin/tracepath6    $(BUILDROOT)/usr/sbin/
+               setcap cap_net_admin=ep %{BUILDROOT}/bin/ping
+               setcap cap_net_admin=ep %{BUILDROOT}/bin/ping6
+       end
+end
 
-       setcap cap_net_admin=ep $(BUILDROOT)/bin/ping
-       setcap cap_net_admin=ep $(BUILDROOT)/bin/ping6
-endef
+packages
+       package %{name}
+       end
+end
index c9d961460a90b0d38da07a52623e237c56af43b7..01e61c8df35d6808034f87423ab7ddd5e880d463 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = iscsi-initiator-utils
-PKG_VER        = 6.2.0.872
-PKG_REL        = 0
+name       = iscsi-initiator-utils
+version    = 6.2.0.872
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://bridge.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = iSCSI daemon and utility programs.
+groups     = Networking/Tools
+url        = http://bridge.sourceforge.net/
+license    = GPLv2+
+summary    = iSCSI daemon and utility programs.
 
-PKG_BUILD_DEPS+= openssl-devel python-devel
-
-define PKG_DESCRIPTION
+description
        The iscsi package provides the server daemon for the iSCSI protocol, \
        as well as the utility programs used to manage it. iSCSI is a protocol \
        for distributed disk access using SCSI commands sent over Internet \
        Protocol networks.
-endef
-
-PKG_PACKAGES  += libiscsi libiscsi-devel
-
-define PKG_FILES-libiscsi
-       /usr/lib/libiscsi.so.*
-endef
-
-define PKG_FILES-libiscsi-devel
-       /usr/lib/libiscsi.so
-       /usr/include
-endef
-
-PKG_TARBALL    = open-iscsi-2.0-872-rc4-bnx2i.tar.gz
-DIR_APP        = $(DIR_SRC)/open-iscsi-2.0-872-rc4-bnx2i
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP)/libiscsi && sed -e "s/^all.*/all: lib tests/" -i Makefile
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP)/utils/open-isns && ./configure
-       cd $(DIR_APP)/utils/open-isns && make
-       cd $(DIR_APP) && make -C utils/sysdeps
-       cd $(DIR_APP) && make -C utils/fwparam_ibft
-       cd $(DIR_APP) && make -C usr
-       cd $(DIR_APP) && make -C utils
-       cd $(DIR_APP) && make -C libiscsi
-       cd $(DIR_APP)/libiscsi && python setup.py build
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/sbin
-       -mkdir -pv $(BUILDROOT)/usr/share/man/man8
-       -mkdir -pv $(BUILDROOT)/etc/{iscsi,sysconfig}
-       -mkdir -pv $(BUILDROOT)/etc/NetworkManager/dispatcher.d
-       -mkdir -pv $(BUILDROOT)/var/lib/iscsi/{nodes,send_targets,static,isns,slp,ifaces}
-       -mkdir -pv $(BUILDROOT)/var/lock/iscsi
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       -mkdir -pv $(BUILDROOT)/usr/include
-       -mkdir -pv $(BUILDROOT)/usr/lib/python2.7/site-packages
-       cd $(DIR_APP) && install -p -m 755 usr/iscsid usr/iscsiadm utils/iscsi-iname usr/iscsistart \
-               $(BUILDROOT)/sbin
-       cd $(DIR_APP) && install -p -m 644 doc/iscsiadm.8 $(BUILDROOT)/usr/share/man/man8
-       cd $(DIR_APP) && install -p -m 644 doc/iscsid.8 $(BUILDROOT)/usr/share/man/man8
-       cd $(DIR_APP) && install -p -m 644 etc/iscsid.conf $(BUILDROOT)/etc/sysconfig/iscsi
-       cd $(DIR_APP) && install -p -m 644 doc/iscsistart.8 $(BUILDROOT)/usr/share/man/man8
-       cd $(DIR_APP) && install -p -m 644 doc/iscsi-iname.8 $(BUILDROOT)/usr/share/man/man8
-
-       cd $(DIR_APP) && install -p -m 755 $(DIR_SOURCE)/04-iscsi $(BUILDROOT)/etc/NetworkManager/dispatcher.d
-
-       cd $(DIR_APP) && install -p -m 755 libiscsi/libiscsi.so.0 $(BUILDROOT)/usr/lib
-       ln -svf libiscsi.so.0 $(BUILDROOT)/usr/lib/libiscsi.so
-       cd $(DIR_APP) && install -p -m 644 libiscsi/libiscsi.h $(BUILDROOT)/usr/include
-
-       cd $(DIR_APP) && install -p -m 755 libiscsi/build/lib.linux-*/libiscsimodule.so \
-               $(BUILDROOT)/usr/lib/python2.7/site-packages
-endef
+end
+
+source_dl  =
+sources    = open-iscsi-2.0-872-rc4-bnx2i.tar.gz
+
+build
+       requires
+               openssl-devel
+               python-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/open-iscsi-2.0-872-rc4-bnx2i
+
+       prepare_cmds
+               cd libiscsi && sed -e "s/^all.*/all: lib tests/" -i Makefile
+       end
+
+       build
+               cd %{DIR_APP}/utils/open-isns && ./configure
+               cd %{DIR_APP}/utils/open-isns && make
+               cd %{DIR_APP} && make -C utils/sysdeps
+               cd %{DIR_APP} && make -C utils/fwparam_ibft
+               cd %{DIR_APP} && make -C usr
+               cd %{DIR_APP} && make -C utils
+               cd %{DIR_APP} && make -C libiscsi
+               cd %{DIR_APP}/libiscsi && python setup.py build
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/sbin
+               mkdir -pv %{BUILDROOT}/usr/share/man/man8
+               mkdir -pv %{BUILDROOT}/etc/{iscsi,sysconfig}
+               mkdir -pv %{BUILDROOT}/etc/NetworkManager/dispatcher.d
+               mkdir -pv %{BUILDROOT}/var/lib/iscsi/{nodes,send_targets,static,isns,slp,ifaces}
+               mkdir -pv %{BUILDROOT}/var/lock/iscsi
+               mkdir -pv %{BUILDROOT}/usr/lib
+               mkdir -pv %{BUILDROOT}/usr/include
+               mkdir -pv %{BUILDROOT}/usr/lib/python2.7/site-packages
+
+               install -p -m 755 usr/iscsid usr/iscsiadm utils/iscsi-iname usr/iscsistart \
+                       %{BUILDROOT}/sbin
+               install -p -m 644 doc/iscsiadm.8 %{BUILDROOT}/usr/share/man/man8
+               install -p -m 644 doc/iscsid.8 %{BUILDROOT}/usr/share/man/man8
+               install -p -m 644 etc/iscsid.conf %{BUILDROOT}/etc/sysconfig/iscsi
+               install -p -m 644 doc/iscsistart.8 %{BUILDROOT}/usr/share/man/man8
+               install -p -m 644 doc/iscsi-iname.8 %{BUILDROOT}/usr/share/man/man8
+
+               install -p -m 755 %{DIR_SOURCE}/04-iscsi %{BUILDROOT}/etc/NetworkManager/dispatcher.d
+
+               install -p -m 755 libiscsi/libiscsi.so.0 %{BUILDROOT}/usr/lib
+               ln -svf libiscsi.so.0 %{BUILDROOT}/usr/lib/libiscsi.so
+               install -p -m 644 libiscsi/libiscsi.h %{BUILDROOT}/usr/include
+
+               install -p -m 755 libiscsi/build/lib.linux-*/libiscsimodule.so \
+                       %{BUILDROOT}/usr/lib/python2.7/site-packages
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package libiscsi
+               template LIBS
+       
+               files
+                       /usr/lib*/libiscsi.so.*
+               end
+       end
+       
+       package libiscsi-devel
+               template DEVEL
+       
+               files
+                       /usr/lib/libiscsi.so
+                       /usr/include
+               end
+       end
+end
index 9861b48d8a71d57b62faf11c902df0d1f2c827df..ff42e14538ca099386acd57aa0fe4d3cec634ba1 100644 (file)
@@ -1,50 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = iw
-PKG_VER        = 3.0
-PKG_REL        = 1
+name       = iw
+version    = 3.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.linuxwireless.org/en/users/Documentation/iw
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A nl80211 based wireless configuration tool.
+groups     = System/Base
+url        = http://www.linuxwireless.org/en/users/Documentation/iw
+license    = BSD
+summary    = A nl80211 based wireless configuration tool.
 
-PKG_BUILD_DEPS+= libnl-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        iw is a new nl80211 based CLI configuration utility for wireless \
        devices. It supports almost all new drivers that have been added \
        to the kernel recently.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/sbin
-       mv -v $(BUILDROOT)/usr/sbin/iw $(BUILDROOT)/sbin/iw
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libnl-devel
+               pkg-config
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/sbin
+               mv -v %{BUILDROOT}/usr/sbin/iw %{BUILDROOT}/sbin/iw
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 803d72b1c31bd3349c9fafb3bad3f01bf9457d3e..e3cc1bb6c9dfaa976f97049813352f670c2acb13 100644 (file)
@@ -1,47 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = joe
-PKG_VER        = 3.7
-PKG_REL        = 1
+name       = joe
+version    = 3.7
+release    = 1
 
-PKG_BUILD_DEPS+= libselinux-devel
+groups     = Applications/Editors
+url        = http://joe-editor.sourceforge.net/
+license    = GPLv2+
+summary    = A small text editor similar to wordstar in matter of usage.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Editors
-PKG_URL        = http://joe-editor.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A small text editor similar to wordstar in matter of usage.
-
-define PKG_DESCRIPTION
+description
        Joe is a small and friendly text editor which provides the look \
        and feel of the good old wordstar.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libselinux-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --sysconfdir=/etc
+end
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc
+packages
+       package %{name}
+       end
+end
index db3d196402c09bf57cfda412018de58c9fa729ab..607a0ade226b0f3baa90faf4ceffb6e146ba86a6 100644 (file)
@@ -1,57 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = jwhois
-PKG_VER        = 4.0
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/Internet
-PKG_URL        = http://www.gnu.org/software/jwhois/
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = Internet whois/nicname client.
+name       = jwhois
+version    = 4.0
+release    = 0
 
-PKG_BUILD_DEPS+= gdbm-devel
+groups     = Base Applications/Internet
+url        = http://www.gnu.org/software/jwhois/
+license    = GPLv3
+summary    = Internet whois/nicname client.
 
-define PKG_DESCRIPTION
+description
        A whois client that accepts both traditional and finger-style queries.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PATCHES    = $(THISAPP)-connect.patch
-PKG_PATCHES   += $(THISAPP)-ipv6match.patch
-PKG_PATCHES   += $(THISAPP)-enum.patch
-PKG_PATCHES   += $(THISAPP)-fclose.patch
-PKG_PATCHES   += $(THISAPP)-conf.patch
-PKG_PATCHES   += $(THISAPP)-gi.patch
-PKG_PATCHES   += $(THISAPP)-conf_update.patch
-PKG_PATCHES   += $(THISAPP)-conf_update2.patch
-PKG_PATCHES   += $(THISAPP)-dotster.patch
-PKG_PATCHES   += $(THISAPP)-conf_update3.patch
-PKG_PATCHES   += $(THISAPP)-conf_update4.patch
-
-CONFIGURE_OPTIONS += --sysconfdir=/etc
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.gz
+
+patches    = %{thisapp}-connect.patch
+patches   += %{thisapp}-ipv6match.patch
+patches   += %{thisapp}-enum.patch
+patches   += %{thisapp}-fclose.patch
+patches   += %{thisapp}-conf.patch
+patches   += %{thisapp}-gi.patch
+patches   += %{thisapp}-conf_update.patch
+patches   += %{thisapp}-conf_update2.patch
+patches   += %{thisapp}-dotster.patch
+patches   += %{thisapp}-conf_update3.patch
+patches   += %{thisapp}-conf_update4.patch
+
+build
+       requires
+               gdbm-devel
+       end
+
+       configure_options += --sysconfdir=/etc
+end
+
+packages
+       package %{name}
+       end
+end
index e46b59d2f9ae4e71b2b40413a04fef0e6f51f49d..daed6ac6269880f22452a263778bcc8e78752d7b 100644 (file)
@@ -1,59 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = kbd
+version    = 1.15
+release    = 1
+epoch      = 1
 
-PKG_NAME       = kbd
-PKG_VER        = 1.15
-PKG_REL        = 0
-PKG_EPOCH      = 1
+groups     = System/Base
+url        = http://ftp.altlinux.org/pub/people/legion/kbd
+license    = GPLv2+
+summary    = Tools for configuring the console (keyboard, virtual terminals, etc.).
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://ftp.altlinux.org/pub/people/legion/kbd
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Tools for configuring the console (keyboard, virtual terminals, etc.).
-
-define PKG_DESCRIPTION
+description
        The kbd package contains tools for managing a Linux \
        system's console's behavior, including the keyboard, the screen \
        fonts, the virtual terminals and font files.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-PKG_OBJECTS   += kbd-latarcyrheb-16-fixed.tar.bz2
-PKG_OBJECTS   += kbd-latsun-fonts.tar.bz2
+end
 
-CONFIGURE_OPTIONS += --datadir=/lib/kbd
+source_dl  =
+sources   += kbd-latarcyrheb-16-fixed.tar.bz2
+sources   += kbd-latsun-fonts.tar.bz2
 
-define STAGE_PREPARE_CMDS
+build
+       configure_options += \
+               --datadir=/lib/kbd
+       
        # Adding our own fonts
-       cd $(DIR_APP) && $(DO_EXTRACT) $(DIR_DL)/kbd-latsun-fonts.tar.bz2
-       cd $(DIR_APP) && $(DO_EXTRACT) $(DIR_DL)/kbd-latarcyrheb-16-fixed.tar.bz2
-endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/bin
-       mv -v $(BUILDROOT)/usr/bin/{kbd_mode,loadkeys,openvt,setfont} $(BUILDROOT)/bin
-endef
+       prepare_cmds
+               %{MACRO_EXTRACT} %{DIR_DL}/kbd-latarcyrheb-16-fixed.tar.bz2
+               %{MACRO_EXTRACT} %{DIR_DL}/kbd-latsun-fonts.tar.bz2
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/bin
+               mv -v %{BUILDROOT}/usr/bin/{kbd_mode,loadkeys,openvt,setfont} %{BUILDROOT}/bin
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index bddde4f4ee0e94e654357619300c41ddf96b1c80..ce1f4ae00419c3366fd0cb607f22f156a311fcaf 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = linux
+version    = 2.6.39
+release    = 4
 
-PKG_NAME       = linux
-PKG_VER        = 2.6.39
-PKG_REL        = 4
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = System/Kernels
+url        = http://www.kernel.org/
+license    = GPLv2
+summary    = The Linux kernel.
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = System/Kernels
-PKG_URL        = http://www.kernel.org/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = The Linux kernel.
-
-PKG_BUILD_DEPS+= module-init-tools ncurses-devel perl
-PKG_DEPS-kernel= dracut linux-firmware
-
-define PKG_DESCRIPTION
+description
        The kernel package contains the Linux kernel (vmlinuz), the core of any \
        Linux operating system. The kernel handles the basic functions \
        of the operating system: memory allocation, process allocation, device \
        input and output, etc.
-endef
+end
 
 CFLAGS     =
 CXXFLAGS   =
 
-LOCALVERSION   = -$(DISTRO_SNAME)$(PKG_REL)
-FULLVER        = $(PKG_VER)$(LOCALVERSION)
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += kernel-headers
-
-PKG_SUMMARY-kernel-headers     = Header files if the kernel release $(FULLVER).
-PKG_DESCRIPTION-kernel-headers = $(PKG_SUMMARY-kernel-headers)
-PKG_FILES-kernel-headers       = /usr/include
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && echo "$(LOCALVERSION)" > localversion-$(DISTRO_SNAME)
-       rm -f $(DIR_APP)/localversion-grsec
-
-       cd $(DIR_APP) && sed -e "s/^HOSTCFLAGS.*=.*/& -fPIC/g" -i Makefile
-
-       cd $(DIR_APP) && cp -vf $(DIR_SOURCE)/$(DISTRO_SNAME)_logo.ppm \
-               drivers/video/logo/logo_linux_clut224.ppm
-
-       cd $(DIR_APP) && make mrproper
-
-       # Install configuration file
-       cp -f $(DIR_SOURCE)/config $(DIR_APP)/.config
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && yes "" | make oldconfig
-
-       # Check headers
-       cd $(DIR_APP) && make ARCH=x86 headers_check
-
-       cd $(DIR_APP) && make CC="gcc -nopie" $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make modules_install INSTALL_MOD_PATH=$(BUILDROOT)
-
-       -mkdir -pv $(BUILDROOT)/boot
-       cd $(DIR_APP) && cp -v arch/x86/boot/bzImage $(BUILDROOT)/boot/vmlinuz-$(FULLVER)
-       cd $(DIR_APP) && cp -v System.map $(BUILDROOT)/boot/System.map-$(FULLVER)
-
-       -mkdir -pv $(BUILDROOT)/lib/modules/$(FULLVER)/extra
-
-       rm -vf $(BUILDROOT)/lib/modules/$(FULLVER)/{build,source}
-
-       # Install the header files
-       cd $(DIR_APP) && make ARCH=x86 INSTALL_HDR_PATH=dest headers_install
-       -mkdir -pv $(BUILDROOT)/usr/include
-       cd $(DIR_APP) && find dest/include \( -name .install -o -name ..install.cmd \) -delete
-       cd $(DIR_APP) && cp -rv dest/include/* $(BUILDROOT)/usr/include
-
-       # Glibc provides these headers
-       rm -rfv $(BUILDROOT)/usr/include/scsi \
-               $(BUILDROOT)/usr/include/asm*/atomic.h \
-               $(BUILDROOT)/usr/include/asm*/io.h \
-               $(BUILDROOT)/usr/include/asm*/irq.h
-
-        # Create an empty settings file for dracut
-        mkdir -vp $(BUILDROOT)/etc/ld.so.conf.d/
-        echo "# Placeholder file, no vDSO hwcap entries used in this kernel." \
-        > $(BUILDROOT)/etc/ld.so.conf.d/kernel-$(FULLVER).conf
-endef
+# Version helper variables.
+localversion = -%{DISTRO_SNAME}%{release}
+fullver      = %{version}%{localversion}
+
+sources      = %{thisapp}.tar.bz2
+
+build
+       requires
+               module-init-tools
+               ncurses-devel
+               perl
+       end
+
+       prepare_cmds
+               echo "%{localversion}" > localversion-%{DISTRO_SNAME}
+               rm -f %{DIR_APP}/localversion-grsec
+
+               sed -e "s/^HOSTCFLAGS.*=.*/& -fPIC/g" -i Makefile
+
+               cp -vf %{DIR_SOURCE}/%{DISTRO_SNAME}_logo.ppm \
+                       drivers/video/logo/logo_linux_clut224.ppm
+
+               make mrproper
+
+               # Install configuration file
+               cp -f %{DIR_SOURCE}/config %{DIR_APP}/.config
+       end
+
+       build
+               yes "" | make oldconfig
+
+               # Check headers
+               make ARCH=x86 headers_check
+
+               make CC="gcc -nopie" %{PARALLELISMFLAGS}
+       end
+
+       install
+               make modules_install INSTALL_MOD_PATH=%{BUILDROOT}
+
+               mkdir -pv %{BUILDROOT}/boot
+               cp -v arch/x86/boot/bzImage %{BUILDROOT}/boot/vmlinuz-%{fullver}
+               cp -v System.map %{BUILDROOT}/boot/System.map-%{fullver}
+
+               mkdir -pv %{BUILDROOT}/lib/modules/%{fullver}/extra
+
+               rm -vf %{BUILDROOT}/lib/modules/%{fullver}/{build,source}
+
+               # Install the header files
+               make ARCH=x86 INSTALL_HDR_PATH=dest headers_install
+               mkdir -pv %{BUILDROOT}/usr/include
+               find dest/include \( -name .install -o -name ..install.cmd \) -delete
+               cp -rv dest/include/* %{BUILDROOT}/usr/include
+
+               # Glibc provides these headers
+               rm -rfv %{BUILDROOT}/usr/include/scsi \
+                       %{BUILDROOT}/usr/include/asm*/atomic.h \
+                       %{BUILDROOT}/usr/include/asm*/io.h \
+                       %{BUILDROOT}/usr/include/asm*/irq.h
+
+               # Create an empty settings file for dracut
+               mkdir -vp %{BUILDROOT}/etc/ld.so.conf.d/
+               echo "# Placeholder file, no vDSO hwcap entries used in this kernel." \
+               > %{BUILDROOT}/etc/ld.so.conf.d/kernel-%{fullver}.conf
+       end
+end
+
+packages
+       package kernel
+               requires
+                       dracut
+                       linux-firmware
+               end
+       end
+       
+       package kernel-headers
+               template DEVEL
+       
+               summary = Header files of the kernel release %{fullver}.
+               desciption = %{summary}
+       end
+       
+end
index d8bb40090c2d2055e023ef6b291b5819ce55d625..5be216acf41f36e3c1a028e43de2d948dd028827 100644 (file)
@@ -1,51 +1,38 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = l7-protocols
+version    = 2007-11-22
+release    = 1
 
-PKG_NAME       = l7-protocols
-PKG_VER        = 2007-11-22
-PKG_REL        = 0
+groups     = Networking/Firewall
+url        = http://l7-filter.sourceforge.net/
+license    = GPLv2+
+summary    = Application Layer Packet Classifier for Linux.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Firewall
-PKG_URL        = http://l7-filter.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Application Layer Packet Classifier for Linux.
-
-define PKG_DESCRIPTION
+description
        L7-filter is a classifier for Linux's Netfilter that identifies packets \
        based on application layer data. It can classify packets as Kazaa, HTTP, \
        Jabber, Citrix, Bittorrent, FTP, Gnucleus, eDonkey2000, etc., regardless \
        of port.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       build
+               : # Do nothing
+       end
 
-STAGE_BUILD = # Do nothing
+       install
+               mkdir -p %{BUILDROOT}/etc/l7-protocols
+               cp -Rfv %{DIR_APP}/* %{BUILDROOT}/etc/l7-protocols
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -p $(BUILDROOT)/etc/l7-protocols
-       cp -Rfv $(DIR_APP)/* $(BUILDROOT)/etc/l7-protocols
-endef
+packages
+       package %{name}
+       end
+end
index 62a8acb92a773ccc98a22f16940428242fc1fc0a..75d397c32bb3f4d98a2e64ce28c78f567827f893 100644 (file)
@@ -1,56 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = ldapvi
-PKG_VER        = 1.7
-PKG_REL        = 0
+name       = ldapvi
+version    = 1.7
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Editors
-PKG_URL        = http://www.lichteblau.com/ldapvi/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = An interactive LDAP client.
+groups     = Applications/Editors
+url        = http://www.lichteblau.com/ldapvi/
+license    = GPLv2+
+summary    = An interactive LDAP client.
 
-PKG_BUILD_DEPS+= glib2-devel ncurses-devel openldap-devel openssl-devel \
-       pkg-config popt-devel readline-devel
-PKG_DEPS      += vim
-
-define PKG_DESCRIPTION
+description
        ldapvi is an interactive LDAP client for Unix terminals. Using it, you can \
        update LDAP entries with a text editor, which is the same as vi. Think of \
        it as vipw(1) for LDAP.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && for i in $$(find . -name "*.[ch]"); do \
-               sed -e "s/getline/_&/g" -i $$i; done
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install prefix=$(BUILDROOT)/usr
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               glib2-devel
+               ncurses-devel
+               openldap-devel
+               openssl-devel
+               pkg-config
+               popt-devel
+               readline-devel
+       end
+
+       prepare_cmds
+               for i in $(find . -name "*.[ch]"); do \
+                       sed -e "s/getline/_&/g" -i $i
+               done
+       end
+
+       install
+               make install prefix=%{BUILDROOT}/usr
+       end
+end
+
+packages
+       package %{name}
+               requires = vim
+       end
+end
index 62daa92666845533fc5ec5fa1bd50d7b08e037a1..2e95742b76e8b63837c7b25890a29c46faf7f0ba 100644 (file)
@@ -1,59 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = less
-PKG_VER        = 444
-PKG_REL        = 1
+name       = less
+version    = 444
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/Text
-PKG_URL        = http://www.greenwoodsoftware.com/less/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A text file browser similar to more, but better.
+groups     = Base Applications/Text
+url        = http://www.greenwoodsoftware.com/less/
+license    = GPLv3+
+summary    = A text file browser similar to more, but better.
 
-PKG_BUILD_DEPS+= ncurses-devel pcre-devel
-
-define PKG_DESCRIPTION
+description
        The less utility is a text file browser that resembles more, but has \
        more capabilities. Less allows you to move backwards in the file as \
        well as forwards. Since less doesn't have to read the entire input file \
        before it starts, less starts up more quickly than text editors (for \
        example, vi).
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               ncurses-devel
+               pcre-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --sysconfdir=/etc \
+               --with-regex=pcre
 
-CONFIGURE_OPTIONS += --sysconfdir=/etc --with-regex=pcre
+       CFLAGS += -D_GNU_SOURCE
 
-CFLAGS += -D_GNU_SOURCE
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/profile.d
+               install -v -m 755 %{DIR_SOURCE}/less.sh %{BUILDROOT}/etc/profile.d
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/profile.d
-       install -v -m 755 $(DIR_SOURCE)/less.sh $(BUILDROOT)/etc/profile.d
+               mkdir -pv %{BUILDROOT}/usr/bin
+               install -v -m 755 %{DIR_SOURCE}/lesspipe.sh %{BUILDROOT}/usr/bin
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       install -v -m 755 $(DIR_SOURCE)/lesspipe.sh $(BUILDROOT)/usr/bin
-endef
+packages
+       package %{name}
+       end
+end
index b6725851ecf6dc8e39bf2720d6a68b7640336d7c..8ec2d82369010164b6717aa2d903c18d9cbd59f7 100644 (file)
@@ -1,48 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libICE
-PKG_VER        = 1.0.6
-PKG_REL        = 0
+name       = libICE
+version    = 1.0.6
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libICE runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libICE runtime library.
 
-PKG_BUILD_DEPS+= pkg-config xorg-x11-proto-devel xorg-x11-xtrans-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libICE development package.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-xtrans-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 1bfc15aa347c37b0a2e3dbcc5948aa26a87025cc..7c6cc8c3e570fe3e451019b80709a4cee81afa9e 100644 (file)
@@ -1,49 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libSM
-PKG_VER        = 1.1.1
-PKG_REL        = 0
+name       = libSM
+version    = 1.1.1
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libSM runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libSM runtime library.
 
-PKG_BUILD_DEPS+= libICE-devel libuuid-devel pkg-config xorg-x11-proto-devel \
-       xorg-x11-xtrans-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libSM development package.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libICE-devel
+               libuuid-devel
+               xorg-x11-proto-devel
+               xorg-x11-xtrans-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 4d69435c758eb1a15fa8480bc0c3240690bb0eac..db77f0cbd9cc9b651b56a8586b91784270d85025 100644 (file)
@@ -1,52 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libVNCServer
-PKG_VER        = 0.9.7
-PKG_REL        = 0
-
-PKG_MAINTAINER = 
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://libvncserver.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Library to make writing a vnc server easy.
+name       = libVNCServer
+version    = 0.9.7
+release    = 1
 
-PKG_BUILD_DEPS+= libjpeg-devel zlib-devel
+groups     = System/Libraries
+url        = http://libvncserver.sourceforge.net/
+license    = GPLv2+
+summary    = Library to make writing a vnc server easy.
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        LibVNCServer makes writing a VNC server (or more correctly, a program\
        exporting a framebuffer via the Remote Frame Buffer protocol) easy.
-endef
-
-PKG_TARBALL    = LibVNCServer-$(PKG_VER).tar.gz
-
-DIR_APP        = $(DIR_SRC)/LibVNCServer-$(PKG_VER)
-
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --without-tightvnc-filetransfer
+end
+
+source_dl  =
+sources    = LibVNCServer-%{version}.tar.gz
+
+build
+       requires
+               libjpeg-devel
+               zlib-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/LibVNCServer-%{version}
+
+       configure_options += \
+               --disable-static \
+               --without-tightvnc-filetransfer
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index c163bcf0b47174090fa025158f046ea6c7139366..f705a4841608bb64b3c8c9b544ae029fae851eb7 100644 (file)
@@ -1,45 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libX11
-PKG_VER        = 1.3.2
-PKG_REL        = 0
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X11 protocol client library.
-
-PKG_BUILD_DEPS+= libxcb-devel pkg-config xorg-x11-proto-devel xorg-x11-xtrans-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
-       Client library for X.org X11 protocol. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
+name       = libX11
+version    = 1.3.2
+release    = 1
+
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = System/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X11 protocol client library.
+
+description
+       Client library for X.org X11 protocol.
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libxcb-devel
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-xtrans-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 089bd014f9a82f8cf5291e46eeeef4d516f59414..d35344b12dfce78c18df04c6de428c08b8aeafdf 100644 (file)
@@ -1,56 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXau
-PKG_VER        = 1.0.6
-PKG_REL        = 1
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://xcb.freedesktop.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Sample Authorization Protocol for X.
+name       = libXau
+version    = 1.0.6
+release    = 1
 
-PKG_BUILD_DEPS+= pkg-config xorg-x11-proto-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://xcb.freedesktop.org/
+license    = MIT
+summary    = Sample Authorization Protocol for X.
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        This is a very simple mechanism for providing individual access \
        to an X Window System display.It uses existing core protocol and \
        library hooks for specifying authorization data in the connection \
        setup block to restrict use of the display to only those clients \
        that show that they know a server-specific key called a \
        magic cookie.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
-
-STAGE_INSTALL_TARGETS += \
-       INSTALL="install -p"
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options +=\
+               --disable-static
+
+       #make_install_targets +=\
+       #       INSTALL="install -p"
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 46b3f7e82bb44781b90a32fd596e321ed948f2fe..084330a1159f78b87db61bc9455547dc80118f03 100644 (file)
@@ -1,49 +1,47 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXaw
-PKG_VER        = 1.0.7
-PKG_REL        = 0
+name       = libXaw
+version    = 1.0.7
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X Athena Widget Set.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X Athena Widget Set.
 
-PKG_BUILD_DEPS+= libICE-devel libSM-devel libX11-devel libXt-devel libXmu-devel \
-       libXpm-devel libXext-devel pkg-config xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        Xaw is a widget set based on the X Toolkit Intrinsics (Xt) Library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libICE-devel
+               libSM-devel
+               libX11-devel
+               libXt-devel
+               libXmu-devel
+               libXpm-devel
+               libXext-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 204183bdad904581c003862fa22d764fee17153f..f8c2af7f71288a0aca501001cc337b89154e14bf 100644 (file)
@@ -1,48 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXdamage
-PKG_VER        = 1.1.3
-PKG_REL        = 0
+name       = libXdamage
+version    = 1.1.3
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X Damage extension library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X Damage extension library.
 
-PKG_BUILD_DEPS+= libX11-devel libXfixes-devel pkg-config xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXdamage runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXfixes-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b1a357d922b43d2c38fcc615f6f30c1fa22791c7..b5a5212c9b1b1b0f95ad0683a0255fec5a6a9488 100644 (file)
@@ -1,48 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXdmcp
-PKG_VER        = 1.0.3
-PKG_REL        = 0
+name       = libXdmcp
+version    = 1.0.3
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X Display Manager Control Protocol library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X Display Manager Control Protocol library.
 
-PKG_BUILD_DEPS+= pkg-config xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X Display Manager Control Protocol library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index a8163c924409b125e0ab3fe78f6ee2f29aacc81d..5c65c16b0ec1923eccc60d0a209305c8f306af9d 100644 (file)
@@ -1,48 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXext
-PKG_VER        = 1.1.2
-PKG_REL        = 0
+name       = libXext
+version    = 1.1.2
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXext runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXext runtime library.
 
-PKG_BUILD_DEPS+= libX11-devel libXau-devel pkg-config xorg-x11-proto-devel
+PKG_PACKAGES  += %{name}-devel
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXext development package.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+
+build
+       requires
+               libX11-devel
+               libXau-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index d4209ffee158dd6a4f3750edeee9c410473f74d3..8ceb642fc80c5d1bf8281de1063b807dbd19470c 100644 (file)
@@ -1,48 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXfixes
-PKG_VER        = 4.0.5
-PKG_REL        = 0
+name       = libXfixes
+version    = 4.0.5
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X Fixes library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X Fixes library.
 
-PKG_BUILD_DEPS+= libX11-devel pkg-config xorg-x11-proto-devel
+PKG_PACKAGES  += %{name}-devel
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X Fixes library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index a47de6541cc6e5987a569f8851feaefd96b85730..42236acf5446ddf427dcaf6aa0054683ef6d9d26 100644 (file)
@@ -1,49 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXfont
-PKG_VER        = 1.4.2
-PKG_REL        = 0
+name       = libXfont
+version    = 1.4.2
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    =  X.Org X11 libXfont runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    =  X.Org X11 libXfont runtime library.
 
-PKG_BUILD_DEPS+= freetype-devel libfontenc-devel pkg-config\
-       xorg-x11-proto-devel xorg-x11-xtrans-devel zlib-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXfont development package.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               freetype-devel
+               libfontenc-devel
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-xtrans-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 0a964e6ffb7b0d8d364f5b9ac47ec2d87925b20b..171ca074c8a6b9821b88ce0e6dceaa48cdb94cf1 100644 (file)
@@ -1,49 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXft
-PKG_VER        = 2.1.14
-PKG_REL        = 0
+name       = libXft
+version    = 2.1.14
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXft runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXft runtime library.
 
-PKG_BUILD_DEPS+= fontconfig-devel freetype-devel libXrender-devel pkg-config \
-       xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXft runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               fontconfig-devel
+               freetype-devel
+               libXrender-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 584c91b81ee7975ae83df572c51fdce24b7b1993..97dba7556ce320e23bbed048efb743b2971af0ab 100644 (file)
@@ -1,49 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXi
-PKG_VER        = 1.3.2
-PKG_REL        = 0
+name       = libXi
+version    = 1.3.2
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://xcb.freedesktop.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXi runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://xcb.freedesktop.org/
+license    = MIT
+summary    = X.Org X11 libXi runtime library.
 
-PKG_BUILD_DEPS+= libX11-devel libXext-devel pkg-config \
-       xorg-x11-proto-devel xorg-x11-util-macros
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXi runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXext-devel
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-util-macros
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index e6b6c989db70c1f0efd3de1305287399e926e90f..80328acbf62eb15ca4d03725cbe9e0b032cbca65 100644 (file)
@@ -1,49 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXmu
-PKG_VER        = 1.0.5
-PKG_REL        = 0
+name       = libXmu
+version    = 1.0.5
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXmu/libXmuu runtime libraries.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXmu/libXmuu runtime libraries.
 
-PKG_BUILD_DEPS+= libICE-devel libSM-devel libX11-devel libXext-devel libXt-devel\
-        pkg-config xorg-x11-util-macros xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXmu/libXmuu runtime libraries.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libICE-devel
+               libSM-devel
+               libX11-devel
+               libXext-devel
+               libXt-devel
+               pkg-config
+               xorg-x11-util-macros
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index f8ec21127722026f6fe75db8f6d718ab4eb7324c..ce78a7e2430c83db38b69ebdd351d8d539e1c2f3 100644 (file)
@@ -1,49 +1,47 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXpm
-PKG_VER        = 3.5.8
-PKG_REL        = 0
+name       = libXpm
+version    = 3.5.8
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXpm runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXpm runtime library.
 
-PKG_BUILD_DEPS+= gettext libICE-devel libSM-devel libX11-devel libXau-devel \
-       libXext-devel libXt-devel pkg-config xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXpm runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               gettext
+               libICE-devel
+               libSM-devel
+               libX11-devel
+               libXau-devel
+               libXext-devel
+               libXt-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 29481d6968ebd724a3d4f8a8c7dc5fa428144511..d4d9fdd24f9993e83b4aad6fae68949ef7f76c1a 100644 (file)
@@ -1,49 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXrandr
-PKG_VER        = 1.3.0
-PKG_REL        = 0
+name       = libXrandr
+version    = 1.3.0
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X11 libXrandr runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X11 libXrandr runtime library.
 
-PKG_BUILD_DEPS+= libX11-devel libXext-devel libXrender-devel pkg-config \
-       xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXrandr runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXext-devel
+               libXrender-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index fd5bb0784336b74da4c40f8a7d0cb1235731b4dc..b622d9a52b5c12017ec828bbc9ff1439019e85b3 100644 (file)
@@ -1,48 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXrender
-PKG_VER        = 0.9.6
-PKG_REL        = 0
+name       = libXrender
+version    = 0.9.6
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X11 libXrender runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X11 libXrender runtime library.
 
-PKG_BUILD_DEPS+= libX11-devel pkg-config xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXrender runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 8d63dc002345f67f09d3a44e0acadba637c9432d..d03e476a9cea346545a247f5257aaf5c5d6c3a3b 100644 (file)
@@ -1,52 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXres
-PKG_VER        = 1.0.4
-PKG_REL        = 0
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X-Resource extension client library.
+name       = libXres
+version    = 1.0.4
+release    = 1
 
-PKG_BUILD_DEPS+= libX11-devel libXext-devel pkg-config xorg-x11-proto-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X-Resource extension client library.
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X-Resource is an extension that allows a client to query \
-       the X server about its usage of various resources. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
-
-STAGE_INSTALL_TARGETS += \
-       INSTALL="install -p"
+       the X server about its usage of various resources.
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXext-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+
+       make_install_targets += INSTALL="install -p"
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 46f581ea5edd1bcb92314989fa4bcf9070775905..7bc1eae33dcfb5af7b061bb6b8dc9077b0ebbe56 100644 (file)
@@ -1,51 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXt
-PKG_VER        = 1.0.7
-PKG_REL        = 0
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXt runtime library.
+name       = libXt
+version    = 1.0.7
+release    = 1
 
-PKG_BUILD_DEPS+= libICE-devel libSM-devel libX11-devel pkg-config\
-        xorg-x11-proto-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXt runtime library.
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXt runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CFLAGS         += -fno-strict-aliasing
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libICE-devel
+               libSM-devel
+               libX11-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       CFLAGS += -fno-strict-aliasing
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index ed5ecc52c9d092148edca860decff04399d66df0..68b4c1090b9c28475c9a070c3ec11195bdd13603 100644 (file)
@@ -1,49 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXtst
-PKG_VER        = 1.1.0
-PKG_REL        = 0
+name       = libXtst
+version    = 1.1.0
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXtst runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXtst runtime library.
 
-PKG_BUILD_DEPS+= libX11-devel libXext-devel libXi-devel pkg-config \
-        xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXtst development package.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXext-devel
+               libXi-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 0ee04ad5bc36c78913603f7736d3a6c7179a7b3c..50fb007f05bd408d7f55d2bf72c4b828f3fd5053 100644 (file)
@@ -1,49 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXv
-PKG_VER        = 1.0.5
-PKG_REL        = 0
+name       = libXv
+version    = 1.0.5
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXv runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXv runtime library.
 
-PKG_BUILD_DEPS+= libX11-devel libXext-devel pkg-config \
-       xorg-x11-proto-devel
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXv runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXext-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 74fbe2ab0419863501f7df871d4f1c1cc02d74fd..d552db0f929810747bfa6a60f059fd7e9d0b6d91 100644 (file)
@@ -1,49 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXvMC
-PKG_VER        = 1.0.6
-PKG_REL        = 0
+name       = libXvMC
+version    = 1.0.6
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXvMC runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXvMC runtime library.
 
-PKG_BUILD_DEPS+= libX11-devel libXext-devel libXv-devel \
-       pkg-config xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXvMC runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXext-devel
+               libXv-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index c9807429b586f145aedd1a9d42e1e285db5d25f6..b850e10e790cc36284ed63252b72f843dab9d082 100644 (file)
@@ -1,48 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libXxf86vm
-PKG_VER        = 1.1.0
-PKG_REL        = 0
+name       = libXxf86vm
+version    = 1.1.0
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libXxf86vm runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libXxf86vm runtime library.
 
-PKG_BUILD_DEPS+= libX11-devel libXext-devel pkg-config xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libXxf86vm runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXext-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 4da38c215a132d41c959a9f00ddd486882fe0495..e549015292e2de61327bed24ead001865fffc873 100644 (file)
@@ -1,56 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libaal
-PKG_VER        = 1.0.5
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://www.kernel.org/pub/linux/utils/fs/reiser4/libaal/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = Reiser4's application abstraction library.
+name       = libaal
+version    = 1.0.5
+release    = 1
 
-PKG_BUILD_DEPS+= gcc-c++
+groups     = System/Filesystems
+url        = http://www.kernel.org/pub/linux/utils/fs/reiser4/libaal/
+license    = GPL
+summary    = Reiser4's application abstraction library.
 
-define PKG_DESCRIPTION
+description
        This library is part of the Reiser4's filesystem support tools.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib
-
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/lib/libaal{,-minimal}.so
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libaal-1.0.so.5 $(BUILDROOT)/usr/lib/libaal-1.0.so
-       ln -svf libaal-1.0.so $(BUILDROOT)/usr/lib/libaal.so
-       ln -svf ../../lib/libaal-minimal.so.0 $(BUILDROOT)/usr/lib/libaal-minimal.so
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+       end
+
+       configure_options += \
+               --libdir=/lib
+
+       install_cmds
+               rm -vf %{BUILDROOT}/lib/libaal{,-minimal}.so
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libaal-1.0.so.5 %{BUILDROOT}/usr/lib/libaal-1.0.so
+               ln -svf libaal-1.0.so %{BUILDROOT}/usr/lib/libaal.so
+               ln -svf ../../lib/libaal-minimal.so.0 %{BUILDROOT}/usr/lib/libaal-minimal.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 8f82b373176259e932d2a8fb397a120f9b60e81d..9ea613770aeabeb27a48c55584cb789a5f274dac 100644 (file)
@@ -1,61 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libaio
-PKG_VER        = 0.3.109
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = ftp://ftp.kernel.org/pub/linux/libs/aio/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Linux-native asynchronous I/O access library.
+name       = libaio
+version    = 0.3.109
+release    = 1
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+groups     = System/Libraries
+url        = ftp://ftp.kernel.org/pub/linux/libs/aio/
+license    = LGPLv2+
+summary    = Linux-native asynchronous I/O access library.
 
-define PKG_DESCRIPTION
+description
        The Linux-native asynchronous I/O facility (async I/O, or aio) \
        has a richer API and capability set than the simple POSIX async I/O \
        facility. This library, libaio, provides the Linux-native API for \
        async I/O. The POSIX async I/O facility requires this library in \
        order to provide kernel-accelerated async I/O capabilities, as do \
-       applications which require the Linux-native async I/O API. 
-endef
-
-PKG_BUILD_DEPS+= e2fsprogs-devel
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) \
-               CFLAGS="$(CFLAGS) -I." CC="gcc"
-endef
-
-define STAGE_INSTALL_CMDS
-       # Modify links to be relative
-       ln -svf libaio.so.1 $(BUILDROOT)/usr/lib/libaio.so
-       ln -svf libaio.so.1.0.1 $(BUILDROOT)/usr/lib/libaio.so.1
-endef
+       applications which require the Linux-native async I/O API.
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               e2fsprogs-devel
+       end
+
+       build
+               make %{PARALLELISMFLAGS} \
+                       CFLAGS="%{CFLAGS} -I." CC="gcc"
+       end
+
+       install_cmds
+               # Modify links to be relative
+               ln -svf libaio.so.1 %{BUILDROOT}/usr/lib/libaio.so
+               ln -svf libaio.so.1.0.1 %{BUILDROOT}/usr/lib/libaio.so.1
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 65c59bca4c8c0826c80407537abdcaa08c17547d..1bd86320fcdcde03a301e6b55a74cf2cb80f44d1 100644 (file)
@@ -1,58 +1,54 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libarchive
-PKG_VER        = 2.8.4
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://code.google.com/p/libarchive/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A library for handling streaming archive formats.
+name       = libarchive
+version    = 2.8.4
+release    = 1
 
-PKG_BUILD_DEPS+= bison bzip2-devel e2fsprogs-devel libacl-devel libattr-devel \
-       libxml2-devel openssl-devel xz-devel zlib-devel
+groups     = System/Libraries
+url        = http://code.google.com/p/libarchive/
+license    = BSD
+summary    = A library for handling streaming archive formats.
 
-define PKG_DESCRIPTION
-       Libarchive is a programming library that can create and read several different 
-       streaming archive formats, including most popular tar variants, several cpio 
-       formats, and both BSD and GNU ar variants. It can also write shar archives and 
+description
+       Libarchive is a programming library that can create and read several different
+       streaming archive formats, including most popular tar variants, several cpio
+       formats, and both BSD and GNU ar variants. It can also write shar archives and
        read ISO9660 CDROM images and ZIP archives.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --disable-bsdtar \
-       --disable-bsdcpio
-
-define STAGE_INSTALL_CMDS
-       rm -rfv $(BUILDROOT)/usr/share/man/man5/{cpio,mtree,tar}.5
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+               bzip2-devel
+               e2fsprogs-devel
+               libacl-devel
+               libattr-devel
+               libxml2-devel
+               openssl-devel
+               xz-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --disable-static \
+               --disable-bsdtar \
+               --disable-bsdcpio
+
+       install_cmds
+               rm -rfv %{BUILDROOT}/usr/share/man/man5/{cpio,mtree,tar}.5
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 3922a6fcabebc4c90d0d709611dcf52ca87ddf62..ced0ca9dcf3db856ab8ba59e425a5a783a4b1033 100644 (file)
@@ -1,44 +1,30 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libart_lgpl
-PKG_VER        = 2.3.19
-PKG_REL        = 0
+name       = libart_gpl
+version    = 2.3.19
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Graphics
-PKG_URL        = http://www.gnome.org
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Library of graphics routines used by libgnomecanvas.
+groups     = System/Graphics
+url        = http://www.gnome.org
+license    = LGPLv2+
+summary    = Library of graphics routines used by libgnomecanvas.
 
-define PKG_DESCRIPTION
+description
        Graphics routines used by the GnomeCanvas widget and some other \
        applications. libart renders vector paths and the like.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 3f9c2c119fda13cc6689edd7a5b40cc736ee8d21..d120ce01c80b2456af1d8968d9c5b06f56fbe97b 100644 (file)
@@ -1,54 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libassuan
-PKG_VER        = 2.0.1
-PKG_REL        = 0
+name       = libassuan
+version    = 2.0.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnupg.org/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = GnuPG IPC library.
+groups     = System/Libraries
+url        = http://www.gnupg.org/
+license    = LGPLv2+
+summary    = GnuPG IPC library.
 
-PKG_BUILD_DEPS+= autoconf automake libgpg-error-devel libtool pth-devel
-
-define PKG_DESCRIPTION
+description
        The Libassuan package contains an IPC library used by some of the other \
        GnuPG related packages. Libassuan's primary use is to allow a client to \
        interact with a non-persistent server. Libassuan is not, however, limited \
        to use with GnuPG servers and clients. It was designed to be flexible \
        enough to meet the demands of many transaction based environments with \
        non-persistent servers.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf --install
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               autoconf
+               automake
+               libgpg-error-devel
+               libtool
+               pth-devel
+       end
+
+       prepare_cmds
+               autoreconf --install
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index d744b4dd787db5720bfd157212ebea187a5fc4e2..6bbf1157e369a8382919337ce269900fb6391a65 100644 (file)
@@ -1,57 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libatasmart
-PKG_VER        = 0.17
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Statistics
-PKG_URL        = http://git.0pointer.de/?p=libatasmart.git;a=summary
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = ATA S.M.A.R.T. Disk Health Monitoring Library.
+name       = libatasmart
+version    = 0.17
+release    = 1
 
-PKG_BUILD_DEPS+= libudev-devel pkg-config
+groups     = System/Statistics
+url        = http://git.0pointer.de/?p=libatasmart.git;a=summary
+license    = LGPLv2+
+summary    = ATA S.M.A.R.T. Disk Health Monitoring Library.
 
-define PKG_DESCRIPTION
+description
        A scmall and lightweight parser library for ATA S.M.A.R.T. hard disk \
        health monitoring.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
-
-       rm -vf $(BUILDROOT)/lib/libatasmart.so
-       ln -svf ../../lib/libatasmart.so.4 $(BUILDROOT)/usr/lib/libatasmart.so
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.gz
+
+build
+       requires
+               libudev-devel
+               pkg-config
+       end
+
+       configure_options += \
+               --libdir=/lib
+
+       install_cmds
+               -mkdir -pv %{BUILDROOT}/usr/lib
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+
+               rm -vf %{BUILDROOT}/lib/libatasmart.so
+               ln -svf ../../lib/libatasmart.so.4 %{BUILDROOT}/usr/lib/libatasmart.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index f056d9d3d27a805ec59348d973bc2af5810a66e4..36b5a787a5c4020a5af2f1f8af91efb9f1d65983 100644 (file)
@@ -1,51 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libcap-ng
-PKG_VER        = 0.6.5
-PKG_REL        = 0
+name       = libcap-ng
+version    = 0.6.5
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://people.redhat.com/sgrubb/libcap-ng
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = An alternate posix capabilities library.
+groups     = System/Libraries
+url        = http://people.redhat.com/sgrubb/libcap-ng
+license    = LGPLv2+
+summary    = An alternate posix capabilities library.
 
-PKG_BUILD_DEPS+= libattr-devel python
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        Libcap-ng is a library that makes using posix capabilities \
-       easier. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-# XXX Testsuite is broken by the package developers
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
-#endef
+       easier.
+end
+
+source_dl  =
+
+build
+       requires
+               libattr-devel
+               python
+       end
+
+       # XXX Testsuite is broken by the package developers
+       #def test
+       #       make check
+       #end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b9b5a3dad27b96c5092531bc95afbf36c5aa9e95..5b5f1ed5bae03492bb6b901c7aa2671aa084d8e8 100644 (file)
@@ -1,64 +1,53 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = libcap
+version    = 2.19
+release    = 1
 
-PKG_NAME       = libcap
-PKG_VER        = 2.19
-PKG_REL        = 1
+groups     = System/Libraries
+url        = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
+license    = LGPL2+
+summary    = Library for getting and setting POSIX.1e capabilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
-PKG_LICENSE    = LGPL2+
-PKG_SUMMARY    = Library for getting and setting POSIX.1e capabilities.
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) \
        draft 15 capabilities.
-endef
-
-PKG_BUILD_DEPS+= libattr-devel pam-devel perl /bin/ping
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make DYNAMIC=yes LIBATTR=yes
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP)/progs && ./quicktest.sh
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) lib=/lib
-
-       rm -vf $(BUILDROOT)/lib/libcap.so
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libcap.so.2 $(BUILDROOT)/usr/lib/libcap.so
-
-       chmod 755 $(BUILDROOT)/lib/libcap.so.$(PKG_VER)
-endef
+end
+
+source_dl  = %{url}
+sources    = %{thisapp}.tar.gz
+
+build
+       requires
+               libattr-devel
+               pam-devel
+               perl
+               /bin/ping
+       end
+
+       build
+               make DYNAMIC=yes LIBATTR=yes
+       end
+
+       install
+               make install DESTDIR=%{BUILDROOT} lib=/lib
+
+               rm -vf %{BUILDROOT}/lib/libcap.so
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libcap.so.2 %{BUILDROOT}/usr/lib/libcap.so
+
+               chmod 755 %{BUILDROOT}/lib/libcap.so.%{version}
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 89ec0c4e5142c11550e28c9ebe467d60a0853f30..893b5551e38d3963853aac8f546ea9441ff93c88 100644 (file)
@@ -1,66 +1,57 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libcgroup
-PKG_VER        = 0.35.1
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://libcg.sourceforge.net/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Tools and libraries to control and monitor control groups.
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+name       = libcgroup
+version    = 0.35.1
+release    = 1
 
-PKG_BUILD_DEPS+= bison gcc-c++ flex
+groups     = Development/Libraries
+url        = http://libcg.sourceforge.net/
+license    = LGPLv2+
+summary    = Tools and libraries to control and monitor control groups.
 
-define PKG_DESCRIPTION
+description
        Control groups infrastructure. The tools and library help manipulate, \
        control, administrate and monitor control groups and the associated \
-       controllers. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-       --disable-pam \
-       --disable-tools \
-       --disable-daemon
-
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
-#endef
-
-define STAGE_INSTALL_CMDS
-       rm -rf $(BUILDROOT)/etc
-
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -vf $(BUILDROOT)/lib/libcgroup.so
-       ln -svf ../../lib/libcgroup.so.1 $(BUILDROOT)/usr/lib/libcgroup.so
-endef
-
+       controllers.
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               bison
+               gcc-c++
+               flex
+       end
+
+       configure_options += \
+               --libdir=/lib \
+               --disable-pam \
+               --disable-tools \
+               --disable-daemon
+
+       #define test
+       #       make check
+       #endef
+
+       install_cmds
+               rm -rf %{BUILDROOT}/etc
+
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -vf %{BUILDROOT}/lib/libcgroup.so
+               ln -svf ../../lib/libcgroup.so.1 %{BUILDROOT}/usr/lib/libcgroup.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b5186e463985c511011bbfcbd2a928e155658bb2..6a15149640a93d6c468d31170b46255f0c6cdc65 100644 (file)
@@ -1,47 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libdaemon
-PKG_VER        = 0.14
-PKG_REL        = 1
+name       = libdaemon
+version    = 0.14
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://0pointer.de/lennart/projects/libdaemon/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Library for writing UNIX daemons.
+groups     = System/Libraries
+url        = http://0pointer.de/lennart/projects/libdaemon/
+license    = LGPLv2+
+summary    = Library for writing UNIX daemons.
 
-define PKG_DESCRIPTION
+description
        libdaemon is a lightweight C library which eases the writing of UNIX daemons.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --mandir=/usr/share/man
+end
+
+source_dl  =
+
+build
+       configure_options += \
+               --bindir=/bin \
+               --mandir=/usr/share/man
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index d49e860afdc0cbed42a3b787724962993b1033bf..e77066990c9a92ba32a660fc400d5aeb1c0a2980 100644 (file)
@@ -1,54 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libdnet
-PKG_VER        = 1.12
-PKG_REL        = 0
+name       = libdnet
+version    = 1.12
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://code.google.com/p/libdnet/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Simple portable interface to lowlevel networking routines.
+groups     = System/Libraries
+url        = http://code.google.com/p/libdnet/
+license    = BSD
+summary    = Simple portable interface to lowlevel networking routines.
 
-PKG_BUILD_DEPS+= gcc-c++
-
-define PKG_DESCRIPTION
+description
        libdnet provides a simplified, portable interface to several \
        low-level networking routines, including network address \
        manipulation, kernel arp(4) cache and route(4) table lookup and \
        manipulation, network firewalling (IP filter, ipfw, ipchains, \
        pf, ...), network interface lookup and manipulation, raw IP \
        packet and Ethernet frame, and data transmission.
-endef
-
-PKG_TARBALL    = $(THISAPP).tgz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --sbindir=/sbin \
-       --mandir=/usr/share
+end
+
+source_dl  =
+sources    = %{thisapp}.tgz
+
+build
+       requires
+               gcc-c++
+       end
+
+       configure_options += \
+               --sbindir=/sbin \
+               --mandir=/usr/share
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b2ced13f7411399ddd11e88f6e4d83a5c07a44a8..40efa2a1717029f5b97715b29eda20bf286f33ce 100644 (file)
@@ -1,62 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libdrm
-PKG_VER        = 2.4.21
-PKG_REL        = 0
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://dri.freedesktop.org/libdrm/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Direct Rendering Manager runtime library.
-
-PKG_BUILD_DEPS+= automake autoconf libtool libxcb-devel pkg-config libudev-devel
+name       = libdrm
+version    = 2.4.21
+release    = 1
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://dri.freedesktop.org/libdrm/
+license    = MIT
+summary    = Direct Rendering Manager runtime library.
 
-define PKG_DESCRIPTION
+description
        Direct Rendering Manager runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --enable-udev \
-       --enable-libkms \
-       --disable-static
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/pthread-stubs//g" -i configure.ac
-       cd $(DIR_APP) && sed -e "s/PKG_CHECK_MODULES(PTHREADSTUBS, )//g" -i configure.ac
-       cd $(DIR_APP) && autoreconf -v --install
-endef
-
-define STAGE_INSTALL_CMDS
-       mkdir -pv $(BUILDROOT)/lib/udev/rules.d/
-       cd $(DIR_APP) && install -m 644 $(DIR_SOURCE)/91-drm-modeset.rules\
-               $(BUILDROOT)/lib/udev/rules.d/
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               automake
+               autoconf
+               libtool
+               libxcb-devel
+               pkg-config
+               libudev-devel
+       end
+
+       configure_options += \
+               --enable-udev \
+               --enable-libkms \
+               --disable-static
+
+       prepare_cmds
+               sed -e "s/pthread-stubs//g" -i configure.ac
+               sed -e "s/PKG_CHECK_MODULES(PTHREADSTUBS, )//g" -i configure.ac
+               autoreconf -v --install
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
+               cd %{DIR_APP} && install -m 644 %{DIR_SOURCE}/91-drm-modeset.rules\
+                       %{BUILDROOT}/lib/udev/rules.d/
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 23f1647d30571f0a9d80f97f67e0b3d661f71bc5..4cd530548bac567954d20fab5f8c2ddf5adff967 100644 (file)
@@ -1,58 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libedit
-PKG_VER        = 3.0-$(PKG_DATE)
-PKG_DATE       = 20110802
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.thrysoee.dk/editline/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = The NetBSD Editline library.
+name       = libedit
+version    = 3.0-%{version_date}
+version_date = 20110802
+release    = 1
 
-PKG_BUILD_DEPS+= ncurses-devel
+groups     = System/Libraries
+url        = http://www.thrysoee.dk/editline/
+license    = BSD
+summary    = The NetBSD Editline library.
 
-define PKG_DESCRIPTION
+description
        Libedit is an autotool- and libtoolized port of the NetBSD Editline
        library. It provides generic line editing, history, and tokenization
        functions, similar to those found in GNU Readline.
-endef
-
-THISAPP        = $(PKG_NAME)-$(PKG_DATE)-3.0
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-PKG_DEPS-libedit += ncurses-devel
-
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --enable-widec
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i "s/lcurses/ltinfo/" src/Makefile*
-endef
+end
+
+thisapp    = %{name}-%{version_date}-3.0
+
+source_dl  =
+
+build
+       requires
+               ncurses-devel
+       end
+
+       configure_options += \
+               --disable-static \
+               --enable-widec
+
+       prepare_cmds
+               sed -i "s/lcurses/ltinfo/" src/Makefile*
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires = ncurses-devel
+       end
+end
index d0bf9818a92bd19176a15c660489ace1309466c1..b0d4f12cd0095e8d5345fb3a08e8253aa117a20d 100644 (file)
@@ -1,40 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libevent
-PKG_VER        = 2.0.10
-PKG_REL        = 0
+name       = libevent
+version    = 2.0.10
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://sourceforge.net/projects/levent/files/libevent/libevent-2.0
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Abstract asynchronous event notification library.
+groups     = Development/Tools
+url        = http://sourceforge.net/projects/levent/files/libevent/libevent-2.0
+license    = BSD
+summary    = Abstract asynchronous event notification library.
 
-define PKG_DESCRIPTION
+description
        The libevent API provides a mechanism to execute a callback \
        function when a specific event occurs on a file descriptor or \
        after a timeout has been reached. libevent is meant to replace \
@@ -42,12 +20,23 @@ define PKG_DESCRIPTION
        servers. An application just needs to call event_dispatch() and \
        can then add or remove events dynamically without having to \
        change the event loop.
-endef
-
-PKG_TARBALL    = $(THISAPP)-stable.tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-DIR_APP = $(DIR_SRC)/$(THISAPP)-stable
-
-CONFIGURE_OPTIONS += --mandir=/usr/share/man
+end
+
+source_dl  =
+sources    = %{thisapp}-stable.tar.gz
+
+build
+       DIR_APP = %{DIR_SRC}/%{thisapp}-stable
+
+       configure_options += \
+               --mandir=/usr/share/man
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 414e5b84513040f6ca63cfe91fad8cff1392974a..ea4cafd3e08fe326be55ebde29e8c339627382e6 100644 (file)
@@ -1,47 +1,32 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libffi
-PKG_VER        = 3.0.9
-PKG_REL        = 0
+name       = libffi
+version    = 3.0.9
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://sourceware.org/libffi
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A portable foreign function interface library.
+groups     = System/Libraries
+url        = http://sourceware.org/libffi
+license    = BSD
+summary    = A portable foreign function interface library.
 
-define PKG_DESCRIPTION
+description
        The libffi library provides a portable, high level programming \
        interface to various calling conventions. This allows a programmer to \
        call any function specified by a call interface description at run time.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-PKG_FILES-$(PKG_NAME_REAL)-devel += /usr/lib/libffi-$(PKG_VER)
+end
+
+source_dl  =
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               files += /usr/lib*/libffi-%{version}
+       end
+end
index 397fd2db68026ecc4f26e59d81e9ce72741653e7..679bb90fe48068bc5c06f9a622ebe7f7cfa4acec 100644 (file)
@@ -1,48 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libfontenc
-PKG_VER        = 1.0.5
-PKG_REL        = 0
+name       = libfontenc
+version    = 1.0.5
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libfontenc runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 libfontenc runtime library.
 
-PKG_BUILD_DEPS+= pkg-config xorg-x11-proto-devel zlib-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        X.Org X11 libfontenc runtime library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --disable-static
+end
+
+source_dl  =
+
+build
+       requires
+               pkg-config
+               xorg-x11-proto-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index a806c2cd7a2e4e9b0a061b72e4a49a9e04550abc..708cfd16b880ed877aa604640ee6e5be006bd43d 100644 (file)
@@ -1,57 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libgcrypt
-PKG_VER        = 1.5.0
-PKG_REL        = 1
+name       = libgcrypt
+version    = 1.5.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnupg.org/
-PKG_LICENSE    = LGPLv2.1+
-PKG_SUMMARY    = A general-purpose cryptography library.
+groups     = System/Libraries
+url        = http://www.gnupg.org/
+license    = LGPLv2.1+
+summary    = A general-purpose cryptography library.
 
-PKG_BUILD_DEPS+= gcc-c++ libgpg-error-devel
-PKG_DEPS-$(PKG_NAME_REAL)-devel += libgpg-error-devel
 
-define PKG_DESCRIPTION
+description
        Libgcrypt is a general purpose crypto library based on the code used \
        in GNU Privacy Guard.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-       --enable-noexecstack \
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -vf $(BUILDROOT)/lib/libgcrypt.so
-       ln -sfv ../../lib/libgcrypt.so.11 $(BUILDROOT)/usr/lib/libgcrypt.so
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               gcc-c++
+               libgpg-error-devel
+       end
+
+       configure_options += \
+               --libdir=/lib \
+               --enable-noexecstack \
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -vf %{BUILDROOT}/lib/libgcrypt.so
+               ln -sfv ../../lib/libgcrypt.so.11 %{BUILDROOT}/usr/lib/libgcrypt.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires = libgpg-error-devel
+       end
+end
index 87754a64376bdd1a2615806c82de6df83798f205..637b9c279a463b95e4998d361425184d4729ab4a 100644 (file)
@@ -1,56 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libgpg-error
-PKG_VER        = 1.9
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnupg.org/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Library for error values used by GnuPG components.
+name       = libgpg-error
+version    = 1.9
+release    = 1
 
-PKG_BUILD_DEPS+= gcc-c++
+groups     = System/Libraries
+url        = http://www.gnupg.org/
+license    = LGPLv2+
+summary    = Library for error values used by GnuPG components.
 
-define PKG_DESCRIPTION
+description
        This is a library that defines common error values for all GnuPG \
        components. Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, \
        pinentry, SmartCard Daemon and possibly more in the future.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -vf $(BUILDROOT)/lib/libgpg-error.so
-       ln -sfv ../../lib/libgpg-error.so.0 $(BUILDROOT)/usr/lib/libgpg-error.so
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               gcc-c++
+       end
+
+       configure_options += \
+               --libdir=/lib
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -vf %{BUILDROOT}/lib/libgpg-error.so
+               ln -sfv ../../lib/libgpg-error.so.0 %{BUILDROOT}/usr/lib/libgpg-error.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 82fb3f9646cab606ac59a393594db87cd1646df7..24ce555c3f920d02e3e463dde011208f45c54cbc 100644 (file)
@@ -1,45 +1,30 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libgssglue
-PKG_VER        = 0.1
-PKG_REL        = 0
+name       = libgssglue
+version    = 0.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.citi.umich.edu/projects/nfsv4/linux/libgssglue/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = This library exports a gssapi interface.
+groups     = Development/Tools
+url        = http://www.citi.umich.edu/projects/nfsv4/linux/libgssglue/
+license    = BSD
+summary    = This library exports a gssapi interface.
 
-define PKG_DESCRIPTION
+description
        This library exports a gssapi interface, but doesn't implement any \
        gssapi mechanisms itself; instead it calls gssapi routines in other \
        libraries, depending on the mechanism.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 3d94af73a753429a4aa74ea029dce7751d4ab7f6..35109f7ec63958bdd2afccba3549a5d62b2bd061 100644 (file)
@@ -1,64 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = libidn
+version    = 1.22
+release    = 1
 
-PKG_NAME       = libidn
-PKG_VER        = 1.22
-PKG_REL        = 1
+groups     = System/Libraries
+url        = http://www.gnu.org/software/libidn/
+license    = LGPLv2+ GPLv3+
+summary    = Internationalized Domain Name support library.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnu.org/software/libidn/
-PKG_LICENSE    = LGPLv2+ GPLv3+
-PKG_SUMMARY    = Internationalized Domain Name support library.
-
-define PKG_DESCRIPTION
+description
        GNU Libidn is an implementation of the Stringprep, Punycode and \
        IDNA specifications defined by the IETF Internationalized Domain \
        Names (IDN) working group, used for internationalized domain \
        names.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-       --disable-csharp \
-       --disable-static
-
-define STAGE_TEST
-       cd $(DIR_APP) && make -C tests check
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
-               pkgconfigdir=/usr/lib/pkgconfig
-
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -vf $(BUILDROOT)/lib/libidn.so
-       ln -svf ../../lib/libidn.so.11.6.5 $(BUILDROOT)/usr/lib/libidn.so
-endef
+end
+
+source_dl  =
+
+build
+       configure_options += \
+               --libdir=/lib \
+               --disable-csharp \
+               --disable-static
+
+       test
+               make -C tests check
+       end
+
+       install
+               make install DESTDIR=%{BUILDROOT} \
+                       pkgconfigdir=/usr/lib/pkgconfig
+
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -vf %{BUILDROOT}/lib/libidn.so
+               ln -svf ../../lib/libidn.so.11.6.5 %{BUILDROOT}/usr/lib/libidn.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 74952d22d2b2ed7935380dcc20721a9bbc160e3c..ff129c4beea793cfbb90ea036bb071ad22d59718 100644 (file)
@@ -1,44 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libjpeg-turbo
-PKG_VER        = 1.0.0
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://sourceforge.net/projects/libjpeg-turbo
-PKG_LICENSE    = wxWidgets
-PKG_SUMMARY    = A MMX/SSE2 accelerated library for manipulating JPEG image files.
+name       = libjpeg-turbo
+version    = 1.0.0
+release    = 1
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+groups     = System/Libraries
+url        = http://sourceforge.net/projects/libjpeg-turbo
+license    = wxWidgets
+summary    = A MMX/SSE2 accelerated library for manipulating JPEG image files.
 
-PKG_BUILD_DEPS+= autoconf automake gcc-c++ libtool nasm
-
-define PKG_DESCRIPTION
+description
        The libjpeg-turbo-utils package contains simple client programs for \
        accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran,\
        rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format. \
@@ -46,19 +20,39 @@ define PKG_DESCRIPTION
        can perform various useful transformations on JPEG files. Rdjpgcom \
        displays any text comments included in a JPEG file. Wrjpgcom inserts \
        text comments into a JPEG file.
-endef
-
-PKG_TARBALL    = $(PKG_NAME)-$(PKG_VER).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --enable-shared
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -vfi
-endef
-
-define STAGE_INSTALL_CMDS
-       # Remove non-versioned libjpegturbo.
-       rm -vf $(BUILDROOT)/usr/include/turbojpeg.h
-       rm -vf $(BUILDROOT)/usr/lib/libturbojpeg.so
-endef
+end
+
+source_dl  =
+sources    = %{name}-%{version}.tar.gz
+
+build
+       requires
+               autoconf
+               automake
+               gcc-c++
+               libtool
+               nasm
+       end
+
+       configure_options += \
+               --enable-shared
+
+       prepare_cmds
+               autoreconf -vfi
+       end
+
+       install_cmds
+               # Remove non-versioned libjpegturbo.
+               rm -vf %{BUILDROOT}/usr/include/turbojpeg.h
+               rm -vf %{BUILDROOT}/usr/lib/libturbojpeg.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index ef19e17f4ab8770cbbdf11fa018317865286c997..63ecf9305e810cad5b2ebe7b08937ef165726c45 100644 (file)
@@ -1,46 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libksba
-PKG_VER        = 1.0.8
-PKG_REL        = 0
+name       = libksba
+version    = 1.0.8
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnugp.org
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = X.509 Library.
+groups     = System/Libraries
+url        = http://www.gnugp.org
+license    = GPLv3
+summary    = X.509 Library.
 
-PKG_BUILD_DEPS+= libgpg-error-devel
-
-define PKG_DESCRIPTION
+description
        KSBA is a library designed to build software based on the X.509 and \
        CMS protocols.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libgpg-error-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 9cdeab08ffaeb7817c22b038846f15b20c4d3f65..e4819aa69113cae0b36b77d59c8638a8b08b3019 100644 (file)
@@ -1,57 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libmng
-PKG_VER        = 1.0.10
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.libmng.org
-PKG_LICENSE    = zlib
-PKG_SUMMARY    = Library for Multiple-image Network Graphics support.
+name       = libmng
+version    = 1.0.10
+release    = 1
 
-PKG_BUILD_DEPS+= autoconf automake libjpeg-devel libtool zlib-devel
+groups     = System/Libraries
+url        = http://www.libmng.org
+license    = zlib
+summary    = Library for Multiple-image Network Graphics support.
 
-define PKG_DESCRIPTION
+description
        LibMNG is a library for accessing graphics in MNG (Multi-image Network \
        Graphics) and JNG (JPEG Network Graphics) formats.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --enable-shared \
-       --disable-static \
-       --with-zlib \
-       --with-jpeg \
-       --with-gnu-ld
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && unmaintained/autogen.sh
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               autoconf
+               automake
+               libjpeg-devel
+               libtool
+               zlib-devel
+       end
+
+       configure_options += \
+               --enable-shared \
+               --disable-static \
+               --with-zlib \
+               --with-jpeg \
+               --with-gnu-ld
+
+       prepare_cmds
+               unmaintained/autogen.sh
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 4919407172f6df14e1bb0f1c752a4048b6028041..d490d1849592581f12293521e44693773df69984 100644 (file)
@@ -1,56 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libmpc
-PKG_VER        = 0.9
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.multiprecision.org/
-PKG_LICENSE    = LGPLv2.1+
-PKG_SUMMARY    = Mpc is a C library for the arithmetic of complex numbers.
+name       = libmpc
+version    = 0.9
+release    = 2
 
-THISAPP        = mpc-$(PKG_VER)
+groups     = System/Libraries
+url        = http://www.multiprecision.org/
+license    = LGPLv2.1+
+summary    = Mpc is a C library for the arithmetic of complex numbers.
 
-PKG_BUILD_DEPS+= gmp-devel>=4.3.2 mpfr-devel>=2.4.2
+thisapp    = mpc-%{version}
 
-define PKG_DESCRIPTION
+description
        Mpc is a C library for the arithmetic of complex numbers with \
        arbitrarily high precision and correct rounding of the result. \
        It is built upon and follows the same principles as Mpfr.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-# http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-February/000805.html
-export EGREP=egrep
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gmp-devel>=4.3.2
+               mpfr-devel>=2.4.2
+       end
+
+       # http://lists.gforge.inria.fr/pipermail/mpc-discuss/2011-February/000805.html
+       export EGREP=egrep
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 302c8ca6056365ed9a6d34ccbc71929d7dfd6dec..fa368c4a13d2292394dbf5eda22db7bd9a40ba68 100644 (file)
@@ -1,48 +1,33 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = libnet
+version    = 1.1.4
+release    = 1
 
-PKG_NAME       = libnet
-PKG_VER        = 1.1.4
-PKG_REL        = 0
+groups     = System/Libraries
+url        = http://www.sourceforge.net/projects/libnet-dev/
+license    = BSD
+summary    = C library for portable packet creation and injection.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.sourceforge.net/projects/libnet-dev/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = C library for portable packet creation and injection.
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
-Libnet is an API to help with the construction and handling of \
+description
+       Libnet is an API to help with the construction and handling of \
        network packets. It provides a portable framework for low-level \
        network packet writing and handling (use libnet in conjunction \
        with libpcap and you can write some really cool stuff). Libnet \
        includes packet creation at the IP layer and at the link layer \
-       as well as a host of supplementary and complementary functionality. 
-endef
+       as well as a host of supplementary and complementary functionality.
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 0b995b0960b979a51cc8cfc845ec4c41be88256a..40a8b9bffea4d6c97cecc6368dbc79964fb83223 100644 (file)
@@ -1,47 +1,38 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libnetfilter_conntrack
-PKG_VER        = 0.9.1
-PKG_REL        = 1
+name       = libnetfilter_conntrack
+version    = 0.9.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.netfilter.org/projects/libnetfilter_conntrack/downloads.html
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = libnetfilter_conntrack is a userspace library.
+groups     = System/Libraries
+url        = http://www.netfilter.org/projects/libnetfilter_conntrack/downloads.html
+license    = GPL
+summary    = libnetfilter_conntrack is a userspace library.
 
-PKG_BUILD_DEPS+= libnfnetlink-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        libnetfilter_conntrack is a library that allows user-space \
        programs to interface the kernel connection tracking table of \
        the netfilter subsystem in the Linux kernel.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libnfnetlink-devel
+               pkg-config
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index eb28dcc6cd3c9255932b2d36dce5b010f8b40fb7..ad6bd9218aca8b84354b677bb475571da5c274eb 100644 (file)
@@ -1,48 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libnetfilter_log
-PKG_VER        = 0.0.16
-PKG_REL        = 0
+name       = libnetfilter_log
+version    = 0.0.16
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.netfilter.org/projects/libnetfilter_log/downloads.html
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = The libnetfilter_log userspace library.
+groups     = System/Libraries
+url        = http://www.netfilter.org/projects/libnetfilter_log/downloads.html
+license    = GPL
+summary    = The libnetfilter_log userspace library.
 
-PKG_BUILD_DEPS+= libnfnetlink-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        libnetfilter_log is a software library to interface with the \
        nfnetlink_log mechanism in Linux 2.6.14 and later. The library \
        enables programs to receive and process packets logged by the \
        Linux packet filter (iptables).
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libnfnetlink-devel
+               pkg-config
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index d45651c1346b45c4710b6e03731baa7cb5f0c193..ee20f9b6c83bb26da28dd15b11a8eb342e9f166a 100644 (file)
@@ -1,48 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libnetfilter_queue
-PKG_VER        = 0.0.17
-PKG_REL        = 0
+name       = libnetfilter_queue
+version    = 0.0.17
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.netfilter.org/projects/libnetfilter_queue/downloads.html
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = The libnetfilter_queue userspace library.
+groups     = System/Libraries
+url        = http://www.netfilter.org/projects/libnetfilter_queue/downloads.html
+license    = GPL
+summary    = The libnetfilter_queue userspace library.
 
-PKG_BUILD_DEPS+= libnfnetlink-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        libnetfilter_queue is a userspace library that provides an API \
        for manipulating packets that have been queued by the kernel \
        packet filter. It is is part of a system that deprecates the old \
        ip_queue/libipq mechanism.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libnfnetlink-devel
+               pkg-config
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index d85a768bbd82bc1b7d64d27a9060527fefd78c2a..70756bc5402be6bb414962ad32e953feae32b51a 100644 (file)
@@ -1,47 +1,33 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libnfnetlink
-PKG_VER        = 1.0.0
-PKG_REL        = 0
+name       = libnfnetlink
+version    = 1.0.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.netfilter.org/projects/libnfnetlink/downloads.html
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = A low-level library for netfilter.
+groups     = System/Libraries
+url        = http://www.netfilter.org/projects/libnfnetlink/downloads.html
+license    = GPL
+summary    = A low-level library for netfilter.
 
-define PKG_DESCRIPTION
+description
        libnfnetlink is a low-level userspace library for \
        nfnetlink-based communication between the kernel-side netfilter \
        and the user-space world. It is therefore the fundamental layer \
        for all other nfnetlink-enabled user-space programs interfacing \
        with the netfilter subsystem of the Linux kernel.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 188cf52c151402111bd4d03e8422d4efeef1081b..eb7894d464a90e13311519cb9a67889b05e0fde8 100644 (file)
@@ -1,66 +1,55 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libnfsidmap
-PKG_VER        = 0.21
-PKG_REL        = 0
+name       = libnfsidmap
+version    = 0.21
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Library to help mapping id's, mainly for NFSv4.
+groups     = System/Libraries
+url        = http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/
+license    = BSD
+summary    = Library to help mapping id's, mainly for NFSv4.
 
-PKG_BUILD_DEPS+= gcc-c++
-
-define PKG_DESCRIPTION
+description
        libnfsidmap provides functions to map between NFSv4 names \
        (which are of the form user@domain) and local uid's and gid's.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += --libdir=/lib
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
 
-CONFIGURE_OPTIONS += --libdir=/lib
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
+               rm -vf %{BUILDROOT}/lib/libnfsidmap.so
+               ln -svf ../../lib/libnfsidmap.so.0 \
+                       %{BUILDROOT}/usr/lib/libnfsidmap.so
 
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
+               rm -vf %{BUILDROOT}/lib/libnfsidmap_nsswitch.so
+               ln -svf ../../lib/libnfsidmap_nsswitch.so.0 \
+                       %{BUILDROOT}/usr/lib/libnfsidmap_nsswitch.so
 
-       rm -vf $(BUILDROOT)/lib/libnfsidmap.so
-       ln -svf ../../lib/libnfsidmap.so.0 \
-               $(BUILDROOT)/usr/lib/libnfsidmap.so
+               rm -vf %{BUILDROOT}/lib/libnfsidmap_static.so
+               ln -svf ../../lib/libnfsidmap_static.so.0 \
+                       %{BUILDROOT}/usr/lib/libnfsidmap_static.so
+       end
+end
 
-       rm -vf $(BUILDROOT)/lib/libnfsidmap_nsswitch.so
-       ln -svf ../../lib/libnfsidmap_nsswitch.so.0 \
-               $(BUILDROOT)/usr/lib/libnfsidmap_nsswitch.so
+packages
+       package %{name}
+       end
        
-       rm -vf $(BUILDROOT)/lib/libnfsidmap_static.so
-       ln -svf ../../lib/libnfsidmap_static.so.0 \
-               $(BUILDROOT)/usr/lib/libnfsidmap_static.so
-endef
+       package %{name}-devel
+               template DEVEL
+       end
+end
index be5497bd6dd1be970a04d7b63b0c24d023198d2b..a8d3cae4f389db77a2c600abdad261fbc5ab62e2 100644 (file)
@@ -1,54 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = libnl
+version    = 1.1
+release    = 1
 
-PKG_NAME       = libnl
-PKG_VER        = 1.1
-PKG_REL        = 0
+groups     = Development/Libraries
+url        = http://people.suug.ch/~tgr/libnl/
+license    = LGPLv2
+summary    = Convenience library for kernel netlink sockets.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://people.suug.ch/~tgr/libnl/
-PKG_LICENSE    = LGPLv2
-PKG_SUMMARY    = Convenience library for kernel netlink sockets.
-
-define PKG_DESCRIPTION
+description
        This package contains a convenience library to simplify using the \
        Linux kernel's netlink sockets interface for network manipulation.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += --libdir=/lib
-
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/lib/libnl.so
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libnl.so.1 $(BUILDROOT)/usr/lib/libnl.so
-
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/pkgconfig
-endef
+end
+
+source_dl  =
+
+build
+       configure_options += \
+               --libdir=/lib
+
+       install_cmds
+               rm -vf %{BUILDROOT}/lib/libnl.so
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libnl.so.1 %{BUILDROOT}/usr/lib/libnl.so
+
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/pkgconfig
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 7b5a6a62cdf9e0cd1c85a50c9b2d78fb5e4ddc04..372b1ed00334180f504baad681c82fe59ef5c3ee 100644 (file)
@@ -1,42 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libpcap
-PKG_VER        = 1.1.1
-PKG_REL        = 0
+name       = libpcap
+version    = 1.1.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.tcpdump.org/
-PKG_LICENSE    = BSD with advertising
-PKG_SUMMARY    = A system-independent interface for user-level packet capture.
+groups     = System/Libraries
+url        = http://www.tcpdump.org/
+license    = BSD with advertising
+summary    = A system-independent interface for user-level packet capture.
 
-PKG_BUILD_DEPS+= bison flex libnl-devel
-
-define PKG_DESCRIPTION
+description
        Libpcap provides a portable framework for low-level network \
        monitoring.  Libpcap can provide network statistics collection, \
        security monitoring and network debugging.  Since almost every \
@@ -44,13 +20,28 @@ define PKG_DESCRIPTION
        the libpcap authors created this system-independent API to ease in \
        porting and to alleviate the need for several system-dependent \
        packet capture modules in each application.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       cd $(DIR_APP) && make install install-shared-so DESTDIR=$(BUILDROOT)
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+               flex
+               libnl-devel
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/bin
+               make install install-shared-so DESTDIR=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 9a92c85023bef676eb72f66e01d9e09125b97d39..4a4b1ca3ed66c5c74cb5d6d8c84ed733c8a807af 100644 (file)
@@ -1,47 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libpciaccess
-PKG_VER        = 0.11.0
-PKG_REL        = 0
+name       = libpciaccess
+version    = 0.11.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Virtualization
-PKG_URL        = http://cgit.freedesktop.org/xorg/lib/libpciaccess/
-PKG_LICENSE    = LGPLv2.1+
-PKG_SUMMARY    = Generic PCI access library.
+groups     = Applications/Virtualization
+url        = http://cgit.freedesktop.org/xorg/lib/libpciaccess/
+license    = LGPLv2.1+
+summary    = Generic PCI access library.
 
-PKG_BUILD_DEPS+= pkg-config
-
-define PKG_DESCRIPTION
+description
        A toolkit to interact with the virtualization capabilities of recent \
        versions of Linux.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               pkg-config
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 0a266bf0ddf0be5443c24202e5dbf58c7008875f..3213e68730b05508067df92a49736c3278f1cfe1 100644 (file)
@@ -1,44 +1,29 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libpipeline
-PKG_VER        = 1.2.0
-PKG_REL        = 1
+name       = libpipeline
+version    = 1.2.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://libpipeline.nongnu.org/
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = Pipeline manipulation library.
+groups     = Development/Libraries
+url        = http://libpipeline.nongnu.org/
+license    = GPLv3
+summary    = Pipeline manipulation library.
 
-define PKG_DESCRIPTION
+description
        libpipeline is a C library for manipulating pipelines of subprocesses \
        in a flexible and convenient way.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index f8a035bafe87847c16a8e7559d6f465ef799ebc2..3b1ded281b981a8d643ef5939a182d51a782c553 100644 (file)
@@ -1,51 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libpng
-PKG_VER        = 1.5.4
-PKG_REL        = 1
+name       = libpng
+version    = 1.5.4
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.libpng.org/pub/png/
-PKG_LICENSE    = zlib
-PKG_SUMMARY    = A library of functions for manipulating PNG image format files.
+groups     = System/Libraries
+url        = http://www.libpng.org/pub/png/
+license    = zlib
+summary    = A library of functions for manipulating PNG image format files.
 
-PKG_BUILD_DEPS+= pkg-config zlib-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        The libpng package contains a library of functions for creating and \
        manipulating PNG (Portable Network Graphics) image format files. \
        PNG is a bit-mapped graphics format similar to the GIF format. PNG \
        was created to replace the GIF format, since GIF uses a patented \
        data compression algorithm.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.xz
-
-PKG_DEPS-$(PKG_NAME)-devel = zlib-devel
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               pkg-config
+               zlib-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires = zlib-devel
+       end
+end
index b2af7acc1cbcdb2d3f3f22d5478b53b6a51eba03..5c2d073cc4cffb7a22c759ac84c222c53ee44fc4 100644 (file)
@@ -1,46 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = librpcsecgss
-PKG_VER        = 0.18
-PKG_REL        = 0
+name       = librpcsecgss
+version    = 0.18
+release    = 1
 
-PKG_MAINTAINER = 
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.citi.umich.edu/projects/nfsv4/linux/librpcsecgss/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A Library for secure rpc communication.
+groups     = System/Libraries
+url        = http://www.citi.umich.edu/projects/nfsv4/linux/librpcsecgss/
+license    = BSD
+summary    = A Library for secure rpc communication.
 
-PKG_BUILD_DEPS+= libgssglue-devel pkg-config 
-
-define PKG_DESCRIPTION
+description
        rpcsecgss allows secure rpc communication using the rpcsec_gss \
-       protocol.  
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       protocol.
+end
+
+source_dl  =
+
+build
+       requires
+               libgssglue-devel
+               pkg-config
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index a1a141a0e382e4ae360dd5ca2e6164d0fac90a88..ebffd37b21e06607cc1539b98102e2c3b46bd0d3 100644 (file)
@@ -1,97 +1,94 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libselinux
-PKG_VER        = 2.0.96
-PKG_REL        = 1
+name       = libselinux
+version    = 2.0.96
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.selinuxproject.org
-PKG_LICENSE    = Public Domain
-PKG_SUMMARY    = SELinux library and simple utilities.
+groups     = System/Libraries
+url        = http://www.selinuxproject.org
+license    = Public Domain
+summary    = SELinux library and simple utilities.
 
-PKG_BUILD_DEPS+= libsepol-devel python-devel swig
-
-define PKG_DESCRIPTION
+description
        libselinux provides an API for SELinux applications to get and set \
        process and file security contexts and to obtain security policy \
        decisions.
-endef
-
-PKG_TARBALL    = $(THISAPP).tgz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel $(PKG_NAME_REAL)-utils #python-selinux
-
-# Package information for libselinux-utils
-PKG_SUMMARY-$(PKG_NAME_REAL)-utils =  SELinux libselinux utilies.
-PKG_DESCRIPTION-$(PKG_NAME_REAL)-utils = The libselinux-utils package contains the utilities.
-
-define PKG_FILES-$(PKG_NAME_REAL)-utils
-        /usr/sbin/*
-       /usr/share/man/man5/*
-       /usr/share/man/man8/*
-endef
-
-# Package information for python-selinux
-PKG_SUMMARY-python-selinux =  SELinux python bindings.
-PKG_DESCRIPTION-selinux = SELinux python bindings for libselinux.
-
-define PKG_FILES-python-selinux
-       /usr/lib/python*
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make clean
-       cd $(DIR_APP) && make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g $(CFLAGS)" swigify
-       cd $(DIR_APP) && make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g $(CFLAGS)" all
-       cd $(DIR_APP) && make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g $(CFLAGS)" pywrap
-endef
-
-define STAGE_INSTALL_CMDS
-       cd $(DIR_APP) && make install-pywrap DESTDIR=$(BUILDROOT)
-
-       # Remove unwanted binaries
-       rm -f $(BUILDROOT)/usr/sbin/compute_*
-       rm -f $(BUILDROOT)/usr/sbin/deftype
-       rm -f $(BUILDROOT)/usr/sbin/execcon
-       rm -f $(BUILDROOT)/usr/sbin/getenforcemode
-       rm -f $(BUILDROOT)/usr/sbin/getfilecon
-       rm -f $(BUILDROOT)/usr/sbin/getpidcon
-       rm -f $(BUILDROOT)/usr/sbin/mkdircon
-       rm -f $(BUILDROOT)/usr/sbin/policyvers
-       rm -f $(BUILDROOT)/usr/sbin/setfilecon
-       rm -f $(BUILDROOT)/usr/sbin/selinuxconfig
-       rm -f $(BUILDROOT)/usr/sbin/selinuxdisable
-       rm -f $(BUILDROOT)/usr/sbin/getseuser
-       rm -f $(BUILDROOT)/usr/sbin/selinux_check_securetty_context
-
-       # Move binaries from /sbin to /usr/sbin
-       mv $(BUILDROOT)/sbin/* $(BUILDROOT)/usr/sbin
-
-       # Remove python module
-       rm -rvf $(BUILDROOT)/usr/lib/python*
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tgz
+
+build
+       requires
+               libsepol-devel
+               python-devel
+               swig
+       end
+
+       build
+               make clean
+               make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" swigify
+               make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" all
+               make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" pywrap
+       end
+
+       install_cmds
+               make install-pywrap DESTDIR=%{BUILDROOT}
+
+               # Remove unwanted binaries
+               rm -f %{BUILDROOT}/usr/sbin/compute_*
+               rm -f %{BUILDROOT}/usr/sbin/deftype
+               rm -f %{BUILDROOT}/usr/sbin/execcon
+               rm -f %{BUILDROOT}/usr/sbin/getenforcemode
+               rm -f %{BUILDROOT}/usr/sbin/getfilecon
+               rm -f %{BUILDROOT}/usr/sbin/getpidcon
+               rm -f %{BUILDROOT}/usr/sbin/mkdircon
+               rm -f %{BUILDROOT}/usr/sbin/policyvers
+               rm -f %{BUILDROOT}/usr/sbin/setfilecon
+               rm -f %{BUILDROOT}/usr/sbin/selinuxconfig
+               rm -f %{BUILDROOT}/usr/sbin/selinuxdisable
+               rm -f %{BUILDROOT}/usr/sbin/getseuser
+               rm -f %{BUILDROOT}/usr/sbin/selinux_check_securetty_context
+
+               # Move binaries from /sbin to /usr/sbin
+               mv %{BUILDROOT}/sbin/* %{BUILDROOT}/usr/sbin
+
+               # Remove python module
+               rm -rvf %{BUILDROOT}/usr/lib/python*
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+       
+       package %{name}-utils
+               summary = SELinux libselinux utitlities.
+               description
+                       The libselinux-utils package contains the utilities.
+               end
+
+               files
+                       /usr/sbin/*
+                       /usr/share/man/man{5,8}/*
+               end
+       end
+       
+       #package python-selinux
+       #       summary =  SELinux python bindings.
+       #       description = SELinux python bindings for libselinux.
+       #
+       #       def files
+       #               /usr/lib/python*
+       #       end
+       #end
+       
+       
+end
index 9c8ae26f708d93b78074ec69906a73eb1ecb2823..f5435954fccb0067e92b7fa9d6dd04c29158d926 100644 (file)
@@ -1,69 +1,66 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libsemanage
-PKG_VER        = 2.0.45
-PKG_REL        = 1
+name       = libsemanage
+version    = 2.0.45
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.selinuxproject.org
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = SELinux binary policy manipulation library.
+groups     = System/Libraries
+url        = http://www.selinuxproject.org
+license    = LGPLv2+
+summary    = SELinux binary policy manipulation library.
 
-PKG_BUILD_DEPS+= bison bzip2-devel flex libselinux-devel libsepol-devel \
-       python-devel swig ustr-devel
-
-define PKG_DESCRIPTION
+description
        libsemanage provides an API for the manipulation of SELinux \
        binary policies.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tgz
+source_dl  =
+sources    = %{thisapp}.tgz
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel python-selinux-manage
+build
+       requires
+               bison
+               bzip2-devel
+               flex
+               libselinux-devel
+               libsepol-devel
+               python-devel
+               swig
+               ustr-devel
+       end
 
-# Package information for python-selinux-manage
-PKG_SUMMARY-python-selinux-manage =  SELinux manage python bindings.
-PKG_DESCRIPTION-selinux-manage = SELinux python bindings for libsemanage.
+       build
+               make clean
+               make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" swigify
+               make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" all
+               make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g %{CFLAGS}" pywrap
+       end
 
-define PKG_FILES-python-selinux-manage
-       /usr/lib/python*
-endef
+       install_cmds
+               make install-pywrap DESTDIR=%{BUILDROOT}
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make clean
-       cd $(DIR_APP) && make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g $(CFLAGS)" swigify
-       cd $(DIR_APP) && make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g $(CFLAGS)" all
-       cd $(DIR_APP) && make CC=gcc LIBDIR="/usr/lib" CFLAGS="-g $(CFLAGS)" pywrap
-endef
+               # Install our config file
+               cp -vf %{DIR_SOURCE}/semanage.conf %{BUILDROOT}/etc/selinux/semanage.conf
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       cd $(DIR_APP) && make install-pywrap DESTDIR=$(BUILDROOT)
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+       
+       package python-selinux-manage
+               summary =  SELinux manage python bindings.
+               description = SELinux python bindings for libsemanage.
        
-       # Install our config file
-       cp -vf $(DIR_SOURCE)/semanage.conf $(BUILDROOT)/etc/selinux/semanage.conf
-endef
+               files
+                       /usr/lib/python*
+               end
+       end
+end
index 5ee6810cec61c3144819eb471a6293081ef9dc4e..dbecc79f443f08d383305618191adcc7dd0b5d6c 100644 (file)
@@ -1,57 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libsepol
-PKG_VER        = 2.0.41
-PKG_REL        = 0
+name       = libsepol
+version    = 2.0.41
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.selinuxproject.org
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = SELinux binary policy manipulation library.
+groups     = System/Libraries
+url        = http://www.selinuxproject.org
+license    = LGPLv2+
+summary    = SELinux binary policy manipulation library.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        libsepol provides an API for the manipulation of SELinux binary \
        policies.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tgz
+
+build
+       build
+               make clean
+               make CFLAGS="%{CFLAGS}" %{PARALELLISMFLAGS}
+       end
 
-PKG_TARBALL    = $(THISAPP).tgz
+       install_cmds
+               # Remove binaries
+               rm -rf %{BUILDROOT}/usr/bin
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make clean
-       cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" $(PARALELLISMFLAGS)
-endef
+               # Remove manpages from binaries
+               rm -rf %{BUILDROOT}/usr/share/man/man8
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       # Remove binaries
-       rm -rf $(BUILDROOT)/usr/bin
+packages
+       package %{name}
+       end
        
-       # Remove manpages from binaries
-       rm -rf $(BUILDROOT)/usr/share/man/man8
-endef 
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 28499a8d93f5e8c5e8a71c88672255f8ab76f7eb..e672087e82e1da625b155d44f84a412a71f90e61 100644 (file)
@@ -1,49 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libsigc++
-PKG_VER        = 2.2.9
-PKG_REL        = 1
+name       = libsigc++
+version    = 2.2.9
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://libsigc.sourceforge.net 
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Callback Framework for C++.
+groups     = Development/Libraries
+url        = http://libsigc.sourceforge.net
+license    = GPLv2
+summary    = Callback Framework for C++.
 
-PKG_BUILD_DEPS+= gcc-c++ m4
-
-define PKG_DESCRIPTION
-        libsigc++ implements a typesafe callback system for standard C++.
-       It allows you to define signals and to connect those signals to any callback 
-       function, either global or a member function, regardless of whether it is 
-       static or virtual. It also contains adaptor classes for connection of 
+description
+       libsigc++ implements a typesafe callback system for standard C++.
+       It allows you to define signals and to connect those signals to any callback
+       function, either global or a member function, regardless of whether it is
+       static or virtual. It also contains adaptor classes for connection of
        dissimilar callbacks and has an ease of use unmatched by other C++ callback libraries.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+               m4
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index d0175605652edaa294534c63c16c4e7b395f19eb..f11aae880f7effcc60987f8d20e286c77fcc5e29 100644 (file)
@@ -1,80 +1,74 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libsolv
-PKG_VER        = 0.0.0
-GIT_VER        = 0db9d7f
-PKG_REL        = 1
+name       = libsolv
+version    = 0.0.0
+git_ver    = 0db9d7f
+release    = 1
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = System/Libraries
-PKG_URL        = https://github.com/openSUSE/libsolv
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A library for solving package dependencies.
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = System/Libraries
+url        = https://github.com/openSUSE/libsolv
+license    = BSD
+summary    = A library for solving package dependencies.
 
-PKG_BUILD_DEPS+= gcc-c++ cmake db4-devel expat-devel zlib-devel
-
-define PKG_DESCRIPTION
+description
        A library for solving package dependencies by using a SAT
        resolver written in C++.
-endef
+end
+
+thisapp        = %{name}-%{version}-%{git_ver}
+
+source_dl  =
 
-THISAPP        = $(PKG_NAME)-$(PKG_VER)-$(GIT_VER)
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               gcc-c++
+               cmake
+               db4-devel
+               expat-devel
+               zlib-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       prepare_cmds
+               # Do not build bindings, examples and tools.
+               sed "/bindings/d" -i CMakeLists.txt
+               sed "/examples/d" -i CMakeLists.txt
+               sed "/tools/d" -i CMakeLists.txt
 
-define STAGE_PREPARE_CMDS
-       # Do not build bindings, examples and tools.
-       cd $(DIR_APP) && sed "/bindings/d" -i CMakeLists.txt
-       cd $(DIR_APP) && sed "/examples/d" -i CMakeLists.txt
-       cd $(DIR_APP) && sed "/tools/d" -i CMakeLists.txt
+               # Make sure that libsatsolverext is linked properly to all needed
+               # libraries.
+               echo "TARGET_LINK_LIBRARIES(libsolvext libsolv \${EXPAT_LIBRARY} \${ZLIB_LIBRARY})" \
+                       >> ext/CMakeLists.txt
 
-       # Make sure that libsatsolverext is linked properly to all needed
-       # libraries.
-       cd $(DIR_APP) && echo "TARGET_LINK_LIBRARIES(libsolvext libsolv \$${EXPAT_LIBRARY} \$${ZLIB_LIBRARY})" \
-               >> ext/CMakeLists.txt
+               # Remove the RPM stuff when we build with -DFEDORA=1 because we
+               # do not support RPM.
+               sed -e "s/DEBIAN/FEDORA/g" -i ext/CMakeLists.txt
+       end
 
-       # Remove the RPM stuff when we build with -DFEDORA=1 because we
-       # do not support RPM.
-       cd $(DIR_APP) && sed -e "s/DEBIAN/FEDORA/g" -i ext/CMakeLists.txt
-endef
+       build
+               mkdir build
+               cd build && cmake .. -DFEDORA=1 \
+                       -DCMAKE_INSTALL_PREFIX=/usr \
+                       -DCMAKE_BUILD_TYPE=Release \
+                       -DCMAKE_SKIP_RPATH=1
+               make %{PARALELLISMFLAGS}
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && mkdir build
-       cd $(DIR_APP)/build && cmake .. -DFEDORA=1 \
-               -DCMAKE_INSTALL_PREFIX=/usr \
-               -DCMAKE_BUILD_TYPE=Release \
-               -DCMAKE_SKIP_RPATH=1
-       cd $(DIR_APP)/build && make $(PARALELLISMFLAGS)
-endef
+       install
+               cd build && make install DESTDIR=%{BUILDROOT}
 
-define STAGE_INSTALL
-       cd $(DIR_APP)/build && make install DESTDIR=$(BUILDROOT)
+               # Remove unusable header.
+               rm -vf %{BUILDROOT}/usr/include/solv/repo_rpmdb.h
+       end
+end
 
-       # Remove unusable header.
-       rm -vf $(BUILDROOT)/usr/include/solv/repo_rpmdb.h
-endef
+packages
+       package %{name}
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 1f022c8c3bc527c5f5626d7fbfa60489247726b2..f91b31d30907b1e4830e0e9e68141579d9937d15 100644 (file)
@@ -1,53 +1,47 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libsoup
-PKG_VER        = 2.33.6
-PKG_REL        = 1
-
-PKG_MAINTAINER = 
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://live.gnome.org/LibSoup
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = HTTP client/server library for GNOME.
+name       = libsoup
+version    = 2.33.6
+release    = 1
 
-PKG_BUILD_DEPS+= glib2-devel gnutls-devel libgcrypt-devel libxml2-devel \
-       openssl-devel pkg-config zlib-devel
+groups     = System/Libraries
+url        = http://live.gnome.org/LibSoup
+license    = GPL
+summary    = HTTP client/server library for GNOME.
 
-PKG_DEPS-$(PKG_NAME)-devel += libxml2-devel
-
-define PKG_DESCRIPTION
+description
        libsoup is an HTTP client/server library for GNOME. It uses GObjects \
        and the glib main loop, to integrate well with GNOME applications, \
        and also has a synchronous API, for use in threaded applications.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-        --without-gnome
+end
+
+source_dl  =
+
+build
+       requires
+               glib2-devel
+               gnutls-devel
+               libgcrypt-devel
+               libxml2-devel
+               openssl-devel
+               pkg-config
+               zlib-devel
+       end
+
+       configure_options += \
+               --without-gnome
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires = libxml2-devel
+       end
+end
index fcb571045b87527c1f27a8f5eb3abeef537dbf92..351fcd5f186c390a28cff8db9475e58c13d9ee61 100644 (file)
@@ -1,56 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libssh2
-PKG_VER        = 1.2.7
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.libssh2.org/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A library implementing the SSH2 protocol.
+name       = libssh2
+version    = 1.2.7
+release    = 1
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+groups     = System/Libraries
+url        = http://www.libssh2.org/
+license    = BSD
+summary    = A library implementing the SSH2 protocol.
 
-PKG_BUILD_DEPS+= openssl-devel zlib-devel
-
-define PKG_DESCRIPTION
+description
        libssh2 is a library implementing the SSH2 protocol as defined by \
        Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), \
        SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*, \
        SECSH-DHGEX(04), and SECSH-NUMBERS(10).
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --disable-rpath
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               openssl-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --disable-static \
+               --disable-rpath
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 22e8e5eb783e6940311df7ea939225a0aec8ee3b..8ffb47b68affa3caa14a4f2c64b4754e1952bea6 100644 (file)
@@ -1,46 +1,35 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libtasn1
-PKG_VER        = 2.9
-PKG_REL        = 1
+name       = libtasn1
+version    = 2.9
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnu.org/software/libtasn1/
-PKG_LICENSE    = GPLv3+ and LGPLv2+
-PKG_SUMMARY    = The ASN.1 library used in GNUTLS.
+groups     = System/Libraries
+url        = http://www.gnu.org/software/libtasn1/
+license    = GPLv3+ and LGPLv2+
+summary    = The ASN.1 library used in GNUTLS.
 
-PKG_BUILD_DEPS+= bison
-
-define PKG_DESCRIPTION
+description
        This is the ASN.1 library used in GNUTLS. More up to date information can
        be found at http://www.gnu.org/software/gnutls and http://www.gnutls.org.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+
+build
+       requires
+               bison
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 379c5cc1a8e43eee99385f4e16d4fddeedbb5e90..876d121e1f71a16659b6a185bf217d40b3f95855 100644 (file)
@@ -1,54 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libtiff
-PKG_VER        = 4.0.0beta7
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.libtiff.org
-PKG_LICENSE    = libtiff ( own )
-PKG_SUMMARY    = Library of functions for manipulating TIFF format image files.
+name       = libtiff
+version    = 4.0.0beta7
+release    = 1
 
-PKG_BUILD_DEPS+= gcc-c++ libjpeg-devel
+groups     = System/Libraries
+url        = http://www.libtiff.org
+license    = libtiff ( own )
+summary    = Library of functions for manipulating TIFF format image files.
 
-define PKG_DESCRIPTION
+description
        The libtiff package contains a library of functions for manipulating \
        TIFF (Tagged Image File Format) image format files.  TIFF is a widely \
        used file format for bitmapped images.  TIFF files usually end in the \
        .tif extension and they are often quite large.
-endef
-
-PKG_TARBALL    = tiff-$(PKG_VER).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-DIR_APP = /usr/src/tiff-$(PKG_VER)
-
-CONFIGURE_OPTIONS += \
-       --enable-defer-strile-load \
-       --enable-chunky-strip-read
+end
+
+source_dl  =
+sources    = tiff-%{version}.tar.gz
+
+build
+       requires
+               gcc-c++
+               libjpeg-devel
+       end
+
+       DIR_APP = /usr/src/tiff-%{version}
+
+       configure_options += \
+               --enable-defer-strile-load \
+               --enable-chunky-strip-read
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 9b8d99d73223bb3b4429542fbb1d148109f78821..3012a96e0fe0125b457d188d1f81384c1922c53f 100644 (file)
@@ -1,53 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libtool
-PKG_VER        = 2.4
-PKG_REL        = 0
+name       = libtool
+version    = 2.4
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnu.org/software/libtool/
-PKG_LICENSE    = GPLv2+ and LGPLv2+ and GFDL
-PKG_SUMMARY    = Runtime libraries for GNU Libtool Dynamic Module Loader.
+groups     = Build System/Libraries
+url        = http://www.gnu.org/software/libtool/
+license    = GPLv2+ and LGPLv2+ and GFDL
+summary    = Runtime libraries for GNU Libtool Dynamic Module Loader.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-libs $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        GNU Libtool is a set of shell scripts which automatically \
        configure UNIX and UNIX-like systems to generically build \
        shared libraries. Libtool provides a consistent, portable \
        interface which simplifies the process of using shared libraries.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-# Overwrite filelist for -devel so /usr/share/aclocal will be in main package
-define PKG_FILES-$(PKG_NAME)-devel
-       /usr/include
-       /usr/lib/lib*.so
-       /usr/share/libtool/libltdl
-endef
+end
+
+source_dl  =
+
+packages
+       package %{name}
+       
+       package %{name}-devel
+               template DEVEL
+
+               requires = libtool=%{thisver}   
+
+               # Overwrite filelist that /usr/share/aclocal will be in main package
+               files
+                       /usr/include
+                       /usr/lib*/lib*.so
+                       /usr/share/libtool/libltdl
+               end
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+end
index 89c0cda17bbb24a0070f6f9d75a490e4af9db568..b989dabdb1c27c9b2daa77063856e891fe22ffea 100644 (file)
@@ -1,45 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libtorrent
-PKG_VER        = 0.12.7
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Internet/P2P
-PKG_URL        = http://libtorrent.rakshasa.no/
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = A BitTorrent libary.
-
-PKG_BUILD_DEPS+= gcc-c++ libsigc++-devel openssl-devel
-
-define PKG_DESCRIPTION
-       LibTorrent is a BitTorrent library written in C++ for *nix, with a focus on high performance and good code.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+name       = libtorrent
+version    = 0.12.7
+release    = 1
+
+groups     = Internet/P2P
+url        = http://libtorrent.rakshasa.no/
+license    = GPLv3
+summary    = A BitTorrent libary.
+
+description
+       LibTorrent is a BitTorrent library written in C++ for *nix, with a \
+       focus on high performance and good code.
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+               libsigc++-devel
+               openssl-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index e343718724868bf8fb75a030f8909f19831850e5..909c6d7fcb883515e714ac5517ab796c8fb3c8ad 100644 (file)
@@ -1,61 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libusb
-PKG_VER        = 0.1.12
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://sourceforge.net/projects/libusb/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = A library which allows userspace access to USB devices.
+name       = libusb
+version    = 0.1.12
+release    = 1
 
-PKG_BUILD_DEPS+= gcc-c++ pkg-config
+groups     = System/Libraries
+url        = http://sourceforge.net/projects/libusb/
+license    = LGPLv2+
+summary    = A library which allows userspace access to USB devices.
 
-define PKG_DESCRIPTION
+description
        This package provides a way for applications to access USB devices.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-compat-devel
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-       --disable-build-docs \
-       --disable-static 
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
-
-       rm -vf $(BUILDROOT)/usr/lib/libusb{,pp}-0.1.so
-       ln -svf ../../lib/libusb-0.1.so.4 $(BUILDROOT)/usr/lib/libusb.so
-       ln -svf ../../lib/libusb-0.1.so.4 $(BUILDROOT)/usr/lib/libusb-0.1.so
-       ln -svf ../../lib/libusbpp-0.1.so.4 $(BUILDROOT)/usr/lib/libusbpp.so
-       ln -svf ../../lib/libusbpp-0.1.so.4 $(BUILDROOT)/usr/lib/libusbpp-0.1.so
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+               pkg-config
+       end
+
+       configure_options += \
+               --libdir=/lib \
+               --disable-build-docs \
+               --disable-static
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+
+               rm -vf %{BUILDROOT}/usr/lib/libusb{,pp}-0.1.so
+               ln -svf ../../lib/libusb-0.1.so.4 %{BUILDROOT}/usr/lib/libusb.so
+               ln -svf ../../lib/libusb-0.1.so.4 %{BUILDROOT}/usr/lib/libusb-0.1.so
+               ln -svf ../../lib/libusbpp-0.1.so.4 %{BUILDROOT}/usr/lib/libusbpp.so
+               ln -svf ../../lib/libusbpp-0.1.so.4 %{BUILDROOT}/usr/lib/libusbpp-0.1.so
+       end
+end
+
+packages
+       package %{name}-compat
+       end
+       
+       package %{name}-compat-devel
+               template DEVEL
+       end
+end
index eb1b3985156cb8910962fe0107849184932cd0f1..6bbf64b117b771d4e538f8c4dbba0e752b63fd15 100644 (file)
@@ -1,45 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libusb
-PKG_VER        = 1.0.8
-PKG_REL        = 1
+name       = libusb
+version    = 1.0.8
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://sourceforge.net/projects/libusb/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = A library which allows userspace access to USB devices.
+maintainer =
+groups     = System/Libraries
+url        = http://sourceforge.net/projects/libusb/
+license    = LGPLv2+
+summary    = A library which allows userspace access to USB devices.
 
-define PKG_DESCRIPTION
+description
        This package provides a way for applications to access USB devices.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += --disable-static
+end
+
+sources    = %{thisapp}.tar.bz2
+
+build
+       configure_options += \
+               --disable-static
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index a5bd8e9ba855cc3a23b7b9f77ae79538f9d6ebff..12db984252ffeb98d3600f85f02001be2531eacf 100644 (file)
@@ -1,58 +1,54 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libuser
-PKG_VER        = 0.57.1
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = https://fedorahosted.org/libuser/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = A user and group account administration library.
+name       = libuser
+version    = 0.57.1
+release    = 1
 
-PKG_BUILD_DEPS+= cyrus-sasl-devel glib2-devel libselinux-devel openldap-devel \
-       pam-devel pkg-config popt-devel python-devel
+groups     = System/Libraries
+url        = https://fedorahosted.org/libuser/
+license    = LGPLv2+
+summary    = A user and group account administration library.
 
-define PKG_DESCRIPTION
+description
        The libuser library implements a standardized interface for \
        manipulating and administering user and group accounts. The \
        library uses pluggable back-ends to interface to its data sources.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.xz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --with-ldap \
-       --with-selinux
-
-define STAGE_PREPARE_CMDS
-       # Little hack that we don't build documentation that requires sgml2html
-       cd $(DIR_APP) && sed -e "s/^SUBDIRS = .*/SUBDIRS = po/" -i Makefile.in
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               cyrus-sasl-devel
+               glib2-devel
+               libselinux-devel
+               openldap-devel
+               pam-devel
+               pkg-config
+               popt-devel
+               python-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --with-ldap \
+               --with-selinux
+
+       prepare_cmds
+               # Little hack that we don't build documentation that requires sgml2html
+               sed -e "s/^SUBDIRS = .*/SUBDIRS = po/" -i Makefile.in
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 2fb66710a1dc1969009ea08871078510b361676b..7618b543a783e9f528198ed39f6e107807e352d2 100644 (file)
@@ -1,95 +1,83 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libvirt
-PKG_VER        = 0.9.0
-PKG_REL        = 3
+name       = libvirt
+version    = 0.9.0
+release    = 3
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Virtualization
-PKG_URL        = http://www.libvirt.org/
-PKG_LICENSE    = LGPLv2.1+
-PKG_SUMMARY    = A library for controlling VMs.
+groups     = Applications/Virtualization
+url        = http://www.libvirt.org/
+license    = LGPLv2.1+
+summary    = A library for controlling VMs.
 
-PKG_BUILD_DEPS+= \
-       avahi-devel \
-       cyrus-sasl-devel \
-       gnutls-devel \
-       libcurl-devel \
-       libgcrypt-devel \
-       libnl-devel \
-       libselinux-devel \
-       libdevmapper-devel \
-       libpciaccess-devel \
-       libssh2-devel \
-       libtool \
-       libudev-devel \
-       libxml2-devel \
-       lvm2 \
-       openssl-devel \
-       parted-devel \
-       perl-core \
-       pkg-config \
-       python-devel \
-       readline-devel \
-       xen-devel \
-       \
-       /bin/mount \
-       /bin/umount
-
-PKG_DEPS      += \
-       lvm2 \
-       \
-       /bin/mount \
-       /bin/umount
-
-define PKG_DESCRIPTION
+description
        A toolkit to interact with the virtualization capabilities of recent \
        versions of Linux.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               avahi-devel
+               cyrus-sasl-devel
+               gnutls-devel
+               libcurl-devel
+               libgcrypt-devel
+               libnl-devel
+               libselinux-devel
+               libdevmapper-devel
+               libpciaccess-devel
+               libssh2-devel
+               libtool
+               libudev-devel
+               libxml2-devel
+               lvm2
+               openssl-devel
+               parted-devel
+               perl-core
+               pkg-config
+               python-devel
+               readline-devel
+               xen-devel
+               /bin/mount
+               /bin/umount
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --libexecdir=/usr/lib \
+               --disable-static \
+               --with-qemu \
+               --without-esx \
+               --without-hal \
+               --without-lxc \
+               --without-openvz \
+               --without-polkit \
+               --without-uml \
+               --without-vbox \
+               --with-xen \
+               --with-storage-fs \
+               --with-storage-lvm \
+               --with-storage-mpath \
+               --with-storage-disk \
+               --with-avahi \
+               --with-udev \
+               --with-libvirtd \
+               --with-selinux
+end
 
-CONFIGURE_OPTIONS += \
-       --libexecdir=/usr/lib \
-       --disable-static \
-       --with-qemu \
-       --without-esx \
-       --without-hal \
-       --without-lxc \
-       --without-openvz \
-       --without-polkit \
-       --without-uml \
-       --without-vbox \
-       --with-xen \
-       --with-storage-fs \
-       --with-storage-lvm \
-       --with-storage-mpath \
-       --with-storage-disk \
-       --with-avahi \
-       --with-udev \
-       --with-libvirtd \
-       --with-selinux
+packages
+       package %{name}
+               requires
+                       lvm2
+                       /bin/mount
+                       /bin/umount
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 59ab848f95d31cbb06c05ec0f6dd40de723d7d80..a96db904f1b55ed096bd48157e0cb58a0340d756 100644 (file)
@@ -1,57 +1,55 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libxcb
-PKG_VER        = 1.7
-PKG_REL        = 1
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://xcb.freedesktop.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = A C binding to the X11 protocol.
+name       = libxcb
+version    = 1.7
+release    = 1
 
-PKG_BUILD_DEPS+= autoconf automake libtool libXau-devel libxslt-devel \
-       pkg-config python-devel xcb-proto xorg-x11-proto-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://xcb.freedesktop.org/
+license    = MIT
+summary    = A C binding to the X11 protocol.
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-PKG_DEPS-$(PKG_NAME)-devel += libXau-devel
-
-define PKG_DESCRIPTION
+description
        The X protocol C-language Binding (XCB) is a replacement for Xlib \
        featuring a small footprint, latency hiding, direct access to the \
        protocol, improved threading support, and extensibility.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --disable-static
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/pthread-stubs//g" -i configure.ac
-       cd $(DIR_APP) && autoreconf -f --install
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               autoconf
+               automake
+               libtool
+               libXau-devel
+               libxslt-devel
+               pkg-config
+               python-devel
+               xcb-proto
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --disable-static
+
+       prepare_cmds
+               sed -e "s/pthread-stubs//g" -i configure.ac
+               autoreconf -f --install
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires = libXau-devel
+       end
+end
index 5463bae1edea9a4cf3641c07a9145a885626e2ee..6fa7cf41bda7448b343449ef02bd547a882b59c8 100644 (file)
@@ -1,44 +1,19 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libxkbfile
-PKG_VER        = 1.0.6
-PKG_REL        = 0
+name       = libxkbfile
+version    = 1.0.6
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 libxkbfile runtime library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org
+license    = MIT
+summary    = X.Org X11 libxkbfile runtime library.
 
-PKG_BUILD_DEPS+= pkg-config libX11-devel xorg-x11-proto-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        The flex program generates scanners. Scanners are programs which can \
        recognize lexical patterns in text. Flex takes pairs of regular \
        expressions and C code as input and generates a C source file as \
@@ -48,6 +23,23 @@ define PKG_DESCRIPTION
        executes the corresponding C code. Flex was designed to work with \
        both Yacc and Bison, and is used by many programs as part of their \
        build process.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
+end
+
+source_dl  =
+
+build
+       requires
+               libX11-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 81215ac1ba0564aaea27f0e0fdee4fc4623f3945..322e60b52fd326c251e1bd5bd01af8fbfdff5abc 100644 (file)
@@ -1,42 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libxml2
-PKG_VER        = 2.7.7
-PKG_REL        = 1
+name       = libxml2
+version    = 2.7.7
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://xmlsoft.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Library providing XML and HTML support.
+groups     = System/Libraries
+url        = http://xmlsoft.org/
+license    = MIT
+summary    = Library providing XML and HTML support.
 
-PKG_BUILD_DEPS+= pkg-config zlib-devel
-
-define PKG_DESCRIPTION
+description
        This library allows to manipulate XML files. It includes support \
        to read, modify and write XML and HTML files. There is DTDs support \
        this includes parsing and validation even with complex DtDs, either \
@@ -46,8 +22,22 @@ define PKG_DESCRIPTION
        to select subnodes or ranges. A flexible Input/Output mechanism is \
        available, with existing HTTP and FTP modules and combined to an URI \
        library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+
+build
+       requires
+               pkg-config
+               zlib-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 2a5c8dcf5a989830bd42ef4584a04d1ea53a291e..8a12e806a93d77deedf5f5cff606426366dc1702 100644 (file)
@@ -1,47 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libxslt
-PKG_VER        = 1.1.26
-PKG_REL        = 0
+name       = libxslt
+version    = 1.1.26
+release    = 1
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://xmlsoft.org/XSLT/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Library providing the Gnome XSLT engine.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = Development/Libraries
+url        = http://xmlsoft.org/XSLT/
+license    = MIT
+summary    = Library providing the Gnome XSLT engine.
 
-PKG_BUILD_DEPS+= libgcrypt-devel libxml2-devel pkg-config zlib-devel
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        This C library allows to transform XML files into other XML files \
        (or HTML, text, ...) using the standard XSLT stylesheet transformation \
        mechanism.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
+end
+
+source_dl  =
+
+build
+       requires
+               libgcrypt-devel
+               libxml2-devel
+               pkg-config
+               zlib-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 5bed2d20c4caef58dd29eff55d84e1c827bbc69b..420920d64c7504e3e0db82d2887c71e77919f9d3 100644 (file)
@@ -1,51 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libyaml
-PKG_VER        = 0.1.3
-PKG_REL        = 0
+name       = libyaml
+version    = 0.1.3
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://pyyaml.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = YAML 1.1 parser and emitter written in C.
+groups     = System/Libraries
+url        = http://pyyaml.org/
+license    = MIT
+summary    = YAML 1.1 parser and emitter written in C.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        YAML is a data serialization format designed for human readability \
        and interaction with scripting languages. LibYAML is a YAML parser \
        and emitter written in C.
-endef
-
-PKG_TARBALL    = yaml-$(PKG_VER).tar.gz
-
-DIR_APP        = $(DIR_SRC)/yaml-$(PKG_VER)
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+sources    = yaml-%{version}.tar.gz
+
+build
+       DIR_APP = %{DIR_SRC}/yaml-%{version}
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 9d704983ed5c0963e490d4c48d75088341bb6265..9d4ce5c272be283d7abef6af66a07a0d2ab599b2 100644 (file)
@@ -1,65 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = lighttpd
-PKG_VER        = 1.4.29
-PKG_REL        = 1
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Networking/Webservers
-PKG_URL        = http://www.lighttpd.net/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Lightning fast webserver with light system requirements.
+name       = lighttpd
+version    = 1.4.29
+release    = 1
 
-PKG_BUILD_DEPS+= bzip2-devel gdbm-devel openldap-devel openssl-devel pcre-devel \
-       pkg-config zlib-devel
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Networking/Webservers
+url        = http://www.lighttpd.net/
+license    = BSD
+summary    = Lightning fast webserver with light system requirements.
 
-define PKG_DESCRIPTION
+description
        Secure, fast, compliant and very flexible web-server which has been optimized \
        for high-performance environments. It has a very low memory footprint compared \
        to other webservers and takes care of cpu-load. Its advanced feature-set \
        (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make \
        it the perfect webserver-software for every server that is suffering load \
        problems.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --libdir=/usr/lib/$(PKG_NAME) \
-       --with-ldap \
-       --with-openssl
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/$(PKG_NAME).conf $(BUILDROOT)/etc/$(PKG_NAME).conf
-
-       -mkdir -pv $(BUILDROOT)/var/log/$(PKG_NAME)
-       touch $(BUILDROOT)/var/log/$(PKG_NAME)/{access,error}.log
-       chown nobody.nobody -R $(BUILDROOT)/var/log/$(PKG_NAME)
-       -mkdir -pv $(BUILDROOT)/var/cache/lighttpd/compress
-       chown nobody.nobody -Rv $(BUILDROOT)/var/cache/lighttpd/
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bzip2-devel
+               gdbm-devel
+               openldap-devel
+               openssl-devel
+               pcre-devel
+               pkg-config
+               zlib-devel
+       end
+
+       configure_options += \
+               --libdir=/usr/lib/%{name} \
+               --with-ldap \
+               --with-openssl
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/%{name}.conf %{BUILDROOT}/etc/%{name}.conf
+
+               mkdir -pv %{BUILDROOT}/var/log/%{name}
+               touch %{BUILDROOT}/var/log/%{name}/{access,error}.log
+               chown nobody.nobody -R %{BUILDROOT}/var/log/%{name}
+               mkdir -pv %{BUILDROOT}/var/cache/lighttpd/compress
+               chown nobody.nobody -Rv %{BUILDROOT}/var/cache/lighttpd/
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index ff62237a586942842c323516791623b4b50b4c30..9970c2953ee42dfd922c9a8311bc34dea5052f44 100644 (file)
@@ -1,59 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = linux-atm
-PKG_VER        = 2.4.1
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Daemons
-PKG_URL        = http://linux-atm.sourceforge.net/
-PKG_LICENSE    = BSD and GPLv2 and GPLv2+ and LGPLv2+ and MIT
-PKG_SUMMARY    = Tools to support ATM networking under Linux.
+name       = linux-atm
+version    = 2.4.1
+release    = 1
 
-PKG_BUILD_DEPS+= flex-devel kernel-headers perl
+groups     = System/Daemons
+url        = http://linux-atm.sourceforge.net/
+license    = BSD and GPLv2 and GPLv2+ and LGPLv2+ and MIT
+summary    = Tools to support ATM networking under Linux.
 
-define PKG_DESCRIPTION
+description
        This package contains header files and libraries for development \
        using theLinux ATM API.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --mandir=/usr/share/man
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/-lfl/&_pic/g" -i src/*{,/*}/Makefile.in
-endef
-
-# Fails
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
-#endef
+end
+
+source_dl  =
+
+build
+       requires
+               flex
+               flex-devel
+               kernel-headers
+               perl
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --mandir=/usr/share/man
+
+       prepare_cmds
+               sed -e "s/-lfl/&_pic/g" -i src/*{,/*}/Makefile.in
+       end
+
+       # Fails
+       #def test
+       #       make check
+       #end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 0cccc26c329683b7c1b599bd951dbe1df6646bad..f83462e87c0349e8fed74de69bc299b4e30aecdf 100644 (file)
@@ -1,53 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2011  IPFire Team  <info@ipfire.org>                     #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = linux-firmware
-PKG_VER        = 20110311
-PKG_REL        = 1
+name       = linux-firmware
+version    = 20110311
+release    = 1
 
-PKG_MAINTAINER = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.kernel.org/pub/linux/kernel/people/dwmw2/firmware/
-PKG_LICENSE    = Non-GPL
-PKG_SUMMARY    = Firmware Binaries for some Devices.
+maintainer = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
+groups     = System/Libraries
+url        = http://www.kernel.org/pub/linux/kernel/people/dwmw2/firmware/
+license    = Non-GPL
+summary    = Firmware Binaries for some Devices.
 
-define PKG_DESCRIPTION
+description
        linux-firmware provides some firmware binaries that \
        are loaded into the devices at startup. \
        For detailed license info check the WHENCE and LICENSE.* texts \
        for the specific firmware.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-PKG_BUILD_DEPS =
+build
+       build
+               : # Nothing to do.
+       end
 
-STAGE_BUILD    = # Nothing to do.
+       install
+               mkdir -pv %{BUILDROOT}/lib/firmware
+               cp -prv * %{BUILDROOT}/lib/firmware
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/lib/firmware
-       cd $(DIR_APP) && cp -prv * $(BUILDROOT)/lib/firmware
-endef
+packages
+       package %{name}
+       end
+end
index bf67054da23f58cdacb79b69fa163af539d2e802..271e9ad5fa19b550357a4e42e8f6e22ae7ca7246 100644 (file)
@@ -1,49 +1,38 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = lldpd
-PKG_VER        = 0.5.2
-PKG_REL        = 5
+name       = lldpd
+version    = 0.5.2
+release    = 5
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = https://trac.luffy.cx/lldpd/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = Utilities for the Link Layer Discovery Protocol.
+groups     = Networking/Tools
+url        = https://trac.luffy.cx/lldpd/
+license    = GPL
+summary    = Utilities for the Link Layer Discovery Protocol.
 
-PKG_BUILD_DEPS+= libxml2-devel pkg-config zlib-devel
-
-define PKG_DESCRIPTION
+description
        The LLDPD project aims to provide a comprehensive implementation of \
        the IEEE standard 802.1AB Link Layer Discovery Protocol.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --with-xml \
-       --with-privsep-user=lldpd \
-       --with-privsep-group=lldpd
+end
+
+source_dl  =
+
+build
+       requires
+               libxml2-devel
+               pkg-config
+               zlib-devel
+       end
+
+       configure_options += \
+               --with-xml \
+               --with-privsep-user=lldpd \
+               --with-privsep-group=lldpd
+end
+
+packages
+       package %{name}
+       end
+end
index 90233149035d8d591526a4b99b92bbe800c82554..f686653841d484ae214a4cdacd19a675dd419f1e 100644 (file)
@@ -1,55 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = lm_sensors
-PKG_VER        = 3.3.1
-PKG_REL        = 1
+name       = lm_sensors
+version    = 3.3.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Statistics
-PKG_URL        = http://www.lm-sensors.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Hardware monitoring tools.
+groups     = Applications/Statistics
+url        = http://www.lm-sensors.org/
+license    = GPLv2+
+summary    = Hardware monitoring tools.
 
-PKG_BUILD_DEPS+= bison flex sysfsutils-devel
-PKG_DEPS      += perl rrdtool
-
-define PKG_DESCRIPTION
+description
        The lm_sensors package includes a collection of modules for general SMBus \
        access and hardware monitoring.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/^PREFIX\ :=\ .*/PREFIX=\/usr/g" \
-               -e "s/^MACHINE\ :=\ .*/MACHINE=$(MACHINE)/g" \
-               -e "s/^MANDIR.*/MANDIR=\/usr\/share\/man/g" -i Makefile
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) EXLDFLAGS=
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               bison
+               flex
+               sysfsutils-devel
+       end
+
+       prepare_cmds
+               sed -e "s/^PREFIX\ :=\ .*/PREFIX=\/usr/g" \
+                       -e "s/^MACHINE\ :=\ .*/MACHINE=%{MACHINE}/g" \
+                       -e "s/^MANDIR.*/MANDIR=\/usr\/share\/man/g" -i Makefile
+       end
+
+       build
+               make %{PARALLELISMFLAGS} EXLDFLAGS=
+       end
+end
+
+packages
+       package %{name}
+               requires = perl rrdtool
+       end
+end
index 0f1cf5a291a5cd009e879bced489e66c54b9d1d8..9b083c9aeef708e5896919ccce701fd6a85b0d12 100644 (file)
@@ -1,66 +1,57 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = logrotate
+version    = 3.7.7
+release    = 2
 
-PKG_NAME       = logrotate
-PKG_VER        = 3.7.7
-PKG_REL        = 2
+groups     = Base System/Base
+url        = https://fedorahosted.org/releases/l/o/logrotate/
+license    = GPL+
+summary    = Rotates, compresses, removes and mails system log files.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Base
-PKG_URL        = https://fedorahosted.org/releases/l/o/logrotate/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Rotates, compresses, removes and mails system log files.
-
-PKG_BUILD_DEPS+= coreutils gzip libselinux-devel popt-devel which
-
-define PKG_DESCRIPTION
+description
        The logrotate utility is designed to simplify the administration of \
        log files on a system which generates a lot of log files. Logrotate \
        allows for the automatic rotation compression, removal and mailing of \
        log files.  Logrotate can be set to handle a log file daily, weekly, \
        monthly or when the log file gets to a certain size.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make RPM_OPT_FLAGS="$(CFLAGS)" WITH_SELINUX=yes $(PARALLELISMFLAGS)
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make test
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install BASEDIR=/usr PREFIX=$(BUILDROOT) \
-               MANDIR=/usr/share/man
-
-       -mkdir -pv $(BUILDROOT)/var/lib
-       touch $(BUILDROOT)/var/lib/logrotate.status
-
-       # Creating directory for config files
-       mkdir -pv $(BUILDROOT)/etc/logrotate.d
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               coreutils
+               gzip
+               libselinux-devel
+               popt-devel
+               which
+       end
+
+       build
+               make RPM_OPT_FLAGS="%{CFLAGS}" WITH_SELINUX=yes %{PARALLELISMFLAGS}
+       end
+
+       test
+               make test
+       end
+
+       install
+               make install BASEDIR=/usr PREFIX=%{BUILDROOT} \
+                       MANDIR=/usr/share/man
+
+               mkdir -pv %{BUILDROOT}/var/lib
+               touch %{BUILDROOT}/var/lib/logrotate.status
+
+               # Creating directory for config files
+               mkdir -pv %{BUILDROOT}/etc/logrotate.d
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index c8f01c683cb6b304cef5b36750fc665c7089fdb3..527e45aa47b60846f3a760bff3033f11e0f8f9fb 100644 (file)
@@ -1,62 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = lsof
+version    = 4.82
+release    = 1
 
-PKG_NAME       = lsof
-PKG_VER        = 4.82
-PKG_REL        = 1
+groups     = Base Development/Debuggers
+url        = ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
+license    = zlib
+summary    = A utility which lists open files on a Linux/UNIX system.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Development/Debuggers
-PKG_URL        = ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
-PKG_LICENSE    = zlib
-PKG_SUMMARY    = A utility which lists open files on a Linux/UNIX system.
-
-PKG_BUILD_DEPS+= libselinux-devel
-
-define PKG_DESCRIPTION
+description
        Lsof stands for LiSt Open Files, and it does just that: \
        it lists information about files that are open by the \
        processes running on a system.
-endef
+end
+
+source_dl  =
+sources    = %{name}_%{version}_src.tar.gz
 
-PKG_TARBALL    = $(PKG_NAME)_$(PKG_VER)_src.tar.gz
+build
+       requires
+               libselinux-devel
+       end
 
-DIR_APP = /usr/src/$(PKG_NAME)_$(PKG_VER)_src
+       DIR_APP = /usr/src/%{name}_%{version}_src
 
-define STAGE_BUILD
-       cd $(DIR_APP) && \
+       build
                LINUX_BASE=/proc \
                LSOF_VSTR="2.6.16" \
-               ./Configure linux -n
-       cd $(DIR_APP) && make DEBUG="$(CFLAGS)" $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       cd $(DIR_APP) && install -m 755 lsof $(BUILDROOT)/usr/sbin
-       -mkdir -pv $(BUILDROOT)/usr/share/man/man8
-       cd $(DIR_APP) && cp -vf lsof.8 $(BUILDROOT)/usr/share/man/man8
-endef
+                       ./Configure linux -n
+               make DEBUG="%{CFLAGS}" %{PARALLELISMFLAGS}
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/sbin
+               install -m 755 lsof %{BUILDROOT}/usr/sbin
+               mkdir -pv %{BUILDROOT}/usr/share/man/man8
+               cp -vf lsof.8 %{BUILDROOT}/usr/share/man/man8
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 4ecdd32498fab7e3973f53b60fc2f713943fce73..a3231db09c0ec7b00afb366c9d0f116bd746812e 100644 (file)
@@ -1,42 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = lua
-PKG_VER        = 5.1.4
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://www.lua.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Powerful light-weight programming language.
+name       = lua
+version    = 5.1.4
+release    = 2
 
-PKG_BUILD_DEPS+= autoconf automake libtool ncurses-devel readline-devel
+groups     = Development/Languages
+url        = http://www.lua.org/
+license    = MIT
+summary    = Powerful light-weight programming language.
 
-define PKG_DESCRIPTION
+description
        Lua is a powerful light-weight programming language designed for \
        extending applications. Lua is also frequently used as a \
        general-purpose, stand-alone language. Lua is free software. \
@@ -45,30 +21,50 @@ define PKG_DESCRIPTION
        is dynamically typed, interpreted from bytecodes, and has automatic \
        memory management with garbage collection, making it ideal for \
        configuration, scripting, and rapid prototyping.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+build
+       requires
+               autoconf
+               automake
+               libtool
+               ncurses-devel
+               readline-devel
+       end
 
-PKG_FILES-$(PKG_NAME)-libs = \
-       /usr/lib/liblua-5.1.so
+       prepare_cmds
+               chmod u+x autogen.sh config.guess config.sub configure \
+                       depcomp install-sh missing
+               sh autogen.sh
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && chmod u+x autogen.sh config.guess config.sub configure \
-               depcomp install-sh missing
-       cd $(DIR_APP) && sh autogen.sh
-endef
+       configure_options += \
+               --mandir=/usr/share/man \
+               --with-readline
 
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --with-readline
+       # hack so that only /usr/bin/lua gets linked with readline as it is the
+       # only one which needs this and otherwise we get License troubles
+       make_build_targets =  LIBS="-ldl" luac_LDADD="liblua.la -lm -ldl"
 
-# hack so that only /usr/bin/lua gets linked with readline as it is the
-# only one which needs this and otherwise we get License troubles
-STAGE_BUILD_TARGETS =  LIBS="-ldl" luac_LDADD="liblua.la -lm -ldl"
+       # Remove readline from lua.pc
+       build_cmds
+               sed -i 's/-lreadline -lncurses //g' etc/lua.pc
+       end
+end
 
-# Remove readline from lua.pc
-define STAGE_BUILD_CMDS
-       cd $(DIR_APP) && sed -i 's/-lreadline -lncurses //g' etc/lua.pc
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+       
+       package %{name}-libs
+               template LIBS
+       
+               files += /usr/lib/*/liblua-5.1.so
+       end
+end
index e6741b552f0dcbfe13209aa677538b81b15b20f7..0612e02321ce9e6ed90abea2b3943591be4a0ed2 100644 (file)
@@ -1,69 +1,63 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = LVM2
+version    = 2.02.54
+release    = 1
 
-PKG_NAME       = LVM2
-PKG_VER        = 2.02.54
-PKG_REL        = 1
+groups     = System/Base
+url        = http://sources.redhat.com/lvm2/
+license    = GPLv2
+summary    = Userland logical volume management tools.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://sources.redhat.com/lvm2/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Userland logical volume management tools.
-
-PKG_BUILD_DEPS+= libselinux-devel pkg-config ncurses-devel readline-devel
-
-define PKG_DESCRIPTION
+description
        LVM2 includes all of the support for handling read/write operations on \
        physical volumes (hard disks, RAID-Systems, magneto optical, etc., \
        multiple devices (MD), see mdadd(8) or even loop devices, see \
        losetup(8)), creating volume groups (kind of virtual disks) from one \
        or more physical volumes and creating one or more logical volumes \
        (kind of logical partitions) in volume groups.
-endef
-
-PKG_TARBALL    = $(THISAPP).tgz
-
-PKG_PACKAGES  += libdevmapper libdevmapper-devel
-
-PKG_FILES-libdevmapper = $(PKG_FILES-$(PKG_NAME_REAL)-libs)
-PKG_FILES-libdevmapper-devel = $(PKG_FILES-$(PKG_NAME_REAL)-devel)
-
-THISAPP        = $(PKG_NAME).$(PKG_VER)
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --sbindir=/sbin \
-       --exec-prefix=/ \
-       --libdir=/lib \
-       --enable-pkgconfig
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -vf $(BUILDROOT)/lib/libdevmapper.so
-       ln -svf libdevmapper.so.1.02 $(BUILDROOT)/lib/libdevmapper.so.1
-       ln -svf ../../lib/libdevmapper.so.1 $(BUILDROOT)/usr/lib/libdevmapper.so
-endef
+end
+
+thisapp    = %{name}.%{version}
+
+source_dl  =
+sources    = %{thisapp}.tgz
+
+build
+       requires
+               libselinux-devel
+               pkg-config
+               ncurses-devel
+               readline-devel
+       end
+
+       configure_options += \
+               --bindir=/bin \
+               --sbindir=/sbin \
+               --exec-prefix=/ \
+               --libdir=/lib \
+               --enable-pkgconfig
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -vf %{BUILDROOT}/lib/libdevmapper.so
+               ln -svf libdevmapper.so.1.02 %{BUILDROOT}/lib/libdevmapper.so.1
+               ln -svf ../../lib/libdevmapper.so.1 %{BUILDROOT}/usr/lib/libdevmapper.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package libdevmapper
+               template LIBS
+       end
+       
+       package libdevmapper-devel
+               template DEVEL
+       end
+end
index 7146224cbe7aa71e267675ef946cc28469bdb427..0aac74875546f572a15b935427276d10bfc6bf6f 100644 (file)
@@ -1,51 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = lzo
-PKG_VER        = 2.05
-PKG_REL        = 1
+name       = lzo
+version    = 2.05
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Compression
-PKG_URL        = http://www.oberhumer.com/opensource/lzo/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Data compression library with very fast (de)compression.
+groups     = Applications/Compression
+url        = http://www.oberhumer.com/opensource/lzo/
+license    = GPLv2+
+summary    = Data compression library with very fast (de)compression.
 
-PKG_BUILD_DEPS+= zlib-devel
-
-define PKG_DESCRIPTION
+description
        LZO is a portable lossless data compression library written in ANSI C. \
        It offers pretty fast compression and very fast decompression. \
        Decompression requires no memory. In addition there are slower \
        compression levels achieving a quite competitive compression ratio \
        while still decompressing at this very high speed.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += --disable-static --enable-shared
+end
+
+source_dl  =
+
+build
+       requires
+               zlib-devel
+       end
+
+       configure_options += \
+               --disable-static \
+               --enable-shared
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index a2132efd51d9c97c71c064918996358a66c30cc0..837951afce03d8c1254da59f51dc6c3af489d2ef 100644 (file)
@@ -1,50 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = m4
+version    = 1.4.16
+release    = 1
 
-PKG_NAME       = m4
-PKG_VER        = 1.4.16
-PKG_REL        = 1
+groups     = Applications/Text
+url        = http://www.gnu.org/software/m4/
+license    = GPLv3+
+summary    = The GNU macro processor.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Text
-PKG_URL        = http://www.gnu.org/software/m4/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The GNU macro processor.
-
-define PKG_DESCRIPTION
-       A GNU implementation of the traditional UNIX macro processor. M4 is \
-       useful for writing text files which can be logically parsed, and is \
-       used by many programs as part of their build process.  M4 has \
-       built-in functions for including files, running shell commands, \
-       doing arithmetic, etc. The autoconf program needs m4 for generating \
+description
+       A GNU implementation of the traditional UNIX macro processor. M4 is
+       useful for writing text files which can be logically parsed, and is
+       used by many programs as part of their build process.  M4 has
+       built-in functions for including files, running shell commands,
+       doing arithmetic, etc. The autoconf program needs m4 for generating
        configure scripts, but not for running configure scripts.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.xz
 
-PKG_TARBALL    = $(THISAPP).tar.xz
+# Testsuite is broken ( readlink )
+#build
+#      test
+#              make check
+#      end
+#end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+packages
+       package %{name}
+end
index b17f6f3103f525ede123f719aacd02e79774ccc5..01fd954b7f39399dd3ccd68f3b80590437ba227a 100644 (file)
@@ -1,55 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = mailcap
-PKG_VER        = 2.1.36
-PKG_REL        = 1
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = https://fedorahosted.org/released/mailcap/
-PKG_LICENSE    = Public Domain and MIT
-PKG_SUMMARY    = Helper application and MIME type associations for file types.
-
-define PKG_DESCRIPTION
-       The mailcap file is used by the metamail program.  Metamail reads the \
-       mailcap file to determine how it should display non-text or multimedia \
-       material.  Basically, mailcap associates a particular type of file \
-       with a particular program that a mail agent or other program can call \
-       in order to handle the file.  Mailcap should be installed to allow \
+name       = mailcap
+version    = 2.1.36
+release    = 1
+arch       = noarch
+
+groups     = System/Base
+url        = https://fedorahosted.org/released/mailcap/
+license    = Public Domain and MIT
+summary    = Helper application and MIME type associations for file types.
+
+description
+       The mailcap file is used by the metamail program.  Metamail reads the
+       mailcap file to determine how it should display non-text or multimedia
+       material.  Basically, mailcap associates a particular type of file
+       with a particular program that a mail agent or other program can call
+       in order to handle the file.  Mailcap should be installed to allow
        certain programs to be able to handle non-text files.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.xz
 
-PKG_TARBALL    = $(THISAPP).tar.xz
+build
+       build = # Nothing to do.
 
-INSTALL_TARGETS = sysconfdir=/etc mandir=/usr/share/man
+       test
+               make check
+       end
 
-STAGE_BUILD = # Nothing to do
+       make_install_targets += \
+               sysconfdir=/etc mandir=/usr/share/man
+end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+packages
+       package %{name}
+end
index 63e0b250331e0e264499c58fd6a390362c1dc1d9..da9192a435dacb2b73b7448d91d468d7051b45eb 100644 (file)
@@ -1,53 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = make
-PKG_VER        = 3.81
-PKG_REL        = 0
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/make/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A GNU tool which simplifies the build process for users.
-
-define PKG_DESCRIPTION
-       A GNU tool for controlling the generation of executables and other \
-       non-source files of a program from the program's source files. Make \
-       allows users to build and install packages without any significant \
-       knowledge about the details of the build process. The details about \
-       how the program should be built are provided for make in the program's \
+name       = make
+version    = 3.81
+release    = 1
+
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Build Development/Tools
+url        = http://www.gnu.org/software/make/
+license    = GPLv2+
+summary    = A GNU tool which simplifies the build process for users.
+
+description
+       A GNU tool for controlling the generation of executables and other
+       non-source files of a program from the program's source files. Make
+       allows users to build and install packages without any significant
+       knowledge about the details of the build process. The details about
+       how the program should be built are provided for make in the program's
        makefile.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       configure_options += \
+               --mandir=/usr/share
 
-CONFIGURE_OPTIONS += --mandir=/usr/share
+       test
+               sed -e "s/-w/& /" -i tests/scripts/features/recursion
+               make check
+       end
+end
 
-define STAGE_TEST
-       cd $(DIR_APP) && sed -e "s/-w/& /" -i tests/scripts/features/recursion
-       cd $(DIR_APP) && make check
-endef
+packages
+       package %{name}
+end
index 3f0ee45db6d9bfa8cba7e84f9f44384371484dd3..2d6ad4cc43ee05db373de698f821a3b0d51a8fc3 100644 (file)
@@ -1,69 +1,69 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = man-db
-PKG_VER        = 2.6.0.2
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Documentation
-PKG_URL        = http://bzr.savannah.gnu.org/r/man-db/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = man-db is an on-line manual database.
+name       = man-db
+version    = 2.6.0.2
+release    = 2
 
-PKG_BUILD_DEPS+= db4-devel gdbm-devel groff less libpipeline-devel
-PKG_DEPS      += groff less
+groups     = Base Documentation
+url        = http://bzr.savannah.gnu.org/r/man-db/
+license    = GPL
+summary    = man-db is an on-line manual database.
 
-# This package should also be known by "man".
-PKG_PROVIDES  += man
-
-define PKG_DESCRIPTION
+description
        man-db is an implementation of the standard Unix documentation \
        system accessed using the man command. It uses a Berkeley DB database \
        in place of the traditional flat-text whatis databases. man-db is \
        used by several popular GNU/Linux distributions.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               db4-devel
+               gdbm-devel
+               groff
+               less
+               libpipeline-devel
+       end
+
+       configure_options += \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --disable-setuid \
+               --with-browser=/usr/bin/lynx \
+               --with-col=/usr/bin/col \
+               --with-vgrind=/usr/bin/vgrind \
+               --with-grap=/usr/bin/grap
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       prepare_cmds
+               sed -i -e '\%\t/usr/man%d' -e '\%\t/usr/local/man%d' \
+                       src/man_db.conf.in
+       end
+end
 
 # This package installs a lib in /usr/lib/man-db and links all binaries
 # against it. Seems as if the ABI is not stable, yet and so we need to
 # accept that.
-QUALITY_AGENT_WHITELIST_RPATH = /usr/lib/man-db
+quality-agent
+       whitelist_rpath
+               /usr/lib/man-db
+       end
+end
 
-CONFIGURE_OPTIONS += \
-       --libexecdir=/usr/lib \
-       --sysconfdir=/etc \
-       --disable-setuid \
-       --with-browser=/usr/bin/lynx \
-       --with-col=/usr/bin/col \
-       --with-vgrind=/usr/bin/vgrind \
-       --with-grap=/usr/bin/grap
+packages
+       package %{name}
+               requires
+                       groff
+                       less
+               end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i -e '\%\t/usr/man%d' -e '\%\t/usr/local/man%d' \
-               src/man_db.conf.in
-endef
+               # This package also should be known as man.
+               provides
+                       man
+               end
+       end
+end
index de2cfcc8feb5a37bcb2c363494598762df7627c9..8f05558f3e29965f3f8b3e1e4164b41b0b9d33d0 100644 (file)
@@ -1,48 +1,33 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = man-pages
+version    = 3.23
+release    = 1
+arch       = noarch
 
-PKG_NAME       = man-pages
-PKG_VER        = 3.23
-PKG_REL        = 1
-PKG_ARCH       = noarch
+groups     = Base Documentation
+url        = http://www.kernel.org/pub/linux/docs/manpages/
+license    = GPLv2+ and GPL+ and BSD and MIT and Copyright only and IEEE
+summary    = Man (manual) pages from the Linux Documentation Project.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Documentation
-PKG_URL        = http://www.kernel.org/pub/linux/docs/manpages/
-PKG_LICENSE    = GPLv2+ and GPL+ and BSD and MIT and Copyright only and IEEE
-PKG_SUMMARY    = Man (manual) pages from the Linux Documentation Project.
-
-PKG_BUILD_DEPS = # Nothing
-PKG_DEPS      += man-db
-
-define PKG_DESCRIPTION
-       A large collection of man pages (documentation) from the Linux \
+description
+       A large collection of man pages (documentation) from the Linux
        Documentation Project (LDP).
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       build = # Do nothing
+end
 
-STAGE_BUILD = # Do nothing
+packages
+       package %{name}
+               requires
+                       man-db
+               end
+       end
+end
index 6625e4ab183f332b754cc57c53182d940f6e6aeb..dee107de310098435e19662fb0624a60c50ab4be 100644 (file)
@@ -1,63 +1,54 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = mc
-PKG_VER        = 4.7.4
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://www.ibiblio.org/mc/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = User-friendly text console file manager and visual shell.
-
-PKG_BUILD_DEPS+= e2fsprogs-devel glib2-devel pkg-config samba-devel slang-devel
+name       = mc
+version    = 4.7.4
+release    = 1
 
-# This awkward dependency is found and cannot be resolved.
-PKG_REQUIRES_FILTER = perl\(pieces\)
+groups     = Applications/System
+url        = http://www.ibiblio.org/mc/
+license    = GPLv2+
+summary    = User-friendly text console file manager and visual shell.
 
-define PKG_DESCRIPTION
-       Midnight Commander is a visual shell much like a file manager, only \
-       with many more features. It is a text mode application, but it also \
-       includes mouse support. Midnight Commander's best features are its \
-       ability to FTP, view tar and zip files, and to poke into RPMs for \
+description
+       Midnight Commander is a visual shell much like a file manager, only 
+       with many more features. It is a text mode application, but it also
+       includes mouse support. Midnight Commander's best features are its
+       ability to FTP, view tar and zip files, and to poke into RPMs for
        specific files.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libexecdir=/usr/lib \
-       --with-screen=slang \
-       --with-samba \
-       --without-x \
-       --enable-charset \
-       --disable-rpath
-
-define STAGE_INSTALL_CMDS
-       chmod 1755 $(BUILDROOT)/usr/lib/mc/cons.saver
-endef
+end
+
+sources    = %{thisapp}.tar.bz2
+sources_dl =
+
+build
+       requires
+               e2fsprogs-devel
+               glib2-devel
+               pkg-config
+               samba-devel
+               slang-devel
+       end
+
+       # This awkward dependency is found and cannot be resolved.
+       PKG_REQUIRES_FILTER = perl\(pieces\)
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libexecdir=/usr/lib \
+               --with-screen=slang \
+               --with-samba \
+               --without-x \
+               --enable-charset \
+               --disable-rpath
+
+       install_cmds
+               chmod 1755 %{BUILDROOT}/usr/lib/mc/cons.saver
+       end
+end
+
+packages
+       package %{name}
+end
index d2a5f0c5fae650ac9cd7911d174651e7af8f08d4..165ee4050fb336f92df67357985d78abd1137bb4 100644 (file)
@@ -1,67 +1,55 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = mdadm
+version    = 3.2.2
+release    = 1
 
-PKG_NAME       = mdadm
-PKG_VER        = 3.2.2
-PKG_REL        = 1
+groups     = System/Base
+url        = http://www.kernel.org/pub/linux/utils/raid/mdadm/
+license    = GPLv2+
+summary    = The mdadm program controls Linux md devices (software RAID arrays).
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.kernel.org/pub/linux/utils/raid/mdadm/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = The mdadm program controls Linux md devices (software RAID arrays).
-
-PKG_BUILD_DEPS+= groff
-
-define PKG_DESCRIPTION
-       The mdadm program is used to create, manage, and monitor Linux MD (software \
-       RAID) devices.  As such, it provides similar functionality to the raidtools \
-       package.  However, mdadm is a single program, and it can perform \
-       almost all functions without a configuration file, though a configuration \
+description
+       The mdadm program is used to create, manage, and monitor Linux MD (software
+       RAID) devices.  As such, it provides similar functionality to the raidtools
+       package.  However, mdadm is a single program, and it can perform
+       almost all functions without a configuration file, though a configuration
        file can be used to help with some common tasks.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               groff
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       CFLAGS += -fno-strict-aliasing
 
-CFLAGS        += -fno-strict-aliasing
+       prepare_cmds
+               sed -e "s/^INSTALL = .*/INSTALL = install/" -i Makefile
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/^INSTALL = .*/INSTALL = install/" -i Makefile
-endef
+       build
+               make %{PARALLELISMFLAGS} CXFLAGS="%{CFLAGS}" \
+                       CWFLAGS= SYSCONFDIR="/etc" MDASSEMBLE_AUTO=1
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) CXFLAGS="$(CFLAGS)" \
-               CWFLAGS= SYSCONFDIR="/etc" MDASSEMBLE_AUTO=1
-endef
+       install
+               make install BINDIR=/sbin DESTDIR=%{BUILDROOT}
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install BINDIR=/sbin DESTDIR=$(BUILDROOT)
+               mkdir -pv %{BUILDROOT}/var/run/mdadm
+               chmod 700 %{BUILDROOT}/var/run/mdadm
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/var/run/mdadm
-       chmod 700 $(BUILDROOT)/var/run/mdadm
-endef
+packages
+       package %{name}
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 0556b96e9d5359812c9d5f62580bfd6c80616d4c..dd024d324ebb33b3a5be80bcf8a3b01c352c868f 100644 (file)
@@ -1,59 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = memtest86+
+version    = 4.20
+release    = 1
 
-PKG_NAME       = memtest86+
-PKG_VER        = 4.20
-PKG_REL        = 0
+groups     = Base System/Base
+url        = http://www.memtest.org/
+license    = GPLv2
+summary    = Stand-alone memory tester for x86 and x86-64 computers.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Base
-PKG_URL        = http://www.memtest.org/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Stand-alone memory tester for x86 and x86-64 computers.
-
-define PKG_DESCRIPTION
-       Memtest86+ is a thorough stand-alone memory test for x86 and x86-64 \
-       architecture computers. BIOS based memory tests are only a quick \
-       check and often miss many of the failures that are detected by \
+description
+       Memtest86+ is a thorough stand-alone memory test for x86 and x86-64
+       architecture computers. BIOS based memory tests are only a quick
+       check and often miss many of the failures that are detected by
        Memtest86+.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       CFLAGS += -fno-builtin -ffreestanding
 
-CFLAGS        += -fno-builtin -ffreestanding 
+       build
+               make CC="gcc -fno-stack-protector -fno-PIE" \
+                       CFLAGS="%{CFLAGS}" memtest.bin %{PARALLELISMFLAGS}
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make CC="gcc -fno-stack-protector -fno-PIE" \
-               CFLAGS="$(CFLAGS)" memtest.bin $(PARALLELISMFLAGS)
-endef
+       install
+               mkdir -pv %{BUILDROOT}/boot
+               cp -vf memtest.bin %{BUILDROOT}/boot/memtest86+
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/boot
-       cd $(DIR_APP) && cp -vf memtest.bin $(BUILDROOT)/boot/memtest86+
+               mkdir -pv %{BUILDROOT}/etc/grub.d
+               cp -vf %{DIR_SOURCE}/%{name}.grub %{BUILDROOT}/etc/grub.d/20_%{name}
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/etc/grub.d
-       cp -vf $(DIR_SOURCE)/$(PKG_NAME).grub $(BUILDROOT)/etc/grub.d/20_$(PKG_NAME)
-endef
+packages
+       package %{name}
+end
index 1d32a8ccd6c7c2eb300db9ce6443561d0970922d..aa7c73ef9be4ef603ffbecee926af0814b626ed6 100644 (file)
@@ -1,70 +1,72 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = mesa
+version    = 7.8.2
+release    = 2
 
-include $(PKGROOT)/Include
+groups     = Development/Tools
+url        = http://www.mesa3d.org
+license    = MIT
+summary    = Mesa graphics libraries.
 
-PKG_NAME       = mesa
-PKG_VER        = 7.8.2
-PKG_REL        = 2
+description
+       Mesa libGL runtime libraries and DRI drivers.
+end
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.mesa3d.org
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Mesa graphics libraries.
+source_dl  =
+sources    = MesaLib-%{version}.tar.bz2
 
-PKG_BUILD_DEPS+= expat-devel pkg-config libX11-devel libXdamage-devel libXext-devel\
-       libXfixes-devel libXxf86vm-devel libdrm-devel libselinux-devel libxcb-devel\
-        xorg-x11-proto-devel 
+build
+       requires
+               expat-devel
+               pkg-config
+               libX11-devel
+               libXdamage-devel
+               libXext-devel
+               libXfixes-devel
+               libXxf86vm-devel
+               libdrm-devel
+               libselinux-devel
+               libxcb-devel
+               xorg-x11-proto-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-PKG_DEPS-$(PKG_NAME)-devel += libX11-devel
+       DIR_APP = %{DIR_SRC}/Mesa-%{version}
 
-define PKG_DESCRIPTION
-       Mesa libGL runtime libraries and DRI drivers.
-endef
+       CFLAGS += -Wl,-z,lazy
 
-PKG_TARBALL    = MesaLib-$(PKG_VER).tar.bz2
+       configure_options += \
+               --enable-pic \
+               --with-driver=dri \
+               --with-state-tracker=dri,glx \
+               --disable-glw \
+               --disable-glu \
+               --disable-glut \
+               --disable-gl-osmesa \
+               --disable-gallium \
+               --disable-gallium-intel \
+               --disable-gallium-svga \
+               --disable-gallium-radeon \
+               --disable-gallium-nouveau \
+               --disable-egl \
+               --without-demos
+end
 
-DIR_APP        = $(DIR_SRC)/Mesa-$(PKG_VER)
+quality-agent
+       permit_not_full_relro = yes
+end
 
-CFLAGS        += -Wl,-z,lazy
+packages
+       package %{name}
 
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
+       package %{name}-devel
+               template DEVEL
 
-CONFIGURE_OPTIONS += \
-       --enable-pic \
-       --with-driver=dri \
-       --with-state-tracker=dri,glx \
-       --disable-glw \
-       --disable-glu \
-       --disable-glut \
-       --disable-gl-osmesa \
-       --disable-gallium \
-       --disable-gallium-intel \
-       --disable-gallium-svga \
-       --disable-gallium-radeon \
-       --disable-gallium-nouveau \
-       --disable-egl \
-       --without-demos
+               requires
+                       libX11-devel
+               end
+       end
+end
index 175bf1779a9fe78827b0f6d86fc747e382a7a429..3ab7867460c0a9ad65568fe5586abae2e9b31be6 100644 (file)
@@ -1,50 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = minicom
-PKG_VER        = 2.5
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = https://alioth.debian.org/frs/?group_id=30018&release_id=1645#source-2-5-title-content
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Terminalclient
-
-PKG_BUILD_DEPS+= ncurses-devel
-
-define PKG_DESCRIPTION
-       Terminalclient
-endef
-
-define STAGE_PREPARE_CMDS
-       -mkdir -pv /var/lock
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-
-
+name       = minicom
+version    = 2.5
+release    = 1
+
+groups     = Applications/System
+url        = http://alioth.debian.org/projects/minicom/
+license    = GPLv2
+summary    = A text-based modem control and terminal emulation program.
+
+description
+       Minicom is a simple text-based modem control and terminal emulation
+       program somewhat similar to MSDOS Telix. Minicom includes a dialing
+       directory, full ANSI and VT100 emulation, an (external) scripting
+       language, and other features.
+end
+
+source_dl  =   http://alioth.debian.org/frs/download.php/3487/
+
+build
+       requires
+               ncurses-devel
+       end
+
+       prepare_cmds
+               mkdir -pv /var/lock
+       end
+end
+
+packages
+       package %{name}
+end
index 0c4c3078fef896636dad6bf01ac91d9d48d167f4..d395fcf4900fa040c94e5d6a7d43104764132880 100644 (file)
@@ -1,65 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = module-init-tools
+version    = 3.16
+release    = 1
 
-PKG_NAME       = module-init-tools
-PKG_VER        = 3.16
-PKG_REL        = 1
+groups     = System/Base
+url        = http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/
+license    = GPLv2+
+summary    = Kernel module management utilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://ftp.kernel.org/pub/linux/utils/kernel/module-init-tools/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Kernel module management utilities.
+description
+       The module-init-tools package includes various programs needed
+       for automatic loading and unloading of modules under 2.6 and
+       later kernels, as well as other module management programs.
+       Device drivers and filesystems are two examples of loaded and
+       unloaded modules.
+end
 
-PKG_BUILD_DEPS+= zlib-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       The module-init-tools package includes various programs needed \
-       for automatic loading and unloading of modules under 2.6 and \
-       later kernels, as well as other module management programs. \
-       Device drivers and filesystems are two examples of loaded and \
-       unloaded modules.
-endef
+build
+       requires
+               zlib-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       CFLAGS += -DCONFIG_NO_BACKWARDS_COMPAT=1
 
-CFLAGS        += -DCONFIG_NO_BACKWARDS_COMPAT=1
+       # Set docbooktoman=true, because this package is not available
+       # in IPFire and prevents us from errors
+       export DOCBOOKTOMAN=true
 
-# Set docbooktoman=true, because this package is not available
-# in IPFire and prevents us from errors
-export DOCBOOKTOMAN=true
+       configure_options += \
+               --bindir=/bin \
+               --sbindir=/sbin \
+               --mandir=/usr/share/man \
+               --enable-zlib-dynamic \
+               --disable-static-utils
 
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --sbindir=/sbin \
-       --mandir=/usr/share/man \
-       --enable-zlib-dynamic \
-       --disable-static-utils
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/modprobe.d
+               cp -av %{DIR_SOURCE}/modprobe.d/* %{BUILDROOT}/etc/modprobe.d/
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/modprobe.d
-       cp -av $(DIR_SOURCE)/modprobe.d/* $(BUILDROOT)/etc/modprobe.d/
-endef
+packages
+       package %{name}
+end
index b7074aefa04790a1095d2eba0ec54eed3833d5bb..da36d028b346deb8d04c8a87fe5462604a62b9ae 100644 (file)
@@ -1,62 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = mpfr
-PKG_VER        = 3.0.0
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.mpfr.org/
-PKG_LICENSE    = LGPLv2+ and GPLv2+ and GFDL
-PKG_SUMMARY    = A C library for multiple-precision floating-point computations.
-
-PKG_BUILD_DEPS+= gmp-devel
-
-define PKG_DESCRIPTION
-       The MPFR library is a C library for multiple-precision floating-point \
-       computations with correct rounding. The MPFR is efficient and \
-       also has a well-defined semantics. It copies the good ideas from the \
-       ANSI/IEEE-754 standard for double-precision floating-point arithmetic \
-       (53-bit mantissa). MPFR is based on the GMP multiple-precision \
+name       = mpfr
+version    = 3.0.0
+release    = 1
+
+groups     = System/Libraries
+url        = http://www.mpfr.org/
+license    = LGPLv2+ and GPLv2+ and GFDL
+summary    = A C library for multiple-precision floating-point computations.
+
+description
+       The MPFR library is a C library for multiple-precision floating-point
+       computations with correct rounding. The MPFR is efficient and
+       also has a well-defined semantics. It copies the good ideas from the
+       ANSI/IEEE-754 standard for double-precision floating-point arithmetic
+       (53-bit mantissa). MPFR is based on the GMP multiple-precision
        library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-ifeq "$(MACHINE)" "x86_64"
-       ABI = 64
-else
-       ABI = 32
-endif
-
-CONFIGURE_OPTIONS += --enable-thread-safe
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gmp-devel
+       end
+
+       configure_options += \
+               --enable-thread-safe
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index aa2bbfb9a22dfdc42ad0c1fb3b36340d220a2b7e..ec7b49954c976316d4964541ec68c7811e3740ac 100644 (file)
@@ -1,52 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = multipath-tools
-PKG_VER        = 0.4.9
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://christophe.varoqui.free.fr/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Tools to manage multipath devices using device-mapper.
+name       = multipath-tools
+version    = 0.4.9
+release    = 1
 
-PKG_BUILD_DEPS+= gzip libaio-devel libdevmapper-devel ncurses-devel readline-devel
+groups     = System/Base
+url        = http://christophe.varoqui.free.fr/
+license    = GPL+
+summary    = Tools to manage multipath devices using device-mapper.
 
-define PKG_DESCRIPTION
-       This package provides tools to manage multipath devices by \
+description
+       This package provides tools to manage multipath devices by
        instructing the device-mapper multipath kernel module what to do.
-endef
-
-PKG_TARBALL    = $(PKG_NAME)-091027.tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-DIR_APP = $(DIR_SRC)/$(PKG_NAME)
-
-define STAGE_INSTALL_CMDS
-       rm -rf $(BUILDROOT)/etc/rc.d
-endef
+end
+
+source_dl  =
+sources    = %{name}-091027.tar.gz
+
+build
+       requires
+               gzip
+               libaio-devel
+               libdevmapper-devel
+               ncurses-devel
+               readline-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/%{name}
+
+       install_cmds
+               rm -rf %{BUILDROOT}/etc/rc.d
+       end
+end
+
+packages
+       package %{name}
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b33d66c85c71834645fd77e99b51bdcec6d1bd3b..7d38f23dcb14f26cc647e0fa8830a7b0a42a29b6 100644 (file)
@@ -1,55 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nano
-PKG_VER        = 2.3.0
-PKG_REL        = 1
+name       = nano
+version    = 2.3.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Application/Editors
-PKG_URL        = http://www.nano-editor.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A small text editor.
+groups     = Application/Editors
+url        = http://www.nano-editor.org/
+license    = GPLv2+
+summary    = A small text editor.
 
-PKG_BUILD_DEPS+= groff ncurses-devel
-
-define PKG_DESCRIPTION
+description
        GNU nano is a small and friendly text editor.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --sysconfdir=/etc/nano \
-       --enable-color \
-       --enable-multibuffer \
-       --enable-nanorc
-
-define STAGE_INSTALL_CMDS
-       cd $(DIR_APP) && install -v -m644 -D doc/nanorc.sample \
-               $(BUILDROOT)/etc/nano/nanorc.sample
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               groff
+               ncurses-devel
+       end
+
+       configure_options += \
+               --bindir=/bin \
+               --sysconfdir=/etc/nano \
+               --enable-color \
+               --enable-multibuffer \
+               --enable-nanorc
+
+       install_cmds
+               install -v -m644 -D doc/nanorc.sample \
+                       %{BUILDROOT}/etc/nano/nanorc.sample
+       end
+end
+
+packages
+       package %{name}
+end
index 4e70aa260766091bf04eea8ffad249df6b364590..8fc7336d1cc14dde6081d9c223c1c44ba9997484 100644 (file)
@@ -1,49 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = nasm
+version    = 2.08.01
+release    = 1
 
-PKG_NAME       = nasm
-PKG_VER        = 2.08.01
-PKG_REL        = 0
+groups     = Development/Languages
+url        = http://nasm.sourceforge.net/
+license    = LGPLv2+
+summary    = A portable x86 assembler which uses Intel-like syntax.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://nasm.sourceforge.net/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = A portable x86 assembler which uses Intel-like syntax.
-
-define PKG_DESCRIPTION
-       NASM is the Netwide Assembler, a free portable assembler for the \
-       Intel 80x86 microprocessor series, using primarily the traditional \
+description
+       NASM is the Netwide Assembler, a free portable assembler for the
+       Intel 80x86 microprocessor series, using primarily the traditional
        Intel instruction mnemonics and syntax.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       CFLAGS += -fno-stack-protector
 
-CFLAGS        += -fno-stack-protector
+       install
+               make install INSTALLROOT=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install INSTALLROOT=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index 6fd0c33bca44fcab9df5e61097ba5c2f8bf44821..063f472b26fa8d93498171502fb793a774c2bc28 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = ncurses
+version    = 5.9
+release    = 2
 
-PKG_NAME       = ncurses
-PKG_VER        = 5.9
-PKG_REL        = 2
+groups     = System/Base
+url        = http://invisible-island.net/ncurses/ncurses.html
+license    = MIT
+summary    = Ncurses support utilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://invisible-island.net/ncurses/ncurses.html
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Ncurses support utilities.
-
-PKG_BUILD_DEPS+= gcc-c++
-
-define PKG_DESCRIPTION
-       The curses library routines are a terminal-independent method of \
-       updating character screens with reasonable optimization. The ncurses \
-       (new curses) library is a freely distributable replacement for the \
+description
+       The curses library routines are a terminal-independent method of
+       updating character screens with reasonable optimization. The ncurses
+       (new curses) library is a freely distributable replacement for the
        discontinued 4.4 BSD classic curses library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --with-shared \
-       --without-debug \
-       --enable-widec \
-       --disable-static \
-       --enable-symlinks \
-       --disable-root-environ
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/lib
-       mv -v $(BUILDROOT)/usr/lib/libncursesw.so.5* $(BUILDROOT)/lib
-       ln -sfv ../../lib/libncursesw.so.5 $(BUILDROOT)/usr/lib/libncursesw.so
-       for lib in curses ncurses form panel menu; do \
-               rm -vf $(BUILDROOT)/usr/lib/lib$${lib}.so ; \
-               echo "INPUT(-l$${lib}w)" >$(BUILDROOT)/usr/lib/lib$${lib}.so ; \
-       done
-
-       rm -vf $(BUILDROOT)/usr/lib/libcursesw.so
-       echo "INPUT(-lncursesw)" >$(BUILDROOT)/usr/lib/libcursesw.so
-       ln -sfv libncurses.so $(BUILDROOT)/usr/lib/libcurses.so
-endef
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel $(PKG_NAME_REAL)-libs
-
-
-# ncurses-term
-PKG_PACKAGES  += $(PKG_NAME_REAL)-term
-
-PKG_SUMMARY-$(PKG_NAME)-term = Terminal descriptions for ncurses.
-
-define PKG_DESCRIPTION-$(PKG_NAME)-term
-       This package contains additional terminal descriptions not found in
-       the ncurses-base package.
-endef
-
-PKG_FILES-$(PKG_NAME)-term = /usr/share/terminfo
-
-
-# ncurses-base
-PKG_PACKAGES  += $(PKG_NAME)-base
-
-# The -libs packages does depend on this.
-PKG_DEPS-$(PKG_NAME)-libs += $(PKG_NAME)-base
-
-PKG_SUMMARY-$(PKG_NAME)-base = Terminal descriptions.
-
-define PKG_DESCRIPTION-$(PKG_NAME)-base
-       This package contains descriptions of common terminals. Other terminal
-       descriptions are included in the ncurses-term package.
-endef
-
-define PKG_FILES-$(PKG_NAME)-base
-       /usr/share/terminfo/*/Eterm*
-       /usr/share/terminfo/*/aterm
-       /usr/share/terminfo/*/bterm
-       /usr/share/terminfo/*/cons25
-       /usr/share/terminfo/*/cygwin
-       /usr/share/terminfo/*/eterm*
-       /usr/share/terminfo/*/gnome
-       /usr/share/terminfo/*/gnome-256color
-       /usr/share/terminfo/*/hurd
-       /usr/share/terminfo/*/jfbterm
-       /usr/share/terminfo/*/konsole
-       /usr/share/terminfo/*/konsole-256color
-       /usr/share/terminfo/*/mach*
-       /usr/share/terminfo/*/mlterm
-       /usr/share/terminfo/*/mrxvt
-       /usr/share/terminfo/*/nsterm
-       /usr/share/terminfo/*/putty*
-       /usr/share/terminfo/*/pcansi
-       /usr/share/terminfo/*/rxvt
-       /usr/share/terminfo/*/rxvt-*
-       /usr/share/terminfo/*/screen
-       /usr/share/terminfo/*/screen-*color
-       /usr/share/terminfo/*/screen.*
-       /usr/share/terminfo/*/sun
-       /usr/share/terminfo/*/teraterm
-       /usr/share/terminfo/*/teraterm2.3
-       /usr/share/terminfo/*/vte
-       /usr/share/terminfo/*/vte-256color
-       /usr/share/terminfo/*/vwmterm
-       /usr/share/terminfo/*/wsvt25*
-       /usr/share/terminfo/*/xfce
-       /usr/share/terminfo/*/xterm xterm-*
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man \
+               --with-shared \
+               --without-debug \
+               --enable-widec \
+               --disable-static \
+               --enable-symlinks \
+               --disable-root-environ
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/lib
+               mv -v %{BUILDROOT}/usr/lib/libncursesw.so.5* %{BUILDROOT}/lib
+               ln -sfv ../../lib/libncursesw.so.5 %{BUILDROOT}/usr/lib/libncursesw.so
+               for lib in curses ncurses form panel menu; do
+                       rm -vf %{BUILDROOT}/usr/lib/lib${lib}.so
+                       echo "INPUT(-l${lib}w)" >%{BUILDROOT}/usr/lib/lib${lib}.so
+               done
+
+               rm -vf %{BUILDROOT}/usr/lib/libcursesw.so
+               echo "INPUT(-lncursesw)" >%{BUILDROOT}/usr/lib/libcursesw.so
+               ln -sfv libncurses.so %{BUILDROOT}/usr/lib/libcurses.so
+       end
+end
+
+packages
+       package %{name}
+       
+       package %{name}-libs
+               template LIBS
+       
+               requires
+                       %{name}-base
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-term
+               summary = Terminal descriptions for ncurses.
+               description
+                       This package contains additional terminal descriptions not found in
+                       the ncurses-base package.
+               end
+
+               files
+                       /usr/share/terminfo
+               end
+       end
+
+       package %{name}-base
+               summary = Terminal descriptions.
+               description
+                       This package contains descriptions of common terminals. Other terminal
+                       descriptions are included in the ncurses-term package.
+               end
+
+               files
+                       /usr/share/terminfo/*/Eterm*
+                       /usr/share/terminfo/*/aterm
+                       /usr/share/terminfo/*/bterm
+                       /usr/share/terminfo/*/cons25
+                       /usr/share/terminfo/*/cygwin
+                       /usr/share/terminfo/*/eterm*
+                       /usr/share/terminfo/*/gnome
+                       /usr/share/terminfo/*/gnome-256color
+                       /usr/share/terminfo/*/hurd
+                       /usr/share/terminfo/*/jfbterm
+                       /usr/share/terminfo/*/konsole
+                       /usr/share/terminfo/*/konsole-256color
+                       /usr/share/terminfo/*/mach*
+                       /usr/share/terminfo/*/mlterm
+                       /usr/share/terminfo/*/mrxvt
+                       /usr/share/terminfo/*/nsterm
+                       /usr/share/terminfo/*/putty*
+                       /usr/share/terminfo/*/pcansi
+                       /usr/share/terminfo/*/rxvt
+                       /usr/share/terminfo/*/rxvt-*
+                       /usr/share/terminfo/*/screen
+                       /usr/share/terminfo/*/screen-*color
+                       /usr/share/terminfo/*/screen.*
+                       /usr/share/terminfo/*/sun
+                       /usr/share/terminfo/*/teraterm
+                       /usr/share/terminfo/*/teraterm2.3
+                       /usr/share/terminfo/*/vte
+                       /usr/share/terminfo/*/vte-256color
+                       /usr/share/terminfo/*/vwmterm
+                       /usr/share/terminfo/*/wsvt25*
+                       /usr/share/terminfo/*/xfce
+                       /usr/share/terminfo/*/xterm xterm-*
+               end
+       end
+end
index 6acdb9f6a71fb9b53659fd041179c8d63ecb362f..18771d3cc73de65cbb18e57182f9f9ee555d5b93 100644 (file)
@@ -1,66 +1,59 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = net-snmp
-PKG_VER        = 5.7
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://net-snmp.sourceforge.net
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Simple Network Management Protocol Daemon.
+name       = net-snmp
+version    = 5.7
+release    = 1
 
-PKG_BUILD_DEPS+= libselinux-devel perl
+groups     = Networking/Daemons
+url        = http://net-snmp.sourceforge.net
+license    = BSD
+summary    = Simple Network Management Protocol Daemon.
 
-define PKG_DESCRIPTION
-       Simple Network Management Protocol (SNMP) is a widely used protocol \
-       for monitoring the health and welfare of network equipment (eg. routers), \
+description
+       Simple Network Management Protocol (SNMP) is a widely used protocol
+       for monitoring the health and welfare of network equipment (eg. routers),
        computer equipment and even devices like UPSs.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
-
-PARALLELISMFLAGS = # No parallel build
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libdir=/usr/lib \
-       --mandir=/usr/share/man \
-       --with-default-snmp-version=2 \
-       --with-sys-contact=root@ \
-       --with-sys-location=localhost \
-       --with-logfile=/var/log/snmpd.log \
-       --with-persistent-directory=/var/net-snmp \
-       --without-perl-modules \
-       --disable-embedded-perl
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc
-       install -v -m644 $(DIR_APP)/python/netsnmp/tests/snmpd.conf $(BUILDROOT)/etc/snmpd.conf
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libselinux-devel
+               perl
+       end
+
+       PARALLELISMFLAGS = # No parallel build
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libdir=/usr/lib \
+               --mandir=/usr/share/man \
+               --with-default-snmp-version=2 \
+               --with-sys-contact=root@ \
+               --with-sys-location=localhost \
+               --with-logfile=/var/log/snmpd.log \
+               --with-persistent-directory=/var/net-snmp \
+               --without-perl-modules \
+               --disable-embedded-perl
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc
+               install -v -m644 %{DIR_APP}/python/netsnmp/tests/snmpd.conf %{BUILDROOT}/etc/snmpd.conf
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-libs
+               template LIBS
+       end
+
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 71dea323025cc916120eabcad8b4817b85f2cde8..46bf2f0f29e7f6114dea72bd94eace694caff302 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = net-tools
-PKG_VER        = 1.60
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Sytem/Base
-PKG_URL        = http://net-tools.berlios.de/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Basic networking tools.
+name       = net-tools
+version    = 1.60
+release    = 1
 
-PKG_BUILD_DEPS+= gettext libselinux-devel
+groups     = Base Sytem/Base
+url        = http://net-tools.berlios.de/
+license    = GPL+
+summary    = Basic networking tools.
 
-define PKG_DESCRIPTION
-       The net-tools package contains basic networking tools, \
+description
+       The net-tools package contains basic networking tools,
        including ifconfig, netstat, route, and others.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
 # Manual list patches because they need to be applied in speical order
-PKG_PATCHES    = net-tools-1.57-bug22040.patch
-PKG_PATCHES   += $(THISAPP)-miiioctl.patch
-PKG_PATCHES   += $(THISAPP)-virtualname.patch
-PKG_PATCHES   += $(THISAPP)-cycle.patch
-PKG_PATCHES   += $(THISAPP)-nameif.patch
-PKG_PATCHES   += $(THISAPP)-ipx.patch
-PKG_PATCHES   += $(THISAPP)-inet6-lookup.patch
-PKG_PATCHES   += $(THISAPP)-man.patch
-PKG_PATCHES   += $(THISAPP)-gcc33.patch
-PKG_PATCHES   += $(THISAPP)-trailingblank.patch
-PKG_PATCHES   += $(THISAPP)-interface.patch
-PKG_PATCHES   += $(THISAPP)-gcc34.patch
-PKG_PATCHES   += $(THISAPP)-overflow.patch
-PKG_PATCHES   += $(THISAPP)-siunits.patch
-PKG_PATCHES   += $(THISAPP)-trunc.patch
-PKG_PATCHES   += $(THISAPP)-return.patch
-PKG_PATCHES   += $(THISAPP)-parse.patch
-PKG_PATCHES   += $(THISAPP)-netmask.patch
-PKG_PATCHES   += $(THISAPP)-ulong.patch
-PKG_PATCHES   += $(THISAPP)-bcast.patch
-PKG_PATCHES   += $(THISAPP)-mii-tool-obsolete.patch
-PKG_PATCHES   += $(THISAPP)-netstat_ulong.patch
-PKG_PATCHES   += $(THISAPP)-note.patch
-PKG_PATCHES   += $(THISAPP)-num-ports.patch
-PKG_PATCHES   += $(THISAPP)-duplicate-tcp.patch
-PKG_PATCHES   += $(THISAPP)-statalias.patch
-PKG_PATCHES   += $(THISAPP)-isofix.patch
-PKG_PATCHES   += $(THISAPP)-ifconfig_ib.patch
-PKG_PATCHES   += $(THISAPP)-de.patch
-PKG_PATCHES   += $(THISAPP)-pie.patch
-PKG_PATCHES   += $(THISAPP)-ifaceopt.patch
-PKG_PATCHES   += $(THISAPP)-trim_iface.patch
-PKG_PATCHES   += $(THISAPP)-stdo.patch
-PKG_PATCHES   += $(THISAPP)-statistics.patch
-PKG_PATCHES   += $(THISAPP)-ifconfig.patch
-PKG_PATCHES   += $(THISAPP)-arp_overflow.patch
-PKG_PATCHES   += $(THISAPP)-hostname_man.patch
-PKG_PATCHES   += $(THISAPP)-interface_stack.patch
-PKG_PATCHES   += $(THISAPP)-selinux.patch
-PKG_PATCHES   += $(THISAPP)-netstat_stop_trim.patch
-PKG_PATCHES   += $(THISAPP)-netstat_inode.patch
-PKG_PATCHES   += $(THISAPP)-fgets.patch
-PKG_PATCHES   += $(THISAPP)-ifconfig_man.patch
-PKG_PATCHES   += $(THISAPP)-x25-proc.patch
-PKG_PATCHES   += $(THISAPP)-sctp.patch
-PKG_PATCHES   += $(THISAPP)-arp_man.patch
-PKG_PATCHES   += $(THISAPP)-ifconfig-long-iface-crasher.patch
-PKG_PATCHES   += $(THISAPP)-netdevice.patch
-PKG_PATCHES   += $(THISAPP)-skip.patch
-PKG_PATCHES   += $(THISAPP)-netstat-I-fix.patch
-PKG_PATCHES   += $(THISAPP)-nameif_strncpy.patch
-PKG_PATCHES   += $(THISAPP)-arp-unaligned-access.patch
-PKG_PATCHES   += $(THISAPP)-sctp-quiet.patch
-PKG_PATCHES   += $(THISAPP)-remove_node.patch
-PKG_PATCHES   += $(THISAPP)-netstat-interfaces-crash.patch
-PKG_PATCHES   += $(THISAPP)-ec_hw_null.patch
-PKG_PATCHES   += $(THISAPP)-statistics_buffer.patch
-PKG_PATCHES   += $(THISAPP)-sctp-addrs.patch
-PKG_PATCHES   += $(THISAPP)-i-option.patch
-PKG_PATCHES   += $(THISAPP)-a-option.patch
-PKG_PATCHES   += $(THISAPP)-clear-flag.patch
-PKG_PATCHES   += $(THISAPP)-metric-tunnel-man.patch
-PKG_PATCHES   += $(THISAPP)-netstat-probe.patch
-PKG_PATCHES   += $(THISAPP)-scanf-format.patch
-PKG_PATCHES   += $(THISAPP)-avoid-name-resolution.patch
-PKG_PATCHES   += $(THISAPP)-continous-flush-stdout.patch
-PKG_PATCHES   += $(THISAPP)-debug-fix.patch
-PKG_PATCHES   += $(THISAPP)-ib-warning.patch
-PKG_PATCHES   += $(THISAPP)-man-obsolete.patch
-PKG_PATCHES   += $(THISAPP)-man-RHEL-bugs.patch
-PKG_PATCHES   += $(THISAPP)-masqinfo-raw-ip.patch
-PKG_PATCHES   += $(THISAPP)-makefile-berlios.patch
-PKG_PATCHES   += $(THISAPP)-slattach-fchown.patch
-PKG_PATCHES   += $(THISAPP)-hostname-short.patch
-PKG_PATCHES   += $(THISAPP)-mii-refactor.patch
-PKG_PATCHES   += $(THISAPP)-IA64.patch
-PKG_PATCHES   += $(THISAPP)-large-indexes.patch
-PKG_PATCHES   += $(THISAPP)-statistics-doubleword.patch
-PKG_PATCHES   += $(THISAPP)-mii-gigabit.patch
-PKG_PATCHES   += $(THISAPP)-netstat-leak.patch
-
-define STAGE_PREPARE_CMDS
-       # Copy config files
-       cp  $(DIR_SOURCE)/config.h $(DIR_APP)
-       cp  $(DIR_SOURCE)/config.make $(DIR_APP)
-
-       # Copy additional man pages
-       cp $(DIR_SOURCE)/*.8 $(DIR_APP)/man/en_US
-
-       # Copy source for ether-wake and mii-diag
-       cp $(DIR_SOURCE)/ether-wake.c $(DIR_APP)
-       cp $(DIR_SOURCE)/mii-diag.c $(DIR_APP)
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARELLISMFLAGS) CC=gcc
-
-       # Compile ether-wake
-       cd $(DIR_APP) && gcc $(CFLAGS) -o ether-wake ether-wake.c
-
-       # Compile mii-diag
-       cd $(DIR_APP) && gcc $(CFLAGS) -o mii-diag mii-diag.c
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && mv man/de_DE man/de
-       cd $(DIR_APP) && mv man/fr_FR man/fr
-       cd $(DIR_APP) && mv man/pt_BR man/pt
-
-       cd $(DIR_APP) && make BASEDIR=$(BUILDROOT) mandir=/usr/share/man install
-
-       # Install ether-wake and mii-diag
-       install -m 755 $(DIR_APP)/ether-wake $(BUILDROOT)/sbin
-       install -m 755 $(DIR_APP)/mii-diag $(BUILDROOT)/sbin
-
-       # Remove tools we do not want
-       rm -rvf \
-               $(BUILDROOT)/sbin/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}* \
-               $(BUILDROOT)/usr/share/man/{,*}/man*/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}*
-endef
+patches    = net-tools-1.57-bug22040.patch
+patches   += %{thisapp}-miiioctl.patch
+patches   += %{thisapp}-virtualname.patch
+patches   += %{thisapp}-cycle.patch
+patches   += %{thisapp}-nameif.patch
+patches   += %{thisapp}-ipx.patch
+patches   += %{thisapp}-inet6-lookup.patch
+patches   += %{thisapp}-man.patch
+patches   += %{thisapp}-gcc33.patch
+patches   += %{thisapp}-trailingblank.patch
+patches   += %{thisapp}-interface.patch
+patches   += %{thisapp}-gcc34.patch
+patches   += %{thisapp}-overflow.patch
+patches   += %{thisapp}-siunits.patch
+patches   += %{thisapp}-trunc.patch
+patches   += %{thisapp}-return.patch
+patches   += %{thisapp}-parse.patch
+patches   += %{thisapp}-netmask.patch
+patches   += %{thisapp}-ulong.patch
+patches   += %{thisapp}-bcast.patch
+patches   += %{thisapp}-mii-tool-obsolete.patch
+patches   += %{thisapp}-netstat_ulong.patch
+patches   += %{thisapp}-note.patch
+patches   += %{thisapp}-num-ports.patch
+patches   += %{thisapp}-duplicate-tcp.patch
+patches   += %{thisapp}-statalias.patch
+patches   += %{thisapp}-isofix.patch
+patches   += %{thisapp}-ifconfig_ib.patch
+patches   += %{thisapp}-de.patch
+patches   += %{thisapp}-pie.patch
+patches   += %{thisapp}-ifaceopt.patch
+patches   += %{thisapp}-trim_iface.patch
+patches   += %{thisapp}-stdo.patch
+patches   += %{thisapp}-statistics.patch
+patches   += %{thisapp}-ifconfig.patch
+patches   += %{thisapp}-arp_overflow.patch
+patches   += %{thisapp}-hostname_man.patch
+patches   += %{thisapp}-interface_stack.patch
+patches   += %{thisapp}-selinux.patch
+patches   += %{thisapp}-netstat_stop_trim.patch
+patches   += %{thisapp}-netstat_inode.patch
+patches   += %{thisapp}-fgets.patch
+patches   += %{thisapp}-ifconfig_man.patch
+patches   += %{thisapp}-x25-proc.patch
+patches   += %{thisapp}-sctp.patch
+patches   += %{thisapp}-arp_man.patch
+patches   += %{thisapp}-ifconfig-long-iface-crasher.patch
+patches   += %{thisapp}-netdevice.patch
+patches   += %{thisapp}-skip.patch
+patches   += %{thisapp}-netstat-I-fix.patch
+patches   += %{thisapp}-nameif_strncpy.patch
+patches   += %{thisapp}-arp-unaligned-access.patch
+patches   += %{thisapp}-sctp-quiet.patch
+patches   += %{thisapp}-remove_node.patch
+patches   += %{thisapp}-netstat-interfaces-crash.patch
+patches   += %{thisapp}-ec_hw_null.patch
+patches   += %{thisapp}-statistics_buffer.patch
+patches   += %{thisapp}-sctp-addrs.patch
+patches   += %{thisapp}-i-option.patch
+patches   += %{thisapp}-a-option.patch
+patches   += %{thisapp}-clear-flag.patch
+patches   += %{thisapp}-metric-tunnel-man.patch
+patches   += %{thisapp}-netstat-probe.patch
+patches   += %{thisapp}-scanf-format.patch
+patches   += %{thisapp}-avoid-name-resolution.patch
+patches   += %{thisapp}-continous-flush-stdout.patch
+patches   += %{thisapp}-debug-fix.patch
+patches   += %{thisapp}-ib-warning.patch
+patches   += %{thisapp}-man-obsolete.patch
+patches   += %{thisapp}-man-RHEL-bugs.patch
+patches   += %{thisapp}-masqinfo-raw-ip.patch
+patches   += %{thisapp}-makefile-berlios.patch
+patches   += %{thisapp}-slattach-fchown.patch
+patches   += %{thisapp}-hostname-short.patch
+patches   += %{thisapp}-mii-refactor.patch
+patches   += %{thisapp}-IA64.patch
+patches   += %{thisapp}-large-indexes.patch
+patches   += %{thisapp}-statistics-doubleword.patch
+patches   += %{thisapp}-mii-gigabit.patch
+patches   += %{thisapp}-netstat-leak.patch
+
+build
+       requires
+               gettext
+               libselinux-devel
+       end
+
+       prepare_cmds
+               # Copy config files
+               cp  %{DIR_SOURCE}/config.h %{DIR_APP}
+               cp  %{DIR_SOURCE}/config.make %{DIR_APP}
+
+               # Copy additional man pages
+               cp %{DIR_SOURCE}/*.8 %{DIR_APP}/man/en_US
+
+               # Copy source for ether-wake and mii-diag
+               cp %{DIR_SOURCE}/ether-wake.c %{DIR_APP}
+               cp %{DIR_SOURCE}/mii-diag.c %{DIR_APP}
+       end
+
+       make_build_targets += \
+                CC=gcc
+
+       build_cmds
+               # Compile ether-wake
+               gcc %{CFLAGS} -o ether-wake ether-wake.c
+
+               # Compile mii-diag
+               gcc %{CFLAGS} -o mii-diag mii-diag.c
+       end
+
+       install
+               mv man/de_DE man/de
+               mv man/fr_FR man/fr
+               mv man/pt_BR man/pt
+
+               make BASEDIR=%{BUILDROOT} mandir=/usr/share/man install
+
+               # Install ether-wake and mii-diag
+               install -m 755 %{DIR_APP}/ether-wake %{BUILDROOT}/sbin
+               install -m 755 %{DIR_APP}/mii-diag %{BUILDROOT}/sbin
+
+               # Remove tools we do not want
+               rm -rvf \
+                       %{BUILDROOT}/sbin/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}* \
+                       %{BUILDROOT}/usr/share/man/{,*}/man*/{arp,ifconfig,ip,nameif,plipconfig,rarp,route,slattach}*
+       end
+end
+
+packages
+       package %{name}
+end
index d57854d5bab0c42502ef0c2f955ec6c92da3fd56..302cf70a0cd05b68fce4849dc39871929d921c42 100644 (file)
@@ -1,59 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = netplug
+version    = 1.2.9.1
+release    = 1
 
-PKG_NAME       = netplug
-PKG_VER        = 1.2.9.1
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://www.red-bean.com/~bos/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A daemon that manages network interfaces in response to \
+groups     = Networking/Tools
+url        = http://www.red-bean.com/~bos/
+license    = GPLv2
+summary    = A daemon that manages network interfaces in response to \
        network cables being plugged in and out.
 
-define PKG_DESCRIPTION
-       Netplug is a Linux daemon that manages network interfaces in response \
-       to network cables being plugged in and out. If you're familiar with \
-       Windows XP, which just does the Right Thing when you plug an ethernet \
+description
+       Netplug is a Linux daemon that manages network interfaces in response
+       to network cables being plugged in and out. If you're familiar with
+       Windows XP, which just does the Right Thing when you plug an ethernet
        cable into a laptop, netplug will need no further explanation.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       prepare_cmds
+               # Remove debugging flags from CFLAGS.
+               sed -i Makefile -e "s/-ggdb3 -O3//g"
+       end
 
-define STAGE_PREPARE_CMDS
-       # Remove debugging flags from CFLAGS.
-       cd $(DIR_APP) && sed -i Makefile \
-               -e "s/-ggdb3 -O3//g"
-endef
+       build
+               make CC="gcc"
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make CC="gcc"
-endef
+       install_cmds
+               rm -rfv %{BUILDROOT}/etc/rc.d
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       rm -rfv $(BUILDROOT)/etc/rc.d
-endef
+packages
+       package %{name}
+end
index f3b03dee86a107edbe8b8e3c72a5c84229817c23..6ae463158577f00d59d17362ed773fb3540e6210 100644 (file)
@@ -1,56 +1,47 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nettle
-PKG_VER        = 2.2
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.lysator.liu.se/~nisse/nettle/
-PKG_LICENSE    = LGPL
-PKG_SUMMARY    = A low-level cryptographic library. 
+name       = nettle
+version    = 2.2
+release    = 1
 
-PKG_BUILD_DEPS+= gmp-devel m4 openssl-devel
-PKG_DEPS-nettle-devel += gmp-devel
+groups     = System/Libraries
+url        = http://www.lysator.liu.se/~nisse/nettle/
+license    = LGPL
+summary    = A low-level cryptographic library.
 
-define PKG_DESCRIPTION
+description
        Nettle is a cryptographic library that is designed to fit easily in
        more or less any context: In crypto toolkits for object-oriented
        languages (C++, Python, Pike, ...), in applications like LSH or GNUPG,
        or even in kernel space.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --enable-shared
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               gmp-devel
+               m4
+               openssl-devel
+       end
+
+       configure_options += \
+               --enable-shared
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               requires
+                       gmp-devel
+               end
+       end
+end
index d818cc4235846438f80c8f295ad65670a9d3c6f4..0207ff4808b3d2310af3b6d9808793201c70a0b9 100644 (file)
@@ -1,71 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = network
-PKG_EPOCH      = 1
-PKG_VER        = 001
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = network
+epoch      = 1
+version    = 001
+release    = 1
+arch       = noarch
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Base Networking/Tools
-PKG_URL        = http://www.ipfire.org/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The IPFire Networking Scripts.
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Base Networking/Tools
+url        = http://www.ipfire.org/
+license    = GPLv3+
+summary    = The IPFire Networking Scripts.
 
 # XXX maybe we can split this package into smaller ones like -wireless,
 # -dialup etc.
 
-PKG_BUILD_DEPS = $(PKG_DEPS)
-PKG_DEPS      += \
-       aiccu \
-       bash>=4.0 \
-       bridge-utils \
-       dhcp \
-       ebtables \
-       hostapd \
-       iproute2 \
-       ppp \
-       radvd \
-       rstp \
-       sqlite \
-       systemd-units \
-       tunctl \
-       vlan \
-       wpa_supplicant \
-       /bin/ipcalc \
-       /usr/bin/logger
-
-define PKG_DESCRIPTION
+description
        The scripts that are contained in this package are the heart of the
        IPFire networking. They control the configuration of the network
        zones, physical and virtual devices, handle hotplug events and
        everything.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-STAGE_BUILD = # Do nothing
+end
+
+source_dl  =
+
+build
+       build = # Do nothing
+end
+
+packages
+       package %{name}
+               requires
+                       aiccu
+                       bash>=4.0
+                       bridge-utils
+                       dhcp
+                       ebtables
+                       hostapd
+                       iproute2
+                       ppp
+                       radvd
+                       rstp
+                       sqlite
+                       systemd-units
+                       tunctl
+                       vlan
+                       wpa_supplicant
+                       /bin/ipcalc
+                       /usr/bin/logger
+               end
+       end
+end
index 65d41d0c6cefaab92dc18d77a00022944b3e3630..8688ed3fecf2f2ea0987cf7f06f3021b4e195144 100644 (file)
@@ -1,68 +1,64 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = newt
+version    = 0.52.10
+release    = 1
 
-include $(PKGROOT)/Include
+groups     = System/Libraries
+url        = https://fedorahosted.org/releases/n/e/newt/
+license    = LGPLv2
+summary    = A library for text mode user interfaces.
 
-PKG_NAME       = newt
-PKG_VER        = 0.52.10
-PKG_REL        = 1
+description
+       Newt is a programming library for color text mode, widget based user
+       interfaces.  Newt can be used to add stacked windows, entry widgets,
+       checkboxes, radio buttons, labels, plain text fields, scrollbars,
+       etc., to text mode user interfaces.  This package also contains the
+       shared library needed by programs built with newt, as well as a
+       /usr/bin/dialog replacement called whiptail.  Newt is based on the
+       slang library.
+end
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = https://fedorahosted.org/releases/n/e/newt/
-PKG_LICENSE    = LGPLv2
-PKG_SUMMARY    = A library for text mode user interfaces.
+source_dl  =
 
-PKG_PACKAGES  += newt-devel newt-python
-PKG_BUILD_DEPS+= popt-devel python-devel slang-devel
+build
+       requires
+               popt-devel
+               python-devel
+               slang-devel
+       end
 
-PKG_SUMMARY-newt-python     = Python bindings for newt.
-PKG_DESCRIPTION-newt-python = $(PKG_SUMMARY-newt-python)
-PKG_PROVIDES-newt-python   += python-newt python-snack
-PKG_FILES-newt-python       = /usr/lib/python*/site-packages/*snack*
+       configure_options += \
+               --without-gpm-support \
+               --without-tcl
 
-define PKG_DESCRIPTION
-       Newt is a programming library for color text mode, widget based user \
-       interfaces.  Newt can be used to add stacked windows, entry widgets, \
-       checkboxes, radio buttons, labels, plain text fields, scrollbars, \
-       etc., to text mode user interfaces.  This package also contains the \
-       shared library needed by programs built with newt, as well as a \
-       /usr/bin/dialog replacement called whiptail.  Newt is based on the \
-       slang library.
-endef
+       prepare_cmds
+               # make install searches for /usr/bin/install
+               sed -e "s/^INSTALL=.*/INSTALL = install -c/" -i po/Makefile
+       end
+
+       install
+               make install instroot=%{BUILDROOT}
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
 
-CONFIGURE_OPTIONS += \
-       --without-gpm-support \
-       --without-tcl
+       package %{name}-python
+               summary = Python bindings for newt.
+               description = %{summary}
 
-define STAGE_PREPARE_CMDS
-       # make install searches for /usr/bin/install
-       cd $(DIR_APP) && sed -e "s/^INSTALL=.*/INSTALL = install -c/" -i po/Makefile
-endef
+               provides
+                       python-newt
+                       python-snack
+               end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install instroot=$(BUILDROOT)
-endef
+               files
+                       /usr/lib/python*/site-packages/*snack*
+               end
+       end
+end
index a9dca115cb6e298378970eb35945077b9ed717bb..dbf24b72bf2ab383ef9b2f00aa9212dc9be6ad0f 100644 (file)
@@ -1,62 +1,57 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nfs-utils
-PKG_VER        = 1.2.2
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://nfs.sourceforge.net/
-PKG_LICENSE    = MIT and GPLv2 and GPLv2+
-PKG_SUMMARY    = NFS utilities and supporting clients and daemons for the NFS server.
-
-PKG_DEPS      += libevent libnfsidmap libgssglue libcap util-linux
-
-define PKG_DESCRIPTION
-       The nfs-utils package provides a daemon for the kernel NFS server \
-       and related tools, which provides a much higher level of performance \
-       than the traditional Linux NFS server used by most users. This \
-       package also contains the showmount program.  Showmount queries the \
-       mount daemon on a remote host for information about the NFS server \
-       on the remote host.  For example, showmount can display the clients \
+name       = nfs-utils
+version    = 1.2.2
+release    = 1
+
+groups     = Networking/Tools
+url        = http://nfs.sourceforge.net/
+license    = MIT and GPLv2 and GPLv2+
+summary    = NFS utilities and supporting clients and daemons for the NFS server.
+
+description
+       The nfs-utils package provides a daemon for the kernel NFS server
+       and related tools, which provides a much higher level of performance
+       than the traditional Linux NFS server used by most users. This
+       package also contains the showmount program.  Showmount queries the
+       mount daemon on a remote host for information about the NFS server
+       on the remote host.  For example, showmount can display the clients
        which are mounted on that host.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --sysconfdir=/etc \
-       --without-tcp-wrappers \
-       --disable-static \
-       --enable-tirpc=no \
-       --enable-nfsv3 \
-       --enable-nfsv4 \
-       --with-krb5=no \
-       --disable-gss \
-       --with-rpcgen=internal \
-       --enable-mount
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libblkid-devel
+               libcap-devel
+               libevent-devel
+               libnfsidmap-devel
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man \
+               --sysconfdir=/etc \
+               --without-tcp-wrappers \
+               --disable-static \
+               --enable-tirpc=no \
+               --enable-nfsv3 \
+               --enable-nfsv4 \
+               --with-krb5=no \
+               --disable-gss \
+               --with-rpcgen=internal \
+               --enable-mount
+end
+
+packages
+       package %{name}
+               requires
+                       libgssglue
+                       util-linux
+               end
+       end
+end
index 78e7c9d7a6d595015fb20da6684f961aa922ae8b..a439ed18c16824e0ee3f2a29267909125f1d9b65 100644 (file)
@@ -1,52 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nmap
-PKG_VER        = 5.51
-PKG_REL        = 1
+name       = nmap
+version    = 5.51
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Sniffer
-PKG_URL        = http://nmap.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Network exploration tool and security scanner.
+groups     = Networking/Sniffer
+url        = http://nmap.org/
+license    = GPLv2+
+summary    = Network exploration tool and security scanner.
 
-PKG_BUILD_DEPS+= gcc-c++ libdnet-devel libpcap-devel lua-devel openssl-devel \
-       pcre-devel
-
-define PKG_DESCRIPTION
-       Nmap is a utility for network exploration or security auditing. \
-       It supports ping scanning, many port scanning techniques, and \
-       TCP/IP fingerprinting. Nmap also offers flexible target and port \
-       specification, decoy scanning, determination of TCP sequence \
+description
+       Nmap is a utility for network exploration or security auditing.
+       It supports ping scanning, many port scanning techniques, and
+       TCP/IP fingerprinting. Nmap also offers flexible target and port
+       specification, decoy scanning, determination of TCP sequence
        predictability characteristics, reverse-identd scanning, and more.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --without-nmapfe \
-       --without-zenmap
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               gcc-c++
+               libdnet-devel
+               libpcap-devel
+               lua-devel
+               openssl-devel
+               pcre-devel
+       end
+
+       configure_options += \
+               --without-nmapfe \
+               --without-zenmap
+end
+
+packages
+       package %{name}
+end
index d2a816b056fcdf07a88dc54e634c085ef6e0f4ea..16eaab2aebcfef828f15101ad949eacd35d9cbd6 100644 (file)
@@ -1,53 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = noip
+version    = 2.1.7
+release    = 1
 
-PKG_NAME       = noip
-PKG_VER        = 2.1.7
-PKG_REL        = 0
+groups     = System/Daemons
+url        = http://www.no-ip.com
+license    = GPLv2+
+summary    = A dynamic DNS update client.
 
-PKG_MAINTAINER = 
-PKG_GROUPS     = System/Daemons
-PKG_URL        = http://www.no-ip.com
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A dynamic DNS update client.
-
-define PKG_DESCRIPTION
-       Keep your current IP address in sync with your No-IP host or domain \
-       with this Dynamic Update Client (DUC). The client continually checks \
-       for IP address changes in the background and automatically updates \
+description
+       Keep your current IP address in sync with your No-IP host or domain
+       with this Dynamic Update Client (DUC). The client continually checks
+       for IP address changes in the background and automatically updates
        the DNS at No-IP whenever it changes.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       make_build_targets +=\
+               PREFIX=/usr \
+               CONFDIR=/etc
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) PREFIX=/usr CONFDIR=/etc
-endef
+       install
+               mkdir -pv %{BUILDROOT}/usr/bin
+               cp noip2 %{BUILDROOT}/usr/bin/noip2
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       cd $(DIR_APP) && cp noip2 $(BUILDROOT)/usr/bin/noip2    
-endef
+packages
+       package %{name}
+end
index 5a02887180071405bd960842fd088f5ef01fbdbb..8e84280cc98e84ba1e459094c6a56bae188c7d2d 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nspr
-PKG_VER        = 4.8.6
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.mozilla.org/projects/nspr/
-PKG_LICENSE    = MPLv1.1 or GPLv2+ or LGPLv2+
-PKG_SUMMARY    = Netscape Portable Runtime.
+name       = nspr
+version    = 4.8.6
+release    = 1
 
-PKG_BUILD_DEPS+= pkg-config
+groups     = System/Libraries
+url        = http://www.mozilla.org/projects/nspr/
+license    = MPLv1.1 or GPLv2+ or LGPLv2+
+summary    = Netscape Portable Runtime.
 
-define PKG_DESCRIPTION
-       NSPR provides platform independence for non-GUI operating system \
-       facilities. These facilities include threads, thread synchronization, \
-       normal file and network I/O, interval timing and calendar time, basic \
+description
+       NSPR provides platform independence for non-GUI operating system
+       facilities. These facilities include threads, thread synchronization,
+       normal file and network I/O, interval timing and calendar time, basic
        memory management (malloc and free) and shared library linking.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-# Original nspr-config is not suitable for our distribution,
-# because on different platforms it contains different dynamic content.
-# Therefore we produce an adjusted copy of nspr-config that will be 
-# identical on all platforms.
-# However, we need to use original nspr-config to produce some variables
-# that go into nspr.pc for pkg-config.
-
-define STAGE_PREPARE
-       cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
-
-       cp -vf $(DIR_APP)/mozilla/nsprpub/config/nspr-config.in \
-               $(DIR_APP)/mozilla/nsprpub/config/nspr-config-pc.in
-       cp -vf $(DIR_SOURCE)/nspr-config-vars.in \
-               $(DIR_APP)/mozilla/nsprpub/config/
-
-       $(DO_PATCHES)
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && $(DIR_APP)/mozilla/nsprpub/configure \
-               $(CONFIGURE_OPTIONS) \
-               --libdir=/lib \
-               --includedir=/usr/include/nspr4 \
-               --enable-optimize="$(CFLAGS)" \
-               --disable-debug
-
-       cd $(DIR_APP) && make
-endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/{bin,lib}
-       -mkdir -pv $(BUILDROOT)/lib
-       -mkdir -pv $(BUILDROOT)/usr/lib/pkgconfig
-
-       cp -vf $(DIR_APP)/config/nspr-config-pc \
-               $(BUILDROOT)/usr/bin/nspr-config
-
-       sed \
-               -e "s,%libdir%,/usr/lib,g" \
-               -e "s,%prefix%,/usr,g" \
-               -e "s,%exec_prefix%,/usr,g" \
-               -e "s,%includedir%,/usr/include/nspr4,g" \
-               -e "s,%NSPR_VERSION%,$(PKG_VER),g" \
-               -e "s,%FULL_NSPR_LIBS%,-L/usr/lib -lnspr4 -lplc4 -lplds4 -ldl -lpthread,g" \
-               -e "s,%FULL_NSPR_CFLAGS%,-I/usr/include/nspr4,g" \
-               < $(DIR_SOURCE)/nspr.pc.in \
-               > $(BUILDROOT)/usr/lib/pkgconfig/nspr.pc
-
-       #mv -v $(BUILDROOT)/usr/lib/lib{nspr,plc.plds}4.so $(BUILDROOT)/lib/
-       ln -svf ../../lib/libnspr4.so $(BUILDROOT)/usr/lib/libnspr4.so
-       ln -svf ../../lib/libplc4.so $(BUILDROOT)/usr/lib/libplc4.so
-       ln -svf ../../lib/libplds4.so $(BUILDROOT)/usr/lib/libplds4.so
-
-       # Remove unneeded stuff
-       rm -rfv \
-               $(BUILDROOT)/usr/bin/compile-et.pl \
-               $(BUILDROOT)/usr/bin/prerr.properties \
-               $(BUILDROOT)/usr/share/aclocal/nspr.m4 \
-               $(BUILDROOT)/usr/include/nspr4/md
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               pkg-config
+       end
+
+       # Original nspr-config is not suitable for our distribution,
+       # because on different platforms it contains different dynamic content.
+       # Therefore we produce an adjusted copy of nspr-config that will be
+       # identical on all platforms.
+       # However, we need to use original nspr-config to produce some variables
+       # that go into nspr.pc for pkg-config.
+
+       prepare
+               cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/%{sources}
+
+               cp -vf %{DIR_APP}/mozilla/nsprpub/config/nspr-config.in \
+                       %{DIR_APP}/mozilla/nsprpub/config/nspr-config-pc.in
+               cp -vf %{DIR_SOURCE}/nspr-config-vars.in \
+                       %{DIR_APP}/mozilla/nsprpub/config/
+               cd %{DIR_APP}
+
+               %{MACRO_PATCHES}
+       end
+
+       build
+               %{DIR_APP}/mozilla/nsprpub/configure \
+                       %{configure_options} \
+                       --libdir=/lib \
+                       --includedir=/usr/include/nspr4 \
+                       --enable-optimize="%{CFLAGS}" \
+                       --disable-debug
+
+               make
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/{bin,lib}
+               mkdir -pv %{BUILDROOT}/lib
+               mkdir -pv %{BUILDROOT}/usr/lib/pkgconfig
+
+               cp -vf %{DIR_APP}/config/nspr-config-pc \
+                       %{BUILDROOT}/usr/bin/nspr-config
+
+               sed \
+                       -e "s,%libdir%,/usr/lib,g" \
+                       -e "s,%prefix%,/usr,g" \
+                       -e "s,%exec_prefix%,/usr,g" \
+                       -e "s,%includedir%,/usr/include/nspr4,g" \
+                       -e "s,%NSPR_VERSION%,%{version},g" \
+                       -e "s,%FULL_NSPR_LIBS%,-L/usr/lib -lnspr4 -lplc4 -lplds4 -ldl -lpthread,g" \
+                       -e "s,%FULL_NSPR_CFLAGS%,-I/usr/include/nspr4,g" \
+                       < %{DIR_SOURCE}/nspr.pc.in \
+                       > %{BUILDROOT}/usr/lib/pkgconfig/nspr.pc
+
+               #mv -v %{BUILDROOT}/usr/lib/lib{nspr,plc.plds}4.so %{BUILDROOT}/lib/
+               ln -svf ../../lib/libnspr4.so %{BUILDROOT}/usr/lib/libnspr4.so
+               ln -svf ../../lib/libplc4.so %{BUILDROOT}/usr/lib/libplc4.so
+               ln -svf ../../lib/libplds4.so %{BUILDROOT}/usr/lib/libplds4.so
+
+               # Remove unneeded stuff
+               rm -rfv \
+                       %{BUILDROOT}/usr/bin/compile-et.pl \
+                       %{BUILDROOT}/usr/bin/prerr.properties \
+                       %{BUILDROOT}/usr/share/aclocal/nspr.m4 \
+                       %{BUILDROOT}/usr/include/nspr4/md
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+end
index b130e6e54ed37be32b562a9bbcf3219163796787..9573d49b6ac3780fd4ef3649af5bd7c789515211 100644 (file)
@@ -1,40 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = nss-myhostname
+version    = 0.3
+release    = 1
 
-PKG_NAME       = nss-myhostname
-PKG_VER        = 0.3
-PKG_REL        = 1
+groups     = System/Libraries
+url        = http://0pointer.de/lennart/projects/nss-myhostname/
+license    = LGPLv2+
+summary    = glibc plugin for local system host name resolution.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://0pointer.de/lennart/projects/nss-myhostname/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = glibc plugin for local system host name resolution.
-
-define PKG_DESCRIPTION
+description
        nss-myhostname is a plugin for the GNU Name Service Switch (NSS)
        functionality of the GNU C Library (glibc) providing host name
        resolution for the locally configured system hostname as returned by
@@ -48,17 +26,23 @@ define PKG_DESCRIPTION
        127.0.0.2 (wich is on the local loopback) and the IPv6 address ::1
        (which is the local host) for whatever system hostname is configured
        locally. Patching /etc/hosts is thus no longer necessary.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       configure_options += \
+               --libdir=/lib
 
-CONFIGURE_OPTIONS += \
-       --libdir=/lib
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libnss_myhostname.so.2 \
+                       %{BUILDROOT}/usr/lib/libnss_myhostname.so
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libnss_myhostname.so.2 \
-               $(BUILDROOT)/usr/lib/libnss_myhostname.so
+               rm -rf %{BUILDROOT}/usr/share/doc/nss-myhostname
+       end
+end
 
-       rm -rf $(BUILDROOT)/usr/share/doc/nss-myhostname
-endef
+packages
+       package %{name}
+end
index 4cdcf4e6af7fdf4e7ac35ed681bf8dae975d375d..2dc0cddd8b56e30831ce5bb9110b64d5aba37dc7 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nss-softokn
-PKG_VER        = 3.12.8
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.mozilla.org/projects/security/pki/nss/
-PKG_LICENSE    = MPLv1.1 or GPLv2+ or LGPLv2+
-PKG_SUMMARY    = Network Security Services Softoken Module.
+name       = nss-softokn
+version    = 3.12.8
+release    = 1
 
-PKG_BUILD_DEPS+= nspr-devel nss-util-devel perl pkg-config psmisc sqlite-devel \
-       zlib-devel
+groups     = System/Libraries
+url        = http://www.mozilla.org/projects/security/pki/nss/
+license    = MPLv1.1 or GPLv2+ or LGPLv2+
+summary    = Network Security Services Softoken Module.
 
-define PKG_DESCRIPTION
+description
        Network Security Services Softoken Cryptographic Module.
-endef
-
-PKG_TARBALL    = $(THISAPP)-stripped.tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-PKG_DEPS-$(PKG_NAME_REAL)-devel += nss-util-devel
-
-# Mozilla does no versioning :(
-define PKG_FILES-$(PKG_NAME_REAL)-devel
-       /usr/bin/*-config
-       /usr/include
-       /usr/lib/libfreebl3.so
-       /usr/lib/pkgconfig
-endef
-
-## Define some global environment variables
-
-export FREEBL_NO_DEPEND=1
-export FREEBL_USE_PRELINK=1
-
-# Enable compiler optimizations and disable debugging code
-export BUILD_OPT=1
-export XCFLAGS=$(CFLAGS)
-
-export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
-export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
-
-export NSPR_INCLUDE_DIR=/usr/include/nspr4
-export NSPR_LIB_DIR=/usr/lib
-
-export NSS_INCLUDE_DIR=/usr/include/nss3
-export NSS_LIB_DIR=/usr/lib
-
-export NSS_USE_SYSTEM_SQLITE=1
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make -C ./mozilla/security/coreconf
-       cd $(DIR_APP) && make -C ./mozilla/security/dbm
-       cd $(DIR_APP) && make -C ./mozilla/security/nss
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/lib
-       -mkdir -pv $(BUILDROOT)/usr/include/nss3
-       -mkdir -pv $(BUILDROOT)/usr/{bin,lib}
-       -mkdir -pv $(BUILDROOT)/usr/lib/pkgconfig
-       -mkdir -pv $(BUILDROOT)/usr/lib/nss/unsupported-tools
-
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libsoftokn3.so \
-               $(BUILDROOT)/usr/lib
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libnssdbm3.so \
-               $(BUILDROOT)/usr/lib
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libfreebl3.so \
-               $(BUILDROOT)/lib
-       ln -svf ../../lib/libfreebl3.so $(BUILDROOT)/usr/lib/libfreebl3.so
-
-       # Copy the binaries we ship as unsupported
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/shlibsign $(BUILDROOT)/usr/lib/nss/unsupported-tools
-
-       sed -e "s,@libdir@,/usr/lib,g" \
-               -e "s,@prefix@,/usr,g" \
-               -e "s,@exec_prefix@,/usr,g" \
-               -e "s,@includedir@,/usr/include/nss3,g" \
-               -e "s,@MOD_MAJOR_VERSION@,$$(grep "#define.*SOFTOKEN_VMAJOR" $(DIR_APP)/mozilla/security/nss/lib/softoken/softkver.h | awk '{print $3}'),g" \
-               -e "s,@MOD_MINOR_VERSION@,$$(grep "#define.*SOFTOKEN_VMINOR" $(DIR_APP)/mozilla/security/nss/lib/softoken/softkver.h | awk '{print $3}'),g" \
-               -e "s,@MOD_PATCH_VERSION@,$$(grep "#define.*SOFTOKEN_VPATCH" $(DIR_APP)/mozilla/security/nss/lib/softoken/softkver.h | awk '{print $3}'),g" \
-               < $(DIR_SOURCE)/nss-softokn-config.in \
-               > $(BUILDROOT)/usr/bin/nss-softokn-config
-       chmod -v 755 $(BUILDROOT)/usr/bin/nss-softokn-config
-
-       # XXX need to fix this
-       sed \
-               -e "s,%libdir%,/usr/lib,g" \
-               -e "s,%prefix%,/usr,g" \
-               -e "s,%exec_prefix%,/usr,g" \
-               -e "s,%includedir%,/usr/include/nss3,g" \
-               -e "s,%NSS_VERSION%,$(PKG_VER),g" \
-               -e "s,%NSPR_VERSION%,$$(nspr-config --version),g" \
-               -e "s,%NSSUTIL_VERSION%,$$(nss-util-config --version),g" \
-               -e "s,%SOFTOKEN_VERSION%,$(PKG_VER),g" \
-               < $(DIR_SOURCE)/nss-softokn.pc.in \
-               > $(BUILDROOT)/usr/lib/pkgconfig/nss-softokn.pc
-
-       # Copy the include files we want
-       cp -vf $(DIR_APP)/mozilla/dist/public/nss/*.h $(BUILDROOT)/usr/include/nss3
-       cp -vf $(DIR_APP)/mozilla/dist/private/nss/blapi.h \
-               $(BUILDROOT)/usr/include/nss3
-       chmod -v 644 $(BUILDROOT)/usr/include/nss3/*.h
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}-stripped.tar.bz2
+
+build
+       requires
+               nspr-devel
+               nss-util-devel
+               perl
+               pkg-config
+               psmisc
+               sqlite-devel
+               zlib-devel
+       end
+
+       ## Define some global environment variables
+       export FREEBL_NO_DEPEND=1
+       export FREEBL_USE_PRELINK=1
+
+       # Enable compiler optimizations and disable debugging code
+       export BUILD_OPT=1
+       export XCFLAGS=%{CFLAGS}
+
+       export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
+       export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
+
+       export NSPR_INCLUDE_DIR=/usr/include/nspr4
+       export NSPR_LIB_DIR=/usr/lib
+
+       export NSS_INCLUDE_DIR=/usr/include/nss3
+       export NSS_LIB_DIR=/usr/lib
+
+       export NSS_USE_SYSTEM_SQLITE=1
+
+       build
+               make -C ./mozilla/security/coreconf
+               make -C ./mozilla/security/dbm
+               make -C ./mozilla/security/nss
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/lib
+               mkdir -pv %{BUILDROOT}/usr/include/nss3
+               mkdir -pv %{BUILDROOT}/usr/{bin,lib}
+               mkdir -pv %{BUILDROOT}/usr/lib/pkgconfig
+               mkdir -pv %{BUILDROOT}/usr/lib/nss/unsupported-tools
+
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libsoftokn3.so \
+                       %{BUILDROOT}/usr/lib
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libnssdbm3.so \
+                       %{BUILDROOT}/usr/lib
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libfreebl3.so \
+                       %{BUILDROOT}/lib
+               ln -svf ../../lib/libfreebl3.so %{BUILDROOT}/usr/lib/libfreebl3.so
+
+               # Copy the binaries we ship as unsupported
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/shlibsign %{BUILDROOT}/usr/lib/nss/unsupported-tools
+
+               sed -e "s,@libdir@,/usr/lib,g" \
+                       -e "s,@prefix@,/usr,g" \
+                       -e "s,@exec_prefix@,/usr,g" \
+                       -e "s,@includedir@,/usr/include/nss3,g" \
+                       -e "s,@MOD_MAJOR_VERSION@,$$(grep "#define.*SOFTOKEN_VMAJOR" %{DIR_APP}/mozilla/security/nss/lib/softoken/softkver.h | awk '{print $3}'),g" \
+                       -e "s,@MOD_MINOR_VERSION@,$$(grep "#define.*SOFTOKEN_VMINOR" %{DIR_APP}/mozilla/security/nss/lib/softoken/softkver.h | awk '{print $3}'),g" \
+                       -e "s,@MOD_PATCH_VERSION@,$$(grep "#define.*SOFTOKEN_VPATCH" %{DIR_APP}/mozilla/security/nss/lib/softoken/softkver.h | awk '{print $3}'),g" \
+                       < %{DIR_SOURCE}/nss-softokn-config.in \
+                       > %{BUILDROOT}/usr/bin/nss-softokn-config
+               chmod -v 755 %{BUILDROOT}/usr/bin/nss-softokn-config
+
+               # XXX need to fix this
+               sed \
+                       -e "s,%libdir%,/usr/lib,g" \
+                       -e "s,%prefix%,/usr,g" \
+                       -e "s,%exec_prefix%,/usr,g" \
+                       -e "s,%includedir%,/usr/include/nss3,g" \
+                       -e "s,%NSS_VERSION%,%{version},g" \
+                       -e "s,%NSPR_VERSION%,$$(nspr-config --version),g" \
+                       -e "s,%NSSUTIL_VERSION%,$$(nss-util-config --version),g" \
+                       -e "s,%SOFTOKEN_VERSION%,%{version},g" \
+                       < %{DIR_SOURCE}/nss-softokn.pc.in \
+                       > %{BUILDROOT}/usr/lib/pkgconfig/nss-softokn.pc
+
+               # Copy the include files we want
+               cp -vf %{DIR_APP}/mozilla/dist/public/nss/*.h %{BUILDROOT}/usr/include/nss3
+               cp -vf %{DIR_APP}/mozilla/dist/private/nss/blapi.h \
+                       %{BUILDROOT}/usr/include/nss3
+               chmod -v 644 %{BUILDROOT}/usr/include/nss3/*.h
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+
+               requires
+                       nss-util-devel
+               end
+
+               # Mozilla does no versioning :(
+               files
+                       /usr/bin/*-config
+                       /usr/include
+                       /usr/lib/libfreebl3.so
+                       /usr/lib/pkgconfig
+               end
+       end
+end
index b6cad9c023e4e67f8853bd172c7293e4ec338937..3ae22ba963be5471705b39a43db8a0cf5335dd49 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nss-util
-PKG_VER        = 3.12.8
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.mozilla.org/projects/security/pki/nss/
-PKG_LICENSE    = MPLv1.1 or GPLv2+ or LGPLv2+
-PKG_SUMMARY    = Network Security Services Utilities Library.
+name       = nss-util
+version    = 3.12.8
+release    = 1
 
-PKG_BUILD_DEPS+= nspr-devel perl pkg-config psmisc zlib-devel
+groups     = System/Libraries
+url        = http://www.mozilla.org/projects/security/pki/nss/
+license    = MPLv1.1 or GPLv2+ or LGPLv2+
+summary    = Network Security Services Utilities Library.
 
-define PKG_DESCRIPTION
+description
        Utilities for Network Security Services and the Softoken module.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-PKG_DEPS-$(PKG_NAME_REAL)-devel = $(PKG_NAME_REAL)
-
-# Mozilla does no versioning :(
-define PKG_FILES-$(PKG_NAME_REAL)-devel
-       /usr/bin/*-config
-       /usr/include
-       /usr/lib/pkgconfig
-endef
-
-## Define some global environment variables
-# Enable compiler optimizations and disable debugging code
-export BUILD_OPT=1
-export XCFLAGS=$(CFLAGS)
-
-export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
-export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
-
-export NSPR_INCLUDE_DIR=/usr/include/nspr4
-export NSPR_LIB_DIR=/usr/lib
-
-export NSS_INCLUDE_DIR=/usr/include/nss3
-export NSS_LIB_DIR=/usr/lib
-
-export NSS_USE_SYSTEM_SQLITE=1
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make -C ./mozilla/security/coreconf
-       cd $(DIR_APP) && make -C ./mozilla/security/nss
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       -mkdir -pv $(BUILDROOT)/usr/include/nss3
-       -mkdir -pv $(BUILDROOT)/usr/lib/pkgconfig
-
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libnssutil3.so \
-               $(BUILDROOT)/usr/lib
-
-       sed -e "s,@libdir@,/usr/lib,g" \
-               -e "s,@prefix@,/usr,g" \
-               -e "s,@exec_prefix@,/usr,g" \
-               -e "s,@includedir@,/usr/include/nss3,g" \
-               -e "s,@MOD_MAJOR_VERSION@,$$(grep "#define.*NSSUTIL_VMAJOR" $(DIR_APP)/mozilla/security/nss/lib/util/nssutil.h | awk '{print $3}'),g" \
-               -e "s,@MOD_MINOR_VERSION@,$$(grep "#define.*NSSUTIL_VMINOR" $(DIR_APP)/mozilla/security/nss/lib/util/nssutil.h | awk '{print $3}'),g" \
-               -e "s,@MOD_PATCH_VERSION@,$$(grep "#define.*NSSUTIL_VPATCH" $(DIR_APP)/mozilla/security/nss/lib/util/nssutil.h | awk '{print $3}'),g" \
-               < $(DIR_SOURCE)/nss-util-config.in \
-               > $(BUILDROOT)/usr/bin/nss-util-config
-       chmod -v 755 $(BUILDROOT)/usr/bin/nss-util-config
-
-       sed \
-               -e "s,%libdir%,/usr/lib,g" \
-               -e "s,%prefix%,/usr,g" \
-               -e "s,%exec_prefix%,/usr,g" \
-               -e "s,%includedir%,/usr/include/nss3,g" \
-               -e "s,%NSPR_VERSION%,$$(nspr-config --version),g" \
-               -e "s,%NSSUTIL_VERSION%,$(PKG_NAME),g" \
-               < $(DIR_SOURCE)/nss-util.pc.in \
-               > $(BUILDROOT)/usr/lib/pkgconfig/nss-util.pc
-
-       # The util headers, the rest come from softokn and nss
-       cp -vf $(DIR_APP)/mozilla/dist/public/nss/*.h $(BUILDROOT)/usr/include/nss3
-       chmod -v 644 $(BUILDROOT)/usr/include/nss3/*.h
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               nspr-devel
+               perl
+               pkg-config
+               psmisc
+               zlib-devel
+       end
+
+       ## Define some global environment variables
+       # Enable compiler optimizations and disable debugging code
+       export BUILD_OPT=1
+       export XCFLAGS=%{CFLAGS}
+
+       export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
+       export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
+
+       export NSPR_INCLUDE_DIR=/usr/include/nspr4
+       export NSPR_LIB_DIR=/usr/lib
+
+       export NSS_INCLUDE_DIR=/usr/include/nss3
+       export NSS_LIB_DIR=/usr/lib
+
+       export NSS_USE_SYSTEM_SQLITE=1
+
+       build
+               make -C ./mozilla/security/coreconf
+               make -C ./mozilla/security/nss
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/bin
+               mkdir -pv %{BUILDROOT}/usr/include/nss3
+               mkdir -pv %{BUILDROOT}/usr/lib/pkgconfig
+
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libnssutil3.so \
+                       %{BUILDROOT}/usr/lib
+
+               sed -e "s,@libdir@,/usr/lib,g" \
+                       -e "s,@prefix@,/usr,g" \
+                       -e "s,@exec_prefix@,/usr,g" \
+                       -e "s,@includedir@,/usr/include/nss3,g" \
+                       -e "s,@MOD_MAJOR_VERSION@,$$(grep "#define.*NSSUTIL_VMAJOR" %{DIR_APP}/mozilla/security/nss/lib/util/nssutil.h | awk '{print $3}'),g" \
+                       -e "s,@MOD_MINOR_VERSION@,$$(grep "#define.*NSSUTIL_VMINOR" %{DIR_APP}/mozilla/security/nss/lib/util/nssutil.h | awk '{print $3}'),g" \
+                       -e "s,@MOD_PATCH_VERSION@,$$(grep "#define.*NSSUTIL_VPATCH" %{DIR_APP}/mozilla/security/nss/lib/util/nssutil.h | awk '{print $3}'),g" \
+                       < %{DIR_SOURCE}/nss-util-config.in \
+                       > %{BUILDROOT}/usr/bin/nss-util-config
+               chmod -v 755 %{BUILDROOT}/usr/bin/nss-util-config
+
+               sed \
+                       -e "s,%libdir%,/usr/lib,g" \
+                       -e "s,%prefix%,/usr,g" \
+                       -e "s,%exec_prefix%,/usr,g" \
+                       -e "s,%includedir%,/usr/include/nss3,g" \
+                       -e "s,%NSPR_VERSION%,$$(nspr-config --version),g" \
+                       -e "s,%NSSUTIL_VERSION%,%{name},g" \
+                       < %{DIR_SOURCE}/nss-util.pc.in \
+                       > %{BUILDROOT}/usr/lib/pkgconfig/nss-util.pc
+
+               # The util headers, the rest come from softokn and nss
+               cp -vf %{DIR_APP}/mozilla/dist/public/nss/*.h %{BUILDROOT}/usr/include/nss3
+               chmod -v 644 %{BUILDROOT}/usr/include/nss3/*.h
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+
+               requires
+                       %{name}
+               end
+
+               # Mozilla does no versioning :(
+               files
+                       /usr/bin/*-config
+                       /usr/include
+                       /usr/lib/pkgconfig
+               end
+       end
+end
index c2848ba10e962239683b552eeda171cfff648008..8ccc9b6a1f693e8ebe0c34e82cf0cb1b73cac360 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nss
-PKG_VER        = 3.12.8
-PKG_REL        = 3
+name       = nss
+version    = 3.12.8
+release    = 3
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.mozilla.org/projects/security/pki/nss/
-PKG_LICENSE    = MPLv1.1 or GPLv2+ or LGPLv2+
-PKG_SUMMARY    = Network Security Services.
+groups     = System/Libraries
+url        = http://www.mozilla.org/projects/security/pki/nss/
+license    = MPLv1.1 or GPLv2+ or LGPLv2+
+summary    = Network Security Services.
 
-PKG_BUILD_DEPS+= nspr-devel nss-softokn-devel nss-util-devel perl pkg-config \
-       psmisc sqlite-devel zlib-devel
-
-define PKG_DESCRIPTION
-       Network Security Services (NSS) is a set of libraries designed to \
-       support cross-platform development of security-enabled client and \
-       server applications. Applications built with NSS can support SSL v2 \
-       and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 \
+description
+       Network Security Services (NSS) is a set of libraries designed to
+       support cross-platform development of security-enabled client and
+       server applications. Applications built with NSS can support SSL v2
+       and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509
        v3 certificates, and other security standards.
-endef
-
-PKG_TARBALL    = $(THISAPP)-stripped.tar.bz2
-PKG_OBJECTS   += nss-pem-20100809.tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel $(PKG_NAME_REAL)-libs
-
-PKG_DEPS-$(PKG_NAME_REAL)-devel += nspr-devel nss nss-softokn-devel nss-util-devel
-
-# Mozilla does no versioning :(
-define PKG_FILES-$(PKG_NAME_REAL)-devel
-       /usr/bin/*-config
-       /usr/include
-       /usr/lib/pkgconfig
-endef
-
-define PKG_FILES-$(PKG_NAME_REAL)-libs
-       /usr/lib/*.so
-endef
-
-# XXX -> need to be removed
-define QUALITY_AGENT_WHITELIST_RPATH
-       $$ORIGIN/../lib
-endef
-
-## Define some global environment variables
-
-export FREEBL_NO_DEPEND=1
+end
 
-# Enable compiler optimizations and disable debugging code
-export BUILD_OPT=1
-export XCFLAGS=$(CFLAGS)
+source_dl  =
+sources
+       %{thisapp}-stripped.tar.bz2
+       %{name}-pem-20100809.tar.bz2
+end
 
-export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
-export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
+build
+       requires
+               nspr-devel
+               nss-softokn-devel
+               nss-util-devel
+               perl
+               pkg-config
+               psmisc
+               sqlite-devel
+               zlib-devel
+       end
 
-export NSPR_INCLUDE_DIR=/usr/include/nspr4
-export NSPR_LIB_DIR=/usr/lib
+       ## Define some global environment variables
 
-export NSS_INCLUDE_DIR=/usr/include/nss3
-export NSS_LIB_DIR=/usr/lib
+       export FREEBL_NO_DEPEND=1
 
-export NSS_USE_SYSTEM_SQLITE=1
+       # Enable compiler optimizations and disable debugging code
+       export BUILD_OPT=1
+       export XCFLAGS=%{CFLAGS}
 
-define STAGE_PREPARE
-       cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
-       cd $(DIR_APP) && $(DO_EXTRACT) $(DIR_DL)/nss-pem-20100809.tar.bz2
+       export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
+       export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
 
-       $(DO_PATCHES)
+       export NSPR_INCLUDE_DIR=/usr/include/nspr4
+       export NSPR_LIB_DIR=/usr/lib
 
-       cp -vf $(DIR_SOURCE)/PayPalEE.cert \
-               $(DIR_APP)/mozilla/security/nss/tests/libpkix/certs
-endef
+       export NSS_INCLUDE_DIR=/usr/include/nss3
+       export NSS_LIB_DIR=/usr/lib
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make -C ./mozilla/security/coreconf
-       cd $(DIR_APP) && make -C ./mozilla/security/dbm
-       cd $(DIR_APP) && make -C ./mozilla/security/nss
-endef
+       export NSS_USE_SYSTEM_SQLITE=1
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/include/nss3
-       -mkdir -pv $(BUILDROOT)/usr/{bin,lib}
-       -mkdir -pv $(BUILDROOT)/usr/lib/pkgconfig
-       -mkdir -pv $(BUILDROOT)/usr/lib/nss/unsupported-tools
+       prepare
+               # Extract tarball
+               cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/%{thisapp}-stripped.tar.bz2
 
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libnss3.so \
-               $(BUILDROOT)/usr/lib
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libnssckbi.so \
-               $(BUILDROOT)/usr/lib
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libnsspem.so \
-               $(BUILDROOT)/usr/lib
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libnsssysinit.so \
-               $(BUILDROOT)/usr/lib
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libsmime3.so \
-               $(BUILDROOT)/usr/lib
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/lib/libssl3.so \
-               $(BUILDROOT)/usr/lib
+               # Extract tarball into nss directory.
+               cd %{DIR_APP} && %{MACRO_EXTRACT} %{DIR_DL}/%{name}-pem-20100809.tar.bz2
                
-       # Install the empty NSS db files
-       -mkdir -pv $(BUILDROOT)/etc/pki/nssdb
-       cp -vf $(DIR_SOURCE)/*.db $(BUILDROOT)/etc/pki/nssdb/
-       install -p -v -m 644 $(DIR_SOURCE)/system-pkcs11.txt \
-               $(BUILDROOT)/etc/pki/nssdb/pkcs11.txt
-
-       # Copy the binaries we want
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/certutil $(BUILDROOT)/usr/bin
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/cmsutil $(BUILDROOT)/usr/bin
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/crlutil $(BUILDROOT)/usr/bin
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/modutil $(BUILDROOT)/usr/bin
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/pk12util $(BUILDROOT)/usr/bin
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/signtool $(BUILDROOT)/usr/bin
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/signver $(BUILDROOT)/usr/bin
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/ssltap $(BUILDROOT)/usr/bin
-
-       # Copy the binaries we ship as unsupported
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/atob $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/btoa $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/derdump $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/ocspclnt $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/pp $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/selfserv $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/strsclnt $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/symkeyutil $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/tstclnt $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/vfyserv $(BUILDROOT)/usr/lib/nss/unsupported-tools
-       install -p -v -m 755 $(DIR_APP)/mozilla/dist/*.OBJ/bin/vfychain $(BUILDROOT)/usr/lib/nss/unsupported-tools
-
-       sed -e "s,@libdir@,/usr/lib,g" \
-               -e "s,@prefix@,/usr,g" \
-               -e "s,@exec_prefix@,/usr,g" \
-               -e "s,@includedir@,/usr/include/nss3,g" \
-               -e "s,@MOD_MAJOR_VERSION@,$$(grep "#define.*NSS_VMAJOR" $(DIR_APP)/mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'),g" \
-               -e "s,@MOD_MINOR_VERSION@,$$(grep "#define.*NSS_VMINOR" $(DIR_APP)/mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'),g" \
-               -e "s,@MOD_PATCH_VERSION@,$$(grep "#define.*NSS_VPATCH" $(DIR_APP)/mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'),g" \
-               < $(DIR_SOURCE)/nss-config.in \
-               > $(BUILDROOT)/usr/bin/nss-config
-       chmod -v 755 $(BUILDROOT)/usr/bin/nss-config
-
-       install -p -v -m 755 $(DIR_SOURCE)/setup-nsssysinit.sh $(BUILDROOT)/usr/bin
-
-       # Set up our package file
-       # The nspr_version and nss_{util|softokn}_version globals used
-       # here match the ones nss has for its Requires.
-
-       # XXX need to fix this
-       sed \
-               -e "s,%libdir%,/usr/lib,g" \
-               -e "s,%prefix%,/usr,g" \
-               -e "s,%exec_prefix%,/usr,g" \
-               -e "s,%includedir%,/usr/include/nss3,g" \
-               -e "s,%NSS_VERSION%,$(PKG_VER),g" \
-               -e "s,%NSPR_VERSION%,$$(nspr-config --version),g" \
-               -e "s,%NSSUTIL_VERSION%,$$(nss-util-config --version),g" \
-               -e "s,%SOFTOKEN_VERSION%,$$(nss-softokn-config --version),g" \
-               < $(DIR_SOURCE)/nss.pc.in \
-               > $(BUILDROOT)/usr/lib/pkgconfig/nss.pc
-
-       # Copy the include files we want
-       cp -vf $(DIR_APP)/mozilla/dist/public/nss/*.h $(BUILDROOT)/usr/include/nss3
-       chmod -v 644 $(BUILDROOT)/usr/include/nss3/*.h
-
-       # remove the nss-util-devel headers
-       cd $(BUILDROOT)/usr/include/nss3 && rm -vf \
-               base64.h \
-               ciferfam.h \
-               nssb64.h \
-               nssb64t.h \
-               nsslocks.h \
-               nssilock.h \
-               nssilckt.h \
-               nssrwlk.h \
-               nssrwlkt.h \
-               nssutil.h \
-               pkcs11{,f,n,p,t,u}.h \
-               portreg.h \
-               secasn1.h \
-               secasn1t.h \
-               seccomon.h \
-               secder.h \
-               secdert.h \
-               secdig.h \
-               secdigt.h \
-               secerr.h \
-               secitem.h \
-               secoid.h \
-               secoidt.h \
-               secport.h \
-               utilrename.h
-
-       # remove header shipped in nss-softokn-devel
-       cd $(BUILDROOT)/usr/include/nss3 && rm -vf \
-               blapit.h \
-               ecl-exp.h \
-               hasht.h \
-               sechash.h \
-               secmodt.h \
-               shsign.h \
-               nsslowhash.h
-endef
+               # Apply all patches
+               %{MACRO_PATCHES}
+
+               cp -vf %{DIR_SOURCE}/PayPalEE.cert \
+                       %{DIR_APP}/mozilla/security/nss/tests/libpkix/certs
+       end
+
+       build
+               make -C ./mozilla/security/coreconf
+               make -C ./mozilla/security/dbm
+               make -C ./mozilla/security/nss
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/include/nss3
+               mkdir -pv %{BUILDROOT}/usr/{bin,lib}
+               mkdir -pv %{BUILDROOT}/usr/lib/pkgconfig
+               mkdir -pv %{BUILDROOT}/usr/lib/nss/unsupported-tools
+
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libnss3.so \
+                       %{BUILDROOT}/usr/lib
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libnssckbi.so \
+                       %{BUILDROOT}/usr/lib
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libnsspem.so \
+                       %{BUILDROOT}/usr/lib
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libnsssysinit.so \
+                       %{BUILDROOT}/usr/lib
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libsmime3.so \
+                       %{BUILDROOT}/usr/lib
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/lib/libssl3.so \
+                       %{BUILDROOT}/usr/lib
+
+               # Install the empty NSS db files
+               mkdir -pv %{BUILDROOT}/etc/pki/nssdb
+               cp -vf %{DIR_SOURCE}/*.db %{BUILDROOT}/etc/pki/nssdb/
+               install -p -v -m 644 %{DIR_SOURCE}/system-pkcs11.txt \
+                       %{BUILDROOT}/etc/pki/nssdb/pkcs11.txt
+
+               # Copy the binaries we want
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/certutil %{BUILDROOT}/usr/bin
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/cmsutil %{BUILDROOT}/usr/bin
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/crlutil %{BUILDROOT}/usr/bin
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/modutil %{BUILDROOT}/usr/bin
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/pk12util %{BUILDROOT}/usr/bin
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/signtool %{BUILDROOT}/usr/bin
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/signver %{BUILDROOT}/usr/bin
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/ssltap %{BUILDROOT}/usr/bin
+
+               # Copy the binaries we ship as unsupported
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/atob %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/btoa %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/derdump %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/ocspclnt %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/pp %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/selfserv %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/strsclnt %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/symkeyutil %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/tstclnt %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/vfyserv %{BUILDROOT}/usr/lib/nss/unsupported-tools
+               install -p -v -m 755 %{DIR_APP}/mozilla/dist/*.OBJ/bin/vfychain %{BUILDROOT}/usr/lib/nss/unsupported-tools
+
+               sed -e "s,@libdir@,/usr/lib,g" \
+                       -e "s,@prefix@,/usr,g" \
+                       -e "s,@exec_prefix@,/usr,g" \
+                       -e "s,@includedir@,/usr/include/nss3,g" \
+                       -e "s,@MOD_MAJOR_VERSION@,$(grep "#define.*NSS_VMAJOR" %{DIR_APP}/mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'),g" \
+                       -e "s,@MOD_MINOR_VERSION@,$(grep "#define.*NSS_VMINOR" %{DIR_APP}/mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'),g" \
+                       -e "s,@MOD_PATCH_VERSION@,$(grep "#define.*NSS_VPATCH" %{DIR_APP}/mozilla/security/nss/lib/nss/nss.h | awk '{print $3}'),g" \
+                       < %{DIR_SOURCE}/nss-config.in \
+                       > %{BUILDROOT}/usr/bin/nss-config
+               chmod -v 755 %{BUILDROOT}/usr/bin/nss-config
+
+               install -p -v -m 755 %{DIR_SOURCE}/setup-nsssysinit.sh %{BUILDROOT}/usr/bin
+
+               # Set up our package file
+               # The nspr_version and nss_{util|softokn}_version globals used
+               # here match the ones nss has for its Requires.
+
+               # XXX need to fix this
+               sed \
+                       -e "s,%libdir%,/usr/lib,g" \
+                       -e "s,%prefix%,/usr,g" \
+                       -e "s,%exec_prefix%,/usr,g" \
+                       -e "s,%includedir%,/usr/include/nss3,g" \
+                       -e "s,%NSS_VERSION%,%{version},g" \
+                       -e "s,%NSPR_VERSION%,$(nspr-config --version),g" \
+                       -e "s,%NSSUTIL_VERSION%,$(nss-util-config --version),g" \
+                       -e "s,%SOFTOKEN_VERSION%,$(nss-softokn-config --version),g" \
+                       < %{DIR_SOURCE}/nss.pc.in \
+                       > %{BUILDROOT}/usr/lib/pkgconfig/nss.pc
+
+               # Copy the include files we want
+               cp -vf %{DIR_APP}/mozilla/dist/public/nss/*.h %{BUILDROOT}/usr/include/nss3
+               chmod -v 644 %{BUILDROOT}/usr/include/nss3/*.h
+
+               # remove the nss-util-devel headers
+               cd %{BUILDROOT}/usr/include/nss3 && rm -vf \
+                       base64.h \
+                       ciferfam.h \
+                       nssb64.h \
+                       nssb64t.h \
+                       nsslocks.h \
+                       nssilock.h \
+                       nssilckt.h \
+                       nssrwlk.h \
+                       nssrwlkt.h \
+                       nssutil.h \
+                       pkcs11{,f,n,p,t,u}.h \
+                       portreg.h \
+                       secasn1.h \
+                       secasn1t.h \
+                       seccomon.h \
+                       secder.h \
+                       secdert.h \
+                       secdig.h \
+                       secdigt.h \
+                       secerr.h \
+                       secitem.h \
+                       secoid.h \
+                       secoidt.h \
+                       secport.h \
+                       utilrename.h
+
+               # remove header shipped in nss-softokn-devel
+               cd %{BUILDROOT}/usr/include/nss3 && rm -vf \
+                       blapit.h \
+                       ecl-exp.h \
+                       hasht.h \
+                       sechash.h \
+                       secmodt.h \
+                       shsign.h \
+                       nsslowhash.h
+       end
+end
+
+# XXX need to be removed
+quality-agent
+       whitelist_rpath
+               $ORIGIN/../lib
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-libs
+               template LIBS
+
+               files
+                       /usr/lib/*.so
+               end
+       end
+
+       package %{name}-devel
+               template DEVEL
+
+               requires
+                       nspr-devel
+                       %{name}
+                       nss-softokn-devel
+                       nss-util-devel
+               end
+
+               # Mozilla does no versioning :(
+               files
+                       /usr/bin/*-config
+                       /usr/include
+                       /usr/lib/pkgconfig
+               end
+       end
+end
index 78ded41e20f4bbe4bb44f8e76d29acb09bdad68e..b5293ab93a35679ac1ff5208a282de375633eb63 100644 (file)
@@ -1,53 +1,28 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = nss_ldap
-PKG_VER        = 265
-PKG_REL        = 2
+name       = nss_ldap
+version    = 265
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.padl.com/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = NSS library and PAM module for LDAP.
+groups     = System/Base
+url        = http://www.padl.com/
+license    = LGPLv2+
+summary    = NSS library and PAM module for LDAP.
 
-PKG_BUILD_DEPS+= autoconf automake cyrus-sasl-devel openldap-devel
-PKG_DEPS      += /lib/security/pam_ldap.so
-
-define PKG_DESCRIPTION
-       This package includes two LDAP access clients: nss_ldap and \
-       pam_ldap. Nss_ldap is a set of C library extensions that allow \
-       X.500 and LDAP directory servers to be used as a primary source \
-       of aliases, ethers, groups, hosts, networks, protocol, users, \
+description
+       This package includes two LDAP access clients: nss_ldap and
+       pam_ldap. Nss_ldap is a set of C library extensions that allow
+       X.500 and LDAP directory servers to be used as a primary source
+       of aliases, ethers, groups, hosts, networks, protocol, users,
        RPCs, services, and shadow passwords.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-PKG_PATCHES = \
+patches = \
        nss_ldap-265-depth.patch \
        nss_ldap-254-soname.patch \
        nss_ldap-257-mozldap.patch \
@@ -62,43 +37,62 @@ PKG_PATCHES = \
        nss_ldap-265-padl-bug-418.patch \
        nss_ldap-265-setnetgrent.patch
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libdir=/lib \
-       --with-ldap-lib=openldap \
-       --enable-rfc2307bis \
-       --with-ldap-conf-file=/etc/nss_ldap.conf \
-       --with-ldap-secret-file=/etc/nss_ldap.secret
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i -e 's,^ldap.conf$$,nss_ldap.conf,g' *.5
-       cd $(DIR_APP) && sed -i -e 's,^/etc/ldap\.,/etc/nss_ldap.,g' *.5
-       cd $(DIR_APP) && sed -i -e 's,ldap.secret,nss_ldap.secret,g' *.5
-       cd $(DIR_APP) && sed -i -e 's,(ldap.conf),(nss_ldap.conf),g' *.5
-
-       # Fix call for vers_string.
-       cd $(DIR_APP) && sed -e "s/vers_string/.\/&/g" -i Makefile*
-
-       cd $(DIR_APP) && autoreconf -vfi
-endef
-
-STAGE_BUILD_TARGETS += LDFLAGS="-Wl,-z,nodelete"
-
-STAGE_INSTALL_TARGETS += LIBC_VERS=$(PKG_VER)
-
-define STAGE_INSTALL_CMDS
-       # Remove awkward directory
-       rm -rvf $(BUILDROOT)/usr/usr
-
-       mv -v $(BUILDROOT)/lib/* $(BUILDROOT)/usr/lib
-       rm -rvf $(BUILDROOT)/lib
-       ln -svf libnss_ldap-$(PKG_VER).so $(BUILDROOT)/usr/lib/libnss_ldap.so
-
-       rm -vf $(BUILDROOT)/etc/nsswitch.ldap
-
-       cd $(DIR_APP) && sed 's|dc=padl|dc=example|g' ldap.conf > \
-               $(BUILDROOT)/etc/nss_ldap.conf
-       touch $(BUILDROOT)/etc/nss_ldap.secret
-
-       ln -svf libnss_ldap.so.2 $(BUILDROOT)/usr/lib/libnss_ldap.so
-endef
+build
+       requires
+               autoconf
+               automake
+               cyrus-sasl-devel
+               openldap-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libdir=/lib \
+               --with-ldap-lib=openldap \
+               --enable-rfc2307bis \
+               --with-ldap-conf-file=/etc/nss_ldap.conf \
+               --with-ldap-secret-file=/etc/nss_ldap.secret
+
+       prepare_cmds
+               sed -i -e 's,^ldap.conf$$,nss_ldap.conf,g' *.5
+               sed -i -e 's,^/etc/ldap\.,/etc/nss_ldap.,g' *.5
+               sed -i -e 's,ldap.secret,nss_ldap.secret,g' *.5
+               sed -i -e 's,(ldap.conf),(nss_ldap.conf),g' *.5
+
+               # Fix call for vers_string.
+               sed -e "s/vers_string/.\/&/g" -i Makefile*
+
+               autoreconf -vfi
+       end
+
+       make_build_targets += \
+               LDFLAGS="-Wl,-z,nodelete"
+
+       make_install_targets += \
+               LIBC_VERS=%{version}
+
+       install_cmds
+               # Remove awkward directory
+               rm -rvf %{BUILDROOT}/usr/usr
+
+               mv -v %{BUILDROOT}/lib/* %{BUILDROOT}/usr/lib
+               rm -rvf %{BUILDROOT}/lib
+               ln -svf libnss_ldap-%{version}.so %{BUILDROOT}/usr/lib/libnss_ldap.so
+
+               rm -vf %{BUILDROOT}/etc/nsswitch.ldap
+
+               cd %{DIR_APP} && sed 's|dc=padl|dc=example|g' ldap.conf > \
+                       %{BUILDROOT}/etc/nss_ldap.conf
+               touch %{BUILDROOT}/etc/nss_ldap.secret
+
+               ln -svf libnss_ldap.so.2 %{BUILDROOT}/usr/lib/libnss_ldap.so
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       /lib/security/pam_ldap.so
+               end
+       end
+end
index 5752fba2d5d02dc0fbc1ee00c6193157ec926d39..38ce8eaf3aecea2f3e84b7a78b259ec973f3537e 100644 (file)
@@ -1,69 +1,59 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = openl2tp
-PKG_VER        = 1.7
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/PPP
-PKG_URL        = http://www.openl2tp.org/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = A Linux L2TP solution for enterprise VPN and ISPs.
-
-PKG_BUILD_DEPS+= bison flex-devel readline-devel tcl
-
-define PKG_DESCRIPTION
-       OpenL2TP is an open source L2TP client / server, written specifically \
-       for Linux. It has been designed for use as an enterprise L2TP VPN \
-       server or in commercial, Linux-based, embedded networking products and \
-       is able to support hundreds of sessions, each with different \
-       configuration. It is used by several ISPs to provide L2TP services and \
+name       = openl2tp
+version    = 1.7
+release    = 1
+
+groups     = Networking/PPP
+url        = http://www.openl2tp.org/
+license    = GPL
+summary    = A Linux L2TP solution for enterprise VPN and ISPs.
+
+description
+       OpenL2TP is an open source L2TP client / server, written specifically
+       for Linux. It has been designed for use as an enterprise L2TP VPN
+       server or in commercial, Linux-based, embedded networking products and
+       is able to support hundreds of sessions, each with different
+       configuration. It is used by several ISPs to provide L2TP services and
        by corporations to implement L2TP VPNs.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-CFLAGS        += -fno-strict-aliasing
+build
+       requires
+               bison
+               flex
+               flex-devel
+               readline-devel
+               tcl
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/-lfl/&_pic/g" -i Makefile
-endef
+       CFLAGS += -fno-strict-aliasing
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make OPT_CFLAGS="$(CFLAGS)" \
-               KERNEL_SRCDIR="/usr" PPPD_VERSION="2.4.5"
-endef
+       prepare_cmds
+               sed -e "s/-lfl/&_pic/g" -i Makefile
+       end
+
+       build
+               make OPT_CFLAGS="%{CFLAGS}" \
+                       KERNEL_SRCDIR="/usr" PPPD_VERSION="2.4.5"
+       end
 
 # This doesn't really a good testing
-#define STAGE_TEST
-#      cd $(DIR_APP) && make test
+#define test
+#      cd %{DIR_APP} && make test
 #endef
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
-               KERNEL_SRCDIR="/usr" PPPD_VERSION="2.4.5"
-endef
+       install
+               make install DESTDIR=%{BUILDROOT} \
+                       KERNEL_SRCDIR="/usr" PPPD_VERSION="2.4.5"
+       end
+end
+
+packages
+       package %{name}
+end
index 77bf1b31a984c001a0d3dafe41bf738716b75727..028ca96e20f5cec27a1f8598cca6bd5f42340c84 100644 (file)
@@ -1,98 +1,96 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = openldap
-PKG_VER        = 2.4.25
-PKG_REL        = 2
+name       = openldap
+version    = 2.4.25
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Daemons
-PKG_URL        = http://www.openldap.org/
-PKG_LICENSE    = OpenLDAP
-PKG_SUMMARY    = LDAP support libraries.
+groups     = System/Daemons
+url        = http://www.openldap.org/
+license    = OpenLDAP
+summary    = LDAP support libraries.
 
-PKG_BUILD_DEPS+= db4-devel cyrus-sasl-devel groff libtool libtool-devel \
-       openssl-devel pth-devel
-
-define PKG_DESCRIPTION
-       OpenLDAP is an open source suite of LDAP (Lightweight Directory Access \
-       Protocol) applications and development tools. LDAP is a set of \
-       protocols for accessing directory services over the Internet, similar \
-       to the way DNS information is propagated over the Internet. The \
-       openldap package contains configuration files, libraries, and \
+description
+       OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
+       Protocol) applications and development tools. LDAP is a set of
+       protocols for accessing directory services over the Internet, similar
+       to the way DNS information is propagated over the Internet. The
+       openldap package contains configuration files, libraries, and
        documentation for OpenLDAP.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tgz
+source_dl  =
+sources    = %{thisapp}.tgz
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+build
+       requires
+               db4-devel
+               cyrus-sasl-devel
+               groff
+               libtool
+               libtool-devel
+               openssl-devel
+               pth-devel
+       end
 
-CONFIGURE_OPTIONS += \
-       --libexecdir=/usr/lib \
-       --sysconfdir=/etc \
-       --localstatedir=/var \
-       --with-threads=posix \
-       --disable-perl \
-       --enable-dynamic \
-       --enable-crypt \
-       --enable-modules \
-       --enable-rlookups \
-       --enable-backends=mod \
-       --enable-overlays=mod \
-       --enable-sql=no \
-       --enable-ndb=no \
-       --disable-static
+       configure_options += \
+               --libexecdir=/usr/lib \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --with-threads=posix \
+               --disable-perl \
+               --enable-dynamic \
+               --enable-crypt \
+               --enable-modules \
+               --enable-rlookups \
+               --enable-backends=mod \
+               --enable-overlays=mod \
+               --enable-sql=no \
+               --enable-ndb=no \
+               --disable-static
 
 # Doens't seem to work in chroot.
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
+#define test
+#      cd %{DIR_APP} && make check
 #endef
 
-define STAGE_INSTALL_CMDS
-       mv -v $(BUILDROOT)/usr/lib/slapd $(BUILDROOT)/usr/sbin/slapd
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slapacl
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slapadd     
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slapauth
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slapcat
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slapdn
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slapindex
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slappasswd
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slapschema
-       ln -svf slapd $(BUILDROOT)/usr/sbin/slaptest
+       install_cmds
+               mv -v %{BUILDROOT}/usr/lib/slapd %{BUILDROOT}/usr/sbin/slapd
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slapacl
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slapadd
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slapauth
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slapcat
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slapdn
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slapindex
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slappasswd
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slapschema
+               ln -svf slapd %{BUILDROOT}/usr/sbin/slaptest
+
+               rm -rvf %{BUILDROOT}/var/openldap-data
+
+               for LINK in lber ldap ldap_r; do
+                       chmod -v 0755 %{BUILDROOT}/usr/lib/$(readlink %{BUILDROOT}/usr/lib/lib${LINK}.so)
+               done
+
+               # Install configuration
+               mkdir -pv %{BUILDROOT}/etc/%{name}
+               cp -vf %{DIR_SOURCE}/slapd.conf %{BUILDROOT}/etc/%{name}/slapd.conf
 
-       rm -rvf $(BUILDROOT)/var/openldap-data
+               mkdir -pv %{BUILDROOT}/var/lib/ldap
+               chmod 700 -Rv %{BUILDROOT}/var/lib/ldap
+       end
+end
 
-       for LINK in lber ldap ldap_r; do \
-               chmod -v 0755 $(BUILDROOT)/usr/lib/$$(readlink $(BUILDROOT)/usr/lib/lib$${LINK}.so); \
-       done
+packages
+       package %{name}
 
-       # Install configuration
-       -mkdir -pv $(BUILDROOT)/etc/$(PKG_NAME)
-       cp -vf $(DIR_SOURCE)/slapd.conf $(BUILDROOT)/etc/$(PKG_NAME)/slapd.conf
+       package %{name}-libs
+               template LIBS
+       end
 
-       -mkdir -pv $(BUILDROOT)/var/lib/ldap
-       chmod 700 -Rv $(BUILDROOT)/var/lib/ldap
-endef
+       package %{name}-devel
+               template DEVEL
+       end
+end
index ca079ebf35600b122c590a9649cdf884065dcefd..3deb364014b1e1e35a810d87c148742d64ede347 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = openssh
-PKG_VER        = 5.8p1
-PKG_REL        = 8
+name       = openssh
+version    = 5.8p1
+release    = 8
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Application/Internet
-PKG_URL        = http://www.openssh.com/portable.html
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = An open source implementation of SSH protocol versions 1 and 2.
+maintainer =
+groups     = Application/Internet
+url        = http://www.openssh.com/portable.html
+license    = MIT
+summary    = An open source implementation of SSH protocol versions 1 and 2.
 
-PKG_BUILD_DEPS+= audit-devel libselinux-devel nss-devel openssl-devel>=1.0.0d-2 \
-       pam-devel zlib-devel
-PKG_DEPS-openssh = openssh-clients=$(THISVER) openssh-server=$(THISVER)
-
-# /usr/bin/ssh-keygen is needed to generate keys for the ssh server.
-PKG_DEPS-openssh-server += /usr/bin/ssh-keygen
-
-define PKG_DESCRIPTION
+description
        SSH (Secure SHell) is a program for logging into and executing \
        commands on a remote machine. SSH is intended to replace rlogin and \
        rsh, and to provide secure encrypted communications between two \
        untrusted hosts over an insecure network.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-PKG_PACKAGES  += openssh-clients openssh-server
+build
+       requires
+               audit-devel
+               libselinux-devel
+               nss-devel
+               openssl-devel>=1.0.0d-2
+               pam-devel
+               zlib-devel
+       end
 
-PKG_SUMMARY-openssh-server     = OpenSSH server applications.
-PKG_DESCRIPTION-openssh-server  = $(PKG_SUMMARY-openssh-server)
-PKG_FILES-openssh-server        = \
-       /etc/pam.d/sshd \
-       /etc/ssh/moduli \
-       /etc/ssh/sshd_config \
-       /lib/systemd/system/openssh.service \
-       /usr/lib/openssh/sftp-server \
-       /usr/lib/openssh/ssh-keygen \
-       /usr/sbin/sshd \
-       /usr/share/man/cat5/sshd_config.5* \
-       /usr/share/man/cat5/moduli.5* \
-       /usr/share/man/cat8/sshd.8* \
-       /usr/share/man/cat8/sftp-server.8* \
-       /var
+       # Apply patches in a special order
+       patches
+               openssh-5.6p1-redhat.patch
+               openssh-5.8p1-fingerprint.patch
+               openssh-5.8p1-authorized-keys-command.patch
+               openssh-5.8p1-selinux.patch
+               openssh-5.8p1-selinux-role.patch
+               openssh-5.8p1-mls.patch
+               openssh-5.6p1-keygen.patch
+               openssh-5.2p1-allow-ip-opts.patch
+               openssh-5.8p1-randclean.patch
+               openssh-5.8p1-kuserok.patch
+               openssh-5.5p1-x11.patch
+               openssh-5.6p1-exit-deadlock.patch
+               openssh-5.1p1-askpass-progress.patch
+               openssh-4.3p2-askpass-grab-info.patch
+               openssh-5.2p1-edns.patch
+               openssh-5.1p1-scp-manpage.patch
+       end
 
-PKG_SUMMARY-openssh-clients     = OpenSSH client applications.
-PKG_DESCRIPTION-openssh-clients = $(PKG_SUMMARY-openssh-clients)
-PKG_FILES-openssh-clients       = \
-       /etc/ssh/ssh_config \
-       /usr/bin/scp \
-       /usr/bin/sftp \
-       /usr/bin/slogin \
-       /usr/bin/ssh \
-       /usr/bin/ssh-add \
-       /usr/bin/ssh-agent \
-       /usr/bin/ssh-keyscan \
-       /usr/lib/openssh/ssh-pkcs11-helper \
-       /usr/share/man/cat1/scp.1 \
-       /usr/share/man/cat1/sftp.1 \
-       /usr/share/man/cat1/slogin.1 \
-       /usr/share/man/cat1/ssh-add.1 \
-       /usr/share/man/cat1/ssh-agent.1 \
-       /usr/share/man/cat1/ssh-keyscan.1 \
-       /usr/share/man/cat1/ssh.1 \
-       /usr/share/man/cat5/ssh_config.5 \
-       /usr/share/man/cat8/ssh-pkcs11-helper.8
-
-# Apply patches in a special order
-PKG_PATCHES   = openssh-5.6p1-redhat.patch
-PKG_PATCHES   += openssh-5.8p1-fingerprint.patch
-PKG_PATCHES   += openssh-5.8p1-authorized-keys-command.patch
-PKG_PATCHES   += openssh-5.8p1-selinux.patch
-PKG_PATCHES   += openssh-5.8p1-selinux-role.patch
-PKG_PATCHES   += openssh-5.8p1-mls.patch
-PKG_PATCHES   += openssh-5.6p1-keygen.patch
-PKG_PATCHES   += openssh-5.2p1-allow-ip-opts.patch
-PKG_PATCHES   += openssh-5.8p1-randclean.patch
-PKG_PATCHES   += openssh-5.8p1-kuserok.patch
-PKG_PATCHES   += openssh-5.5p1-x11.patch
-PKG_PATCHES   += openssh-5.6p1-exit-deadlock.patch
-PKG_PATCHES   += openssh-5.1p1-askpass-progress.patch
-PKG_PATCHES   += openssh-4.3p2-askpass-grab-info.patch
-PKG_PATCHES   += openssh-5.2p1-edns.patch
-PKG_PATCHES   += openssh-5.1p1-scp-manpage.patch
-       
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc/ssh \
-       --datadir=/usr/share/sshd \
-       --libexecdir=/usr/lib/openssh \
-       --with-md5-passwords \
-       --with-privsep-path=/var/lib/sshd \
-       --with-pam \
-       --with-selinux \
-       --with-nss \
-       --with-audit=linux
+       configure_options += \
+               --sysconfdir=/etc/ssh \
+               --datadir=/usr/share/sshd \
+               --libexecdir=/usr/lib/openssh \
+               --with-md5-passwords \
+               --with-privsep-path=/var/lib/sshd \
+               --with-pam \
+               --with-selinux \
+               --with-nss \
+               --with-audit=linux
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/ssh
-       cp -vf $(DIR_SOURCE)/sshd_config $(BUILDROOT)/etc/ssh/sshd_config
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/ssh
+               cp -vf %{DIR_SOURCE}/sshd_config %{BUILDROOT}/etc/ssh/sshd_config
 
-       # Install scriptfile for key generation
-       install -m 754 $(DIR_SOURCE)/ssh-keygen $(BUILDROOT)/usr/lib/openssh/
-endef
+               # Install scriptfile for key generation
+               install -m 754 %{DIR_SOURCE}/ssh-keygen %{BUILDROOT}/usr/lib/openssh/
+       end
+end
 
-# XXX User and Group "sshd" needs to be created at the installation of the openssh-server package.
+packages
+       package openssh
+               requires
+                       openssh-clients=%{thisver}
+                       openssh-server=%{thisver}
+               end
+       end
+       
+       package openssh-clients
+               summary = OpenSSH client applications.
+               description = %{summary}
+       
+               files
+                       /etc/ssh/ssh_config
+                       /usr/bin/scp
+                       /usr/bin/sftp
+                       /usr/bin/slogin
+                       /usr/bin/ssh
+                       /usr/bin/ssh-add
+                       /usr/bin/ssh-agent
+                       /usr/bin/ssh-keyscan
+                       /usr/lib/openssh/ssh-pkcs11-helper
+                       /usr/share/man/cat1/scp.1
+                       /usr/share/man/cat1/sftp.1
+                       /usr/share/man/cat1/slogin.1
+                       /usr/share/man/cat1/ssh-add.1
+                       /usr/share/man/cat1/ssh-agent.1
+                       /usr/share/man/cat1/ssh-keyscan.1
+                       /usr/share/man/cat1/ssh.1
+                       /usr/share/man/cat5/ssh_config.5
+                       /usr/share/man/cat8/ssh-pkcs11-helper.8
+               end
+       end
+       
+       package openssh-server
+               summary = OpenSSH server applications.
+               description = %{summary}
+       
+               # /usr/bin/ssh-keygen is needed to generate keys for the ssh server.
+               requires = /usr/bin/ssh-keygen
+       
+               files
+                       /etc/pam.d/sshd
+                       /etc/ssh/moduli
+                       /etc/ssh/sshd_config
+                       /lib/systemd/system/openssh.service
+                       /usr/lib/openssh/sftp-server
+                       /usr/lib/openssh/ssh-keygen
+                       /usr/sbin/sshd
+                       /usr/share/man/cat5/sshd_config.5*
+                       /usr/share/man/cat5/moduli.5*
+                       /usr/share/man/cat8/sshd.8*
+                       /usr/share/man/cat8/sftp-server.8*
+                       /var/lib/sshd
+               end
+       
+               script postin
+                       # Create unprivileged user and group.
+                       getent group sshd || groupadd -r sshd
+                       getent passwd sshd || useradd -r -g sshd \
+                               -d /var/lib/sshd -s /sbin/nologin sshd
+       
+                       systemctl --system daemon-reload
+                       systemctl enable openssh.service
+               end
+       
+               #script postup = postin
+       end
+end
index 95c388ecc659fa509cfbe972a329c309c87ceafa..fd66c78002ad4ec7392e36306ef0878324364ae7 100644 (file)
@@ -1,74 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = openssl
+version    = 1.0.0d
+release    = 3
 
-PKG_NAME       = openssl
-PKG_VER        = 1.0.0d
-PKG_REL        = 3
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = System/Libraries
+url        = http://www.openssl.org/
+license    = OpenSSL
+summary    = A general purpose cryptography library with TLS implementation.
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.openssl.org/
-PKG_LICENSE    = OpenSSL
-PKG_SUMMARY    = A general purpose cryptography library with TLS implementation. 
-
-PKG_BUILD_DEPS+= bc gnutls-devel perl zlib-devel
-
-define PKG_DESCRIPTION
-       The OpenSSL toolkit provides support for secure communications between \
-       machines. OpenSSL includes a certificate management tool and shared \
+description
+       The OpenSSL toolkit provides support for secure communications between
+       machines. OpenSSL includes a certificate management tool and shared
        libraries which provide various cryptographic algorithms and protocols.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  =
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+build
+       requires
+               bc
+               gnutls-devel
+               perl
+               zlib-devel
+       end
 
-ifneq "$(MACHINE)" "i686"
-       SSL_ARCH = no-asm 386 # 386 implies no-sse2
-endif
+       prepare_cmds
+               find crypto/ -name Makefile -exec \
+                       sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && find crypto/ -name Makefile -exec \
-               sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
+               # # Modify the various perl scripts to reference perl in the right location.
+               perl util/perlpath.pl /usr/bin
 
-       # # Modify the various perl scripts to reference perl in the right location.
-       cd $(DIR_APP) && perl util/perlpath.pl /usr/bin
+               # Generate a table with the compile settings for my perusal.
+               touch Makefile
+               make TABLE PERL=/usr/bin/perl
+       end
 
-       # Generate a table with the compile settings for my perusal.
-       cd $(DIR_APP) && touch Makefile
-       cd $(DIR_APP) && make TABLE PERL=/usr/bin/perl
-endef
+       if "%{DISTRO_ARCH}" == "i686"
+               SSL_ARCH = no-asm 386 # 386 implies no-sse2
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && \
+       build
                ./Configure \
                        --prefix=/usr \
                        --openssldir=/etc/pki/tls \
                        --enginesdir=/usr/lib/openssl/engines \
-                       linux-elf $(SSL_ARCH) \
+                       linux-elf \
                        shared \
                        zlib-dynamic \
                        enable-camellia \
@@ -79,39 +61,48 @@ define STAGE_BUILD
                        no-idea \
                        no-mdc2 \
                        no-rc5 \
-                       -DSSL_FORBID_ENULL
+                       -DSSL_FORBID_ENULL \
+                        %{SSL_ARCH}
+
+               # Build.
+               make depend all build-shared RPM_OPT_FLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS}
 
-       # Build.
-       cd $(DIR_APP) && make depend all build-shared RPM_OPT_FLAGS="$(CFLAGS)" #$(PARALLELISMFLAGS)
+               # Generate hashes for the included certs.
+               make rehash build-shared
+       end
 
-       # Generate hashes for the included certs.
-       cd $(DIR_APP) && make rehash build-shared
-endef
+       test
+               make test
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make test
-endef
+       install
+               make install build-shared INSTALL_PREFIX=%{BUILDROOT}
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install build-shared INSTALL_PREFIX=$(BUILDROOT)
+               mkdir -pv %{BUILDROOT}/lib
+               mv -vf %{BUILDROOT}/usr/lib/lib{crypto,ssl}.so.* %{BUILDROOT}/lib
+               ln -svf ../../lib/libcrypto.so.10 %{BUILDROOT}/usr/lib/libcrypto.so
+               ln -svf ../../lib/libssl.so.10 %{BUILDROOT}/usr/lib/libssl.so
 
-       -mkdir -pv $(BUILDROOT)/lib
-       mv -vf $(BUILDROOT)/usr/lib/lib{crypto,ssl}.so.* $(BUILDROOT)/lib
-       ln -svf ../../lib/libcrypto.so.10 $(BUILDROOT)/usr/lib/libcrypto.so
-       ln -svf ../../lib/libssl.so.10 $(BUILDROOT)/usr/lib/libssl.so
+               # Install manpages do right place
+               mkdir -pv %{BUILDROOT}/usr/share
+               mv -v %{BUILDROOT}/etc/pki/tls/man %{BUILDROOT}/usr/share/
 
-       # Install manpages do right place
-       -mkdir -pv $(BUILDROOT)/usr/share
-       mv -v $(BUILDROOT)/etc/pki/tls/man $(BUILDROOT)/usr/share/
+               mkdir -pv %{BUILDROOT}/usr/lib/openssl
+               mv -v %{BUILDROOT}/usr/lib/engines %{BUILDROOT}/usr/lib/openssl
 
-       -mkdir -pv $(BUILDROOT)/usr/lib/openssl
-       mv -v $(BUILDROOT)/usr/lib/engines $(BUILDROOT)/usr/lib/openssl
+               mkdir -pv %{BUILDROOT}/etc/pki/CA/private
+               chmod -v 700 -R %{BUILDROOT}/etc/pki/CA
 
-       -mkdir -pv $(BUILDROOT)/etc/pki/CA/private
-       chmod -v 700 -R $(BUILDROOT)/etc/pki/CA
+               mkdir -pv %{BUILDROOT}/etc/pki/tls
+               install -m 0644 %{DIR_SOURCE}/openssl.cnf %{BUILDROOT}/etc/pki/tls
+               cp -v -r certs %{BUILDROOT}/etc/pki/tls
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/etc/pki/tls
-       install -m 0644 $(DIR_SOURCE)/openssl.cnf $(BUILDROOT)/etc/pki/tls
-       cd $(DIR_APP) && cp -v -r certs $(BUILDROOT)/etc/pki/tls
-endef
+packages
+       package %{name}
 
+       package %{name}-devel
+               template DEVEL
+       end
+end
index cbcc9a0783854e1415baa528ba8bdd5e6edafcd4..6da76f629d8788c9e2541896cd99cca933693827 100644 (file)
@@ -1,73 +1,60 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = openvpn
-PKG_VER        = 2.2-RC2
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/VPN
-PKG_URL        = http://openvpn.net/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A full-featured SSL VPN solution.
+name       = openvpn
+version    = 2.2-RC2
+release    = 1
 
-PKG_BUILD_DEPS+= lzo-devel openssl-devel pam-devel
-PKG_DEPS      += iproute2
+groups     = Networking/VPN
+url        = http://openvpn.net/
+license    = GPLv2
+summary    = A full-featured SSL VPN solution.
 
-define PKG_DESCRIPTION
-       OpenVPN is a robust and highly flexible tunneling application that uses all \
-       of the encryption, authentication, and certification features of the \
-       OpenSSL library to securely tunnel IP networks over a single UDP or TCP \
-       port. It can use the Marcus Franz Xaver Johannes Oberhumer's LZO library \
+description
+       OpenVPN is a robust and highly flexible tunneling application that uses all
+       of the encryption, authentication, and certification features of the
+       OpenSSL library to securely tunnel IP networks over a single UDP or TCP
+       port. It can use the Marcus Franz Xaver Johannes Oberhumer's LZO library
        for compression.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PLUGINS        = auth-pam down-root
-
-define STAGE_BUILD
-       cd $(DIR_APP) && \
-               ./configure \
-                       --prefix=/usr \
-                       --enable-pthread \
-                       --enable-password-save \
-                       --enable-iproute2
-
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-       cd $(DIR_APP) && for plugin in $(PLUGINS); do \
-               make -C plugin/$$plugin; \
-       done
-endef
-
-define STAGE_INSTALL_CMDS
-       mkdir -pv $(BUILDROOT)/usr/lib/$(PKG_NAME)/plugin/lib
-       cd $(DIR_APP) && for plugin in $(PLUGINS); do \
-               install -m 0755 plugin/$$plugin/openvpn-$$plugin.so \
-                       $(BUILDROOT)/usr/lib/$(PKG_NAME)/plugin/lib/openvpn-$$plugin.so; \
-        done
-       -mkdir -pv $(BUILDROOT)/var/run/$(PKG_NAME)
-endef
+end
+
+source_dl  =
+
+PLUGINS    = auth-pam down-root
+
+build
+       requires
+               lzo-devel
+               openssl-devel
+               pam-devel
+       end
+
+       configure_options += \
+               --enable-pthread \
+               --enable-password-save \
+               --enable-iproute2
+
+       build_cmds
+               for plugin in %{PLUGINS}; do
+                       make -C plugin/$plugin
+               done
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib/%{name}/plugin/lib
+               for plugin in %{PLUGINS}; do
+                       install -m 0755 plugin/$plugin/openvpn-$plugin.so \
+                               %{BUILDROOT}/usr/lib/%{name}/plugin/lib/openvpn-$plugin.so
+               done
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       iproute2
+               end
+       end
+end
index 32c924d84896b09f5851f7f02e9d7c2f251b4eaf..25b013c0e4adef6c3df7155d6bc5af6fabcf0eee 100644 (file)
@@ -1,62 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = os-prober
-PKG_VER        = 1.38
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://joey.kitenet.net/code/os-prober/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = Utility to detect other OSes on a set of drives.
+name       = os-prober
+version    = 1.38
+release    = 1
 
-PKG_BUILD_DEPS+= dmraid-devel libdevmapper-devel libudev-devel \
-       libuuid-devel
+groups     = Development/Tools
+url        = http://joey.kitenet.net/code/os-prober/
+license    = GPL
+summary    = Utility to detect other OSes on a set of drives.
 
-define PKG_DESCRIPTION
+description
        os-prober is a spinoff of debian-installer. One of the installer's features \
        is that it can probe disks on the system for other operating systems, and \
        add them to the boot loader, so that installing Debian doesn't make your \
        other installed OS hard to boot.
-endef
-
-THISAPP        = $(PKG_NAME)_$(PKG_VER)
-PKG_TARBALL    = $(THISAPP).tar.gz
-DIR_APP        = $(DIR_SRC)/$(PKG_NAME)
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" CC=gcc $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/{bin,lib/os-prober,share/os-prober}
-       cd $(DIR_APP) && cp -vf common.sh $(BUILDROOT)/usr/share/os-prober/common.sh
-       cd $(DIR_APP) && cp -vf newns $(BUILDROOT)/usr/lib/os-prober/
-       cd $(DIR_APP) && cp -vrf {linux-boot,os}-probes $(BUILDROOT)/usr/lib/
-       cd $(DIR_APP) && cp -vf {linux-boot,os}-prober $(BUILDROOT)/usr/bin/
-       chmod -v 755 $(BUILDROOT)/usr/bin/{linux-boot,os}-prober
-endef
+end
+
+thisapp    = %{name}_%{version}
+source_dl  =
+
+build
+       requires
+               dmraid-devel
+               libdevmapper-devel
+               libudev-devel
+               libuuid-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/%{name}
+
+       build
+               make CFLAGS="%{CFLAGS}" CC=gcc %{PARALLELISMFLAGS}
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/{bin,lib/os-prober,share/os-prober}
+               cp -vf common.sh %{BUILDROOT}/usr/share/os-prober/common.sh
+               cp -vf newns %{BUILDROOT}/usr/lib/os-prober/
+               cp -vrf {linux-boot,os}-probes %{BUILDROOT}/usr/lib/
+               cp -vf {linux-boot,os}-prober %{BUILDROOT}/usr/bin/
+               chmod -v 755 %{BUILDROOT}/usr/bin/{linux-boot,os}-prober
+       end
+end
+
+packages
+       package %{name}
+end
index f045f5015a79899674553e4efce00d864c01d94b..7bd7b235989076bd6355f94f8fb64114f5581f68 100644 (file)
@@ -1,50 +1,33 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = p11-kit
-PKG_VER        = 0.3
-PKG_REL        = 1
+name       = p11-kit
+version    = 0.3
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://p11-glue.freedesktop.org/p11-kit.html
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Provides a way to load and enumerate PKCS#11 modules. 
+groups     = System/Libraries
+url        = http://p11-glue.freedesktop.org/p11-kit.html
+license    = BSD
+summary    = Provides a way to load and enumerate PKCS#11 modules.
 
-#PKG_BUILD_DEPS+=
-
-define PKG_DESCRIPTION
+description
        Provides a way to load and enumerate PKCS#11 modules. Provides a standard
        configuration setup for installing PKCS#11 modules in such a way that they're
        discoverable.
 
        Also solves problems with coordinating the use of PKCS#11 by different
        components or libraries living in the same process.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index fadcd9d964bf7595aa9c787d1800256462fea38d..883cba131e2c8e526c3006dd3f14545a0c401a58 100644 (file)
@@ -1,72 +1,67 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pakfire
-PKG_VER        = 0.9.6
-PKG_REL        = 1
+name       = pakfire
+version    = 0.9.6
+release    = 1
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Base System/Packaging
-PKG_URL        = http://www.ipfire.org/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = Package installer/updater.
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = System/Packaging
+url        = http://www.ipfire.org/
+license    = GPLv3+
+summary    = Package installer/updater.
 
-PKG_BUILD_DEPS+= \
-       intltool \
-       libsolv-devel \
-       python-devel \
-       python-distutils-extra
-
-PKG_DEPS += \
-       pyliblzma \
-       python-progressbar \
-       python-urlgrabber \
-       pyxattr \
-       system-release
-
-define PKG_DESCRIPTION
-       Pakfire optains package lists from the mirrors and can install and update \
+description
+       Pakfire optains package lists from the mirrors and can install and update
        packages.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               intltool
+               libsolv-devel
+               python-devel
+               python-distutils-extra
+       end
 
-export CFLAGS += -fno-strict-aliasing
+       CFLAGS += -fno-strict-aliasing
 
-define STAGE_TEST
-       # Check, if the binary module is loadable.
-       cd $(DIR_APP)/build/lib*/pakfire/ && python -c "import _pakfire"
-endef
+       test
+               # Check, if the binary module is loadable.
+               cd %{DIR_APP}/build/lib*/pakfire/ && python -c "import _pakfire"
+       end
+end
 
-# Build package
+packages
+       package %{name}
+               groups += Base
 
-PKG_PACKAGES  += $(PKG_NAME)-build
+               requires
+                       pyliblzma
+                       python-progressbar
+                       python-urlgrabber
+                       pyxattr
+                       system-release
+               end
+       end
+       
+       package %{name}-build
+               summary = The pakfire builder.
+               description
+                       The tools that are needed to build new pakfire packages.
+               end
+               groups += Build
+       
+               requires
+                       %{name}=%{thisver}
+               end
 
-PKG_SUMMARY-$(PKG_NAME)-build = The pakfire builder.
-PKG_DESCRIPTION-$(PKG_NAME)-build = The tools that are needed to build new \
-       pakfire packages.
-PKG_DEPS-$(PKG_NAME)-build += pakfire=$(THISVER)
-PKG_FILES-$(PKG_NAME)-build = /usr/bin/pakfire-build
+               files
+                       /usr/bin/pakfire-build
+               end
+       end
+end
index 45f88c73b7bad0d9c97ac7eabc69e2c4170a668a..a883768322f1c84b21045b431197aafbe91e7e4c 100644 (file)
@@ -1,74 +1,71 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = pam
+version    = 1.1.0
+release    = 2
+thisapp    = Linux-PAM-%{version}
 
-PKG_NAME       = Linux-PAM
-PKG_VER        = 1.1.0
-PKG_REL        = 2
+groups     = System/Base
+url        = http://www.us.kernel.org/pub/linux/libs/pam/index.html
+license    = BSD and GPLv2+ and BSD with advertising
+summary    = An extensible library which provides authentication for applications.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.us.kernel.org/pub/linux/libs/pam/index.html
-PKG_LICENSE    = BSD and GPLv2+ and BSD with advertising
-PKG_SUMMARY    = An extensible library which provides authentication for applications.
-
-PKG_BUILD_DEPS+= audit-devel bison cracklib-devel flex libselinux-devel
-PKG_DEPS-pam  += pam_ldap
-
-define PKG_DESCRIPTION
-       PAM (Pluggable Authentication Modules) is a system security tool that \
-       allows system administrators to set authentication policy without \
+description
+       PAM (Pluggable Authentication Modules) is a system security tool that
+       allows system administrators to set authentication policy without
        having to recompile programs that handle authentication.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               audit-devel
+               bison
+               cracklib-devel
+               flex
+               libselinux-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+       configure_options += \
+               --libdir=/lib \
+               --sbindir=/lib/security \
+               --enable-securedir=/lib/security \
+               --docdir=/usr/share/doc/Linux-PAM-%{version} \
+               --enable-read-both-confs
 
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-       --sbindir=/lib/security \
-        --enable-securedir=/lib/security \
-        --docdir=/usr/share/doc/Linux-PAM-$(PKG_VER) \
-        --enable-read-both-confs
+       install_cmds
+               mkdir -pv %{BUILDROOT}/sbin
+               chmod -v 4755 %{BUILDROOT}/lib/security/unix_chkpwd
+               mv -v %{BUILDROOT}/lib/security/pam_tally %{BUILDROOT}/sbin
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/sbin
-       chmod -v 4755 $(BUILDROOT)/lib/security/unix_chkpwd
-       mv -v $(BUILDROOT)/lib/security/pam_tally $(BUILDROOT)/sbin
+               mkdir -pv %{BUILDROOT}/usr/lib
+               for LINK in libpam{,c,_misc}.so; do \
+                       ln -v -sf ../../lib/$(readlink %{BUILDROOT}/lib/${LINK}) \
+                               %{BUILDROOT}/usr/lib/${LINK} && \
+                       rm -v %{BUILDROOT}/lib/${LINK}; \
+               done
 
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       for LINK in libpam{,c,_misc}.so; do \
-               ln -v -sf ../../lib/$$(readlink $(BUILDROOT)/lib/$${LINK}) \
-                       $(BUILDROOT)/usr/lib/$${LINK} && \
-               rm -v $(BUILDROOT)/lib/$${LINK}; \
-       done
+               #useradd -D -b /home
+               #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
+               mkdir -pv %{BUILDROOT}/etc/security
+               install -v -m644 %{DIR_SOURCE}/pam_env.conf %{BUILDROOT}/etc/security/pam_env.conf
+               cp -vf %{DIR_SOURCE}/{login.defs,securetty} %{BUILDROOT}/etc
+       end
+end
 
-       #useradd -D -b /home
-       #sed -i 's/yes/no/' $(BUILDROOT)/etc/default/useradd
-       -mkdir -pv $(BUILDROOT)/etc/security
-       install -v -m644 $(DIR_SOURCE)/pam_env.conf $(BUILDROOT)/etc/security/pam_env.conf
-       cp -vf $(DIR_SOURCE)/{login.defs,securetty} $(BUILDROOT)/etc
-endef
+packages
+       package %{name}
+               requires
+                       pam_ldap
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index f12b7275eee3d325341d339e6a69e238e6d547cd..f7ae56514a9664f51f483b610083678b3fcb96c4 100644 (file)
@@ -1,95 +1,85 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pam_ldap
-PKG_VER        = 186
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.padl.com/OSS/pam_ldap.html
-PKG_LICENSE    = GPL and LGPL
-PKG_SUMMARY    = A pam/ldap module that supports password changes.
+name       = pam_ldap
+version    = 186
+release    = 1
 
-PKG_BUILD_DEPS+= autoconf automake openldap-devel pam-devel
+groups     = System/Base
+url        = http://www.padl.com/OSS/pam_ldap.html
+license    = GPL and LGPL
+summary    = A pam/ldap module that supports password changes.
 
-define PKG_DESCRIPTION
+description
        The pam_ldap module provides the means for Solaris and Linux servers \
        and workstations to authenticate against LDAP directories, and to \
        change their passwords in the directory.
-endef
+end
 
 # Always change this if the nss_ldap package has been updated!
 NSS_LDAP_VER = 265
 
-PKG_TARBALL    = $(THISAPP).tar.gz
-PKG_OBJECTS += nss_ldap-$(NSS_LDAP_VER).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libdir=/lib \
-       --mandir=/usr/share/man \
-       --with-ldap-conf-file=/etc/pam_ldap.conf \
-       --with-ldap-secret-file=/etc/pam_ldap.secret
-
-define STAGE_PREPARE_CMDS
-       # Extract source tarball of nss_ldap
-       cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/nss_ldap-$(NSS_LDAP_VER).tar.gz
-       
-       # Copy needed files from nss_ldap
-       cd $(DIR_APP) && cp -av $(DIR_SRC)/nss_ldap-$(NSS_LDAP_VER)/resolve.c .
-       cd $(DIR_APP) && cp -av $(DIR_SRC)/nss_ldap-$(NSS_LDAP_VER)/resolve.h .
-       cd $(DIR_APP) && cp -av $(DIR_SRC)/nss_ldap-$(NSS_LDAP_VER)/snprintf.c .
-       cd $(DIR_APP) && cp -av $(DIR_SRC)/nss_ldap-$(NSS_LDAP_VER)/snprintf.h .
-       
-       cd $(DIR_APP) && sed -i -e 's,^ldap.conf$$,pam_ldap.conf,g' *.5
-       cd $(DIR_APP) && sed -i -e 's,^/etc/ldap\.,/etc/pam_ldap.,g' *.5
-       cd $(DIR_APP) && sed -i -e 's,in ldap.co$nf,in pam_ldap.conf,g' *.5
-       cd $(DIR_APP) && sed -i -e 's,of ldap.conf,of pam_ldap.conf,g' *.5
-       cd $(DIR_APP) && sed -i -e 's,ldap.secret,pam_ldap.secret,g' *.5
-       cd $(DIR_APP) && sed -i -e 's,(ldap.conf),(pam_ldap.conf),g' *.5
-
-       cd $(DIR_APP) && autoreconf -f -i
-endef
-
-STAGE_BUILD_TARGETS += LDFLAGS="-Wl,-z,nodelete"
-
-define STAGE_INSTALL
-       # Create directory layout 
-       mkdir -pv $(BUILDROOT)/{etc,/lib/security,/usr/lib}
-
-       # Prevent to install an ldap.conf
-       touch $(BUILDROOT)/etc/ldap.conf
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-       rm -rvf $(BUILDROOT)/etc/ldap.conf
-       
-       # Install the default configuration file and change padl to example
-       cd $(DIR_APP) && sed 's|dc=padl|dc=example|g' ldap.conf > $(BUILDROOT)/etc/pam_ldap.conf
-       chmod 644 $(BUILDROOT)/etc/pam_ldap.conf
-
-       # Create an empty ldap.secret file
-       touch $(BUILDROOT)/etc/pam_ldap.secret
-endef
+source_dl  =
+sources   += nss_ldap-%{NSS_LDAP_VER}.tar.gz
+
+build
+       requires
+               autoconf
+               automake
+               openldap-devel
+               pam-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libdir=/lib \
+               --mandir=/usr/share/man \
+               --with-ldap-conf-file=/etc/pam_ldap.conf \
+               --with-ldap-secret-file=/etc/pam_ldap.secret
+
+       prepare_cmds
+               # Extract source tarball of nss_ldap
+               cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/nss_ldap-%{NSS_LDAP_VER}.tar.gz
+
+               # Copy needed files from nss_ldap
+               cd %{DIR_APP} && cp -av %{DIR_SRC}/nss_ldap-%{NSS_LDAP_VER}/resolve.c .
+               cp -av %{DIR_SRC}/nss_ldap-%{NSS_LDAP_VER}/resolve.h .
+               cp -av %{DIR_SRC}/nss_ldap-%{NSS_LDAP_VER}/snprintf.c .
+               cp -av %{DIR_SRC}/nss_ldap-%{NSS_LDAP_VER}/snprintf.h .
+
+               sed -i -e 's,^ldap.conf$$,pam_ldap.conf,g' *.5
+               sed -i -e 's,^/etc/ldap\.,/etc/pam_ldap.,g' *.5
+               sed -i -e 's,in ldap.co$nf,in pam_ldap.conf,g' *.5
+               sed -i -e 's,of ldap.conf,of pam_ldap.conf,g' *.5
+               sed -i -e 's,ldap.secret,pam_ldap.secret,g' *.5
+               sed -i -e 's,(ldap.conf),(pam_ldap.conf),g' *.5
+
+               autoreconf -f -i
+       end
+
+       make_build_targets += \
+               LDFLAGS="-Wl,-z,nodelete"
+
+       install
+               # Create directory layout
+               mkdir -pv %{BUILDROOT}/{etc,/lib/security,/usr/lib}
+
+               # Prevent to install an ldap.conf
+               touch %{BUILDROOT}/etc/ldap.conf
+               make install DESTDIR=%{BUILDROOT}
+               rm -rvf %{BUILDROOT}/etc/ldap.conf
+
+               # Install the default configuration file and change padl to example
+               sed 's|dc=padl|dc=example|g' ldap.conf > %{BUILDROOT}/etc/pam_ldap.conf
+               chmod 644 %{BUILDROOT}/etc/pam_ldap.conf
+
+               # Create an empty ldap.secret file
+               touch %{BUILDROOT}/etc/pam_ldap.secret
+       end
+end
+
+packages
+       package %{name}
+end
index 3a5934bdac84779b0b4ed093e6ccbb114076bbb9..d189ce1ba78d3af3566815de37779c6093a8556b 100644 (file)
@@ -1,52 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pango
-PKG_VER        = 1.29.3
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.pango.org/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = System for layout and rendering of internationalized text.
+name       = pango
+version    = 1.29.3
+release    = 1
 
-PKG_BUILD_DEPS+= cairo-devel fontconfig-devel freetype-devel gcc-c++ \
-       glib2-devel perl pkg-config
+groups     = System/Libraries
+url        = http://www.pango.org/
+license    = LGPLv2+
+summary    = System for layout and rendering of internationalized text.
 
-PKG_DEPS-$(PKG_NAME)-devel += glib2-devel
-
-define PKG_DESCRIPTION
+description
        Pango is a library for laying out and rendering of text, with an \
        emphasis on internationalization.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.xz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.xz
+
+build
+       requires
+               cairo-devel
+               fontconfig-devel
+               freetype-devel
+               gcc-c++
+               glib2-devel
+               perl
+               pkg-config
+       end
+
+       configure_options += \
+               --sysconfdir=/etc
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires
+                       glib2-devel
+               end
+       end
+end
index 72543cb60c3d7d820ef4c0fa33a308106c35ab9e..d419fc9d04cc280bfb83f9f58ac9d77192506e75 100644 (file)
@@ -1,61 +1,55 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = parted
-PKG_VER        = 2.1
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://www.gnu.org/software/parted
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The GNU disk partition manipulation program.
+name       = parted
+version    = 2.1
+release    = 2
 
-PKG_BUILD_DEPS+= libdevmapper-devel libselinux-devel libsepol-devel \
-       libuuid-devel ncurses-devel pkg-config readline-devel
+groups     = Applications/System
+url        = http://www.gnu.org/software/parted
+license    = GPLv3+
+summary    = The GNU disk partition manipulation program.
 
-define PKG_DESCRIPTION
-       The GNU Parted program allows you to create, destroy, resize, move, \
-       and copy hard disk partitions. Parted can be used for creating space \
-       for new operating systems, reorganizing disk usage, and copying data \
+description
+       The GNU Parted program allows you to create, destroy, resize, move,
+       and copy hard disk partitions. Parted can be used for creating space
+       for new operating systems, reorganizing disk usage, and copying data
        to new hard disks.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-       --enable-selinux
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
-       rm -rf $(BUILDROOT)/lib/libparted{,-2.1}.so
-       ln -svf ../../lib/libparted-$(PKG_VER).so.0 $(BUILDROOT)/usr/lib/libparted-$(PKG_VER).so
-       ln -svf libparted-$(PKG_VER).so $(BUILDROOT)/usr/lib/libparted.so
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libdevmapper-devel
+               libselinux-devel
+               libsepol-devel
+               libuuid-devel
+               ncurses-devel
+               pkg-config
+               readline-devel
+       end
+
+       configure_options += \
+               --libdir=/lib \
+               --enable-selinux
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+               rm -rf %{BUILDROOT}/lib/libparted{,-2.1}.so
+               ln -svf ../../lib/libparted-%{version}.so.0 %{BUILDROOT}/usr/lib/libparted-%{version}.so
+               ln -svf libparted-%{version}.so %{BUILDROOT}/usr/lib/libparted.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index d506c19a55fb9f1ecc170f3011529b9864206e2e..5d2e2ebda07dded02ddf2aaba55fc69f41a4b2a1 100644 (file)
@@ -1,53 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = passwd
-PKG_VER        = 0.76
-PKG_REL        = 1
+name       = passwd
+version    = 0.76
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Base
-PKG_URL        = http://fedorahosted.org/passwd
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = An utility for setting or changing passwords using PAM.
+groups     = Base System/Base
+url        = http://fedorahosted.org/passwd
+license    = BSD
+summary    = An utility for setting or changing passwords using PAM.
 
-PKG_BUILD_DEPS+= audit-devel glib2-devel libuser-devel pam-devel pkg-config \
-       libselinux-devel popt-devel
-
-define PKG_DESCRIPTION
-       This package contains a system utility (passwd) which sets \
-       or changes passwords, using PAM (Pluggable Authentication \
+description
+       This package contains a system utility (passwd) which sets
+       or changes passwords, using PAM (Pluggable Authentication
        Modules) library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS +=\
-       --with-selinux \
-       --with-audit \
-       --disable-static
-
-STAGE_BUILD_TARGETS = DEBUG= RPM_OPT_FLAGS="$(CFLAGS)"
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               audit-devel
+               glib2-devel
+               libuser-devel
+               pam-devel
+               pkg-config
+               libselinux-devel
+               popt-devel
+       end
+
+       configure_options +=\
+               --with-selinux \
+               --with-audit \
+               --disable-static
+
+       make_build_targets += \
+               DEBUG= RPM_OPT_FLAGS="%{CFLAGS}"
+end
+
+packages
+       package %{name}
+end
index c42c42aeb2f7c26fec7b9f0624a9fdb4fb6fabe2..642be7d24fcf15d60a2be9ddb9c3d5ef16b6a91c 100644 (file)
@@ -1,57 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = patch
-PKG_VER        = 2.6.1
-PKG_REL        = 1
+name       = patch
+version    = 2.6.1
+release    = 1
 
-PKG_BUILD_DEPS+= ed libselinux-devel pkg-config
+groups     = Build Development/Tools
+url        = http://www.gnu.org/software/patch/patch.html
+license    = GPLv2+
+summary    = Utility for modifying/upgrading files.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.gnu.org/software/patch/patch.html
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Utility for modifying/upgrading files.
-
-define PKG_DESCRIPTION
+description
        The patch program applies diff files to originals. The diff \
        command is used to compare an original to a changed file.\
         Diff lists the changes made to the file. A person who has \
        the original file can then use the patch command with the \
        diff file to add the changes to their original file.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               ed
+               libselinux-devel
+               pkg-config
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       CFLAGS += -D_GNU_SOURCE
 
-CFLAGS       += -D_GNU_SOURCE
+       test
+               make check
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+       install
+               make install prefix=%{BUILDROOT}/usr
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install prefix=$(BUILDROOT)/usr
-endef
+packages
+       package %{name}
+end
index f6dc4c98c3813ab1faf1bbfe5cc5730cbbab28fb..4f9debb4106d042e3c9e3ad058da2b78698b3245 100644 (file)
@@ -1,47 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = pax-utils
+version    = 0.1.19
+release    = 1
 
-PKG_NAME       = pax-utils
-PKG_VER        = 0.1.19
-PKG_REL        = 0
+groups     = Security/Tools
+url        = http://www.gentoo.org/proj/en/hardened/pax-utils.xml
+license    = GPLv2+
+summary    = Utilities for checking PaX features.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Security/Tools
-PKG_URL        = http://www.gentoo.org/proj/en/hardened/pax-utils.xml
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Utilities for checking PaX features.
+description
+       This package contains several utilities for checking PaX features.
+end
 
-PKG_BUILD_DEPS+= libcap-devel
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-define PKG_DESCRIPTION
-       This package contains several utilities for checking PaX features.
-endef
+build
+       requires
+               libcap-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+       build
+               make CFLAGS="%{CFLAGS}" USE_CAP=yes %{PARALLELISMFLAGS}
+       end
+end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make CFLAGS="$(CFLAGS)" USE_CAP=yes $(PARALLELISMFLAGS)
-endef
+packages
+       package %{name}
+end
index 855a2849eb6c8a964d2af1a9fe758ead0c611818..ed11ec4af73e70259b3a6b1a56f497d64be2439f 100644 (file)
@@ -1,48 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = paxctl
+version    = 0.5
+release    = 1
 
-PKG_NAME       = paxctl
-PKG_VER        = 0.5
-PKG_REL        = 0
+groups     = Applications/System
+url        = http://pax.grsecurity.net/
+license    = GPLv2
+summary    = Application to control PaX flags.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://pax.grsecurity.net/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Application to control PaX flags.
+description
+       paxctl may be used to control PaX flags on a per-binary basis. PaX
+       is a set of kernel security patches to enhance a system's security.
+end
 
-PKG_BUILD_DEPS+= m4
+source_dl  =
 
-define PKG_DESCRIPTION
-       paxctl may be used to control PaX flags on a per-binary basis. PaX \
-       is a set of kernel security patches to enhance a system's security.
-endef
+build
+       requires
+               m4
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               make %{PARALLELISMFLAGS} CFLAGS="%{CFLAGS}"
+       end
+end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) CFLAGS="$(CFLAGS)"
-endef
+packages
+       package %{name}
+end
index cde2a702c0111f463c0892bc4784f6ebd8e30e5b..60840aa09d04ea1a669ea0aa85a67a62a1ea96c9 100644 (file)
@@ -1,56 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = paxtest
+version    = 0.9.9
+release    = 1
 
-include $(PKGROOT)/Include
+groups     = Security/Tools
+url        = http://pax.grsecurity.org/
+license    = GPLv2+
+summary    = Utilities for testing PaX configuration.
 
-PKG_NAME       = paxtest
-PKG_VER        = 0.9.9
-PKG_REL        = 0
+description
+       This package contains several files for checking the PaX configuration
+       and checks if it all works correctly.
+end
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Security/Tools
-PKG_URL        = http://pax.grsecurity.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Utilities for testing PaX configuration.
+source_dl  =
+sources    = %{thisapp}.tgz
 
-define PKG_DESCRIPTION
-       This package contains several files for checking the PaX configuration \
-       and checks if it all works correctly.
-endef
+       build
+               make -f Makefile.psm RUNDIR=/usr/lib/paxtest \
+                       %{PARALLELISMFLAGS}
+       end
 
-PKG_TARBALL    = $(THISAPP).tgz
+       install
+               make -f Makefile.psm install DESTDIR=%{BUILDROOT} \
+                       RUNDIR=/usr/lib/paxtest BINDIR=/usr/bin
+       end
 
-define QUALITY_AGENT_WHITELIST_EXECSTACK
-       /usr/lib/paxtest
-endef
+       export PKG_REQUIRES_FILTER = shlibtest
+end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make -f Makefile.psm RUNDIR=/usr/lib/paxtest \
-               $(PARALLELISMFLAGS)
-endef
+quality-agent
+       whitelist_execstack
+               /usr/lib/paxtest
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make -f Makefile.psm install DESTDIR=$(BUILDROOT) \
-               RUNDIR=/usr/lib/paxtest BINDIR=/usr/bin
-endef
+packages
+       package %{name}
+end
index f0cf4910d69955cae76d7c9d1a8b304aba2b71b1..16b72f3aa65066d57ecfee8b48bf5161575c3d20 100644 (file)
@@ -1,55 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = pcapy
+version    = 0.10.5
+release    = 1
 
-PKG_NAME       = pcapy
-PKG_VER        = 0.10.5
-PKG_REL        = 0
+groups     = Development/Languages
+url        = http://oss.coresecurity.com/projects/pcapy.html
+license    = ASL 1.1
+summary    = A Python interface to libpcap.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://oss.coresecurity.com/projects/pcapy.html
-PKG_LICENSE    = ASL 1.1
-PKG_SUMMARY    = A Python interface to libpcap.
+description
+       Pcapy is a Python extension module that interfaces with the libpcap
+       packet capture library. Pcapy enables python scripts to capture packets
+       on the network. Pcapy is highly effective when used in conjunction with
+       a packet-handling package such as Impacket, which is a collection of
+       Python classes for constructing and dissecting network packets.
+end
 
-PKG_BUILD_DEPS+= gcc-c++ libpcap-devel python-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       Pcapy is a Python extension module that interfaces with the libpcap \
-       packet capture library. Pcapy enables python scripts to capture packets \
-       on the network. Pcapy is highly effective when used in conjunction with \
-       a packet-handling package such as Impacket, which is a collection of \
-       Python classes for constructing and dissecting network packets.
-endef
+build
+       requires
+               gcc-c++
+               libpcap-devel
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       install
+               python setup.py install -O1 --skip-build --root %{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && python setup.py install -O1 --skip-build --root $(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index 5617812a27e07ef682605b6b7eedce5e8b916df0..360119b0c6981f702f92a211d5f0501be3bb43e9 100644 (file)
@@ -1,61 +1,53 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = pciutils
+version    = 3.1.7
+release    = 1
 
-PKG_NAME       = pciutils
-PKG_VER        = 3.1.7
-PKG_REL        = 1
+groups     = System/Base
+groups-pciutils = Base %{groups}
+url        = http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
+license    = GPLv2+
+summary    = PCI bus related utilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_GROUPS-pciutils = Base $(PKG_GROUPS)
-PKG_URL        = http://atrey.karlin.mff.cuni.cz/~mj/pciutils.shtml
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = PCI bus related utilities.
-
-define PKG_DESCRIPTION
-       The pciutils package contains various utilities for inspecting \
+description
+       The pciutils package contains various utilities for inspecting
        and setting devices connected to the PCI bus.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make SHARED=yes OPT="$(CFLAGS)" PREFIX=/usr \
-               IDSDIR=/usr/share/hwdata ZLIB=no $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make SHARED=yes PREFIX=/usr install DESTDIR=$(BUILDROOT) \
-               IDSDIR=/usr/share/hwdata MANDIR=/usr/share/man
-
-       -mkdir -pv $(BUILDROOT)/usr/include/pci
-       install -v -m 644 $(DIR_APP)/lib/*.h $(BUILDROOT)/usr/include/pci
-
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf libpci.so.3 $(BUILDROOT)/usr/lib/libpci.so
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       build
+               make SHARED=yes OPT="%{CFLAGS}" PREFIX=/usr \
+                       IDSDIR=/usr/share/hwdata ZLIB=no %{PARALLELISMFLAGS}
+       end
+
+       install
+               make SHARED=yes PREFIX=/usr install DESTDIR=%{BUILDROOT} \
+                       IDSDIR=/usr/share/hwdata MANDIR=/usr/share/man
+
+               mkdir -pv %{BUILDROOT}/usr/include/pci
+               install -v -m 644 %{DIR_APP}/lib/*.h %{BUILDROOT}/usr/include/pci
+
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf libpci.so.3 %{BUILDROOT}/usr/lib/libpci.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 4d7d3fdfb833087b899ad96d861bf22bbc234aa2..b7a9da20b9e70bddafc67621dd043609a67ca888 100644 (file)
@@ -1,60 +1,53 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pcre
-PKG_VER        = 8.12
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.pcre.org/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Perl-compatible regular expression library.
+name       = pcre
+version    = 8.12
+release    = 2
 
-PKG_BUILD_DEPS+= bzip2-devel gcc-c++ pkg-config readline-devel zlib-devel
+groups     = System/Libraries
+url        = http://www.pcre.org/
+license    = BSD
+summary    = Perl-compatible regular expression library.
 
-define PKG_DESCRIPTION
-       Perl-compatible regular expression library. PCRE has its own native \
-       API, but a set of "wrapper" functions that are based on the POSIX \
+description
+       Perl-compatible regular expression library. PCRE has its own native
+       API, but a set of "wrapper" functions that are based on the POSIX
        API are also supplied in the library libpcreposix.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --docdir=/usr/share/doc/pcre-$(PKG_VER) \
-       --enable-utf8 \
-       --enable-pcregrep-libz \
-       --enable-pcregrep-libbz2 \
-       --enable-unicode-properties
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/{,usr/}lib
-       mv -v $(BUILDROOT)/usr/lib/libpcre.so.* $(BUILDROOT)/lib/
-       ln -v -sf ../../lib/libpcre.so.0 $(BUILDROOT)/usr/lib/libpcre.so
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               bzip2-devel
+               gcc-c++
+               pkg-config
+               readline-devel
+               zlib-devel
+       end
+
+       configure_options += \
+               --docdir=/usr/share/doc/pcre-%{version} \
+               --enable-utf8 \
+               --enable-pcregrep-libz \
+               --enable-pcregrep-libbz2 \
+               --enable-unicode-properties
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/{,usr/}lib
+               mv -v %{BUILDROOT}/usr/lib/libpcre.so.* %{BUILDROOT}/lib/
+               ln -v -sf ../../lib/libpcre.so.0 %{BUILDROOT}/usr/lib/libpcre.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 901517b6d3788d493623734120228bf387f96e8e..e8d839d57b32de2a46d6d066da995c8d28b139fe 100644 (file)
@@ -1,69 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pdns-recursor
-PKG_VER        = 3.3
-PKG_REL        = 4
+name       = pdns-recursor
+version    = 3.3
+release    = 4
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/DNS
-PKG_URL        = http://powerdns.com/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A modern, advanced and high performance recursing nameserver.
+groups     = Networking/DNS
+url        = http://powerdns.com/
+license    = GPLv2
+summary    = A modern, advanced and high performance recursing nameserver.
 
-PKG_BUILD_DEPS+= gcc-c++ boost-devel lua-devel
-
-define PKG_DESCRIPTION
-       PowerDNS Recursor is a non authoritative/recursing DNS server. Use this \
+description
+       PowerDNS Recursor is a non authoritative/recursing DNS server. Use this
        package if you need a dns cache for your network.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               gcc-c++
+               boost-devel
+               lua-devel
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \
-               make OPTFLAGS="$(CFLAGS)" #$(PARALLELISMFLAGS)
-endef
+       build
+               LUA=1 LUA_CPPFLAGS_CONFIG= LUA_LIBS_CONFIG=-llua \
+                       make OPTFLAGS="%{CFLAGS}" #%{PARALLELISMFLAGS}
+       end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
-               CONFIGDIR=/etc/$(PKG_NAME)
+       install
+               make install DESTDIR=%{BUILDROOT} \
+                       CONFIGDIR=/etc/%{name}
 
-       # Remove sysvinit file
-       rm -rf $(BUILDROOT)/etc/init.d
+               # Remove sysvinit file
+               rm -rf %{BUILDROOT}/etc/init.d
 
-       # Remove shipped config file
-       rm -rf $(BUILDROOT)/etc/$(PKG_NAME)/recursor.conf-dist
+               # Remove shipped config file
+               rm -rf %{BUILDROOT}/etc/%{name}/recursor.conf-dist
 
-       # Install our default config file
-       cp -vf $(DIR_SOURCE)/recursor.conf $(BUILDROOT)/etc/$(PKG_NAME)/recursor.conf
+               # Install our default config file
+               cp -vf %{DIR_SOURCE}/recursor.conf %{BUILDROOT}/etc/%{name}/recursor.conf
 
-       # Create folder for chroot
-       -mkdir -pv $(BUILDROOT)/var/lib/pdns-recursor
-endef
+               # Create folder for chroot
+               mkdir -pv %{BUILDROOT}/var/lib/pdns-recursor
+       end
+end
 
 # XXX Need to create user and group "pdns-recursor" at installation
 # useradd -r -g pdns-recursor pdns-recursor -d /var/lib/pdns-recursor -s /sbin/nologin
+
+packages
+       package %{name}
+end
index 4e572858ddc18030d68dd8e85ce57bd8efb465c0..39d3edc823d6a6b1f277bb32e5efbfba05b3338f 100644 (file)
@@ -1,69 +1,60 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pdns
-PKG_VER        = 3.0
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/DNS
-PKG_URL        = http://powerdns.com/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A modern, advanced and high performance authoritative-only nameserver.
+name       = pdns
+version    = 3.0
+release    = 1
 
-PKG_BUILD_DEPS+= boost-devel chrpath gcc-c++ lua-devel openldap-devel \
-       sqlite-devel zlib-devel
+groups     = Networking/DNS
+url        = http://powerdns.com/
+license    = GPLv2
+summary    = A modern, advanced and high performance authoritative-only nameserver.
 
-define PKG_DESCRIPTION
-       The PowerDNS Nameserver is a modern, advanced and high performance \
-       authoritative-only nameserver. It is written from scratch and conforms \
-       to all relevant DNS standards documents. \
+description
+       The PowerDNS Nameserver is a modern, advanced and high performance
+       authoritative-only nameserver. It is written from scratch and conforms
+       to all relevant DNS standards documents.
        Furthermore, PowerDNS interfaces with almost any database.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-export CPPFLAGS = -DLDAP_DEPRECATED
-
-PARALLELISMFLAGS =
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc/pdns \
-       --libdir=/usr/lib/powerdns \
-       --with-modules="" \
-       --with-dynmodules="pipe geo ldap gsqlite3" \
-       --with-lua \
-       --disable-static
-
-define STAGE_INSTALL_CMDS
-       chrpath --delete $(BUILDROOT)/usr/bin/pdns_control
-       chrpath --delete $(BUILDROOT)/usr/bin/zone2ldap
-       chrpath --delete $(BUILDROOT)/usr/bin/zone2sql
-       chrpath --delete $(BUILDROOT)/usr/sbin/pdns_server
-       chrpath --delete $(BUILDROOT)/usr/lib/powerdns/*.so
-       chrpath --delete $(BUILDROOT)/usr/bin/dnsreplay
-       chrpath --delete $(BUILDROOT)//usr/bin/pdnssec
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               boost-devel
+               chrpath
+               gcc-c++
+               lua-devel
+               openldap-devel
+               sqlite-devel
+               zlib-devel
+       end
+
+       CPPFLAGS = -DLDAP_DEPRECATED
+
+       PARALLELISMFLAGS =
+
+       configure_options += \
+               --sysconfdir=/etc/pdns \
+               --libdir=/usr/lib/powerdns \
+               --with-modules="" \
+               --with-dynmodules="pipe geo ldap gsqlite3" \
+               --with-lua \
+               --disable-static
+
+       install_cmds
+               chrpath --delete %{BUILDROOT}/usr/bin/pdns_control
+               chrpath --delete %{BUILDROOT}/usr/bin/zone2ldap
+               chrpath --delete %{BUILDROOT}/usr/bin/zone2sql
+               chrpath --delete %{BUILDROOT}/usr/sbin/pdns_server
+               chrpath --delete %{BUILDROOT}/usr/lib/powerdns/*.so
+               chrpath --delete %{BUILDROOT}/usr/bin/dnsreplay
+               chrpath --delete %{BUILDROOT}//usr/bin/pdnssec
+       end
+end
+
+packages
+       package %{name}
+end
index f03ff420d86a56a1b844769607175c25462bbbbf..b853fe0969c7ec6167128de0426aac31961e0cbf 100644 (file)
@@ -1,54 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = perl-HTML-Parser
+version    = 3.68
+release    = 1
 
-include $(PKGROOT)/Include
+groups     = Development/Libratries
+url        = http://search.cpan.org/dist/HTML-Parser/
+license    = GPL+ or Artistic
+summary    = Perl module for parsing HTML.
 
-PKG_NAME       = HTML-Parser
-PKG_VER        = 3.68
-PKG_REL        = 1
+description
+       The HTML-Parser module for perl to parse and extract information from
+       HTML documents, including the HTML::Entities, HTML::HeadParser,
+       HTML::LinkExtor, HTML::PullParser, and HTML::TokeParser modules.
+end
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libratries
-PKG_URL        = http://search.cpan.org/dist/HTML-Parser/
-PKG_LICENSE    = GPL+ or Artistic
-PKG_SUMMARY    = Perl module for parsing HTML.
+source_dl  =
 
-PKG_BUILD_DEPS+= perl-core perl-devel perl(HTML::Tagset) perl(Test::More)
+thisapp    = HTML-Parser-%{version}
 
-define PKG_DESCRIPTION
-       The HTML-Parser module for perl to parse and extract information from \
-       HTML documents, including the HTML::Entities, HTML::HeadParser, \
-       HTML::LinkExtor, HTML::PullParser, and HTML::TokeParser modules.
-endef
+build
+       requires
+               perl-core
+               perl-devel
+               perl(HTML::Tagset)
+               perl(Test::More)
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}"
+               make %{PARALLELISMFLAGS}
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$(CFLAGS)"
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+       test
+               make test
+       end
+end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make test
-endef
+packages
+       package %{name}
+end
index 95af0db63868d1359ea58ebc03df23cb276591ea..105196c4420085911255ac8b948cdf350561afa5 100644 (file)
@@ -1,54 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = perl-HTML-Tagset
+version    = 3.20
+release    = 1
+arch       = noarch
+thisapp    = HTML-Tagset-%{version}
 
-PKG_NAME       = HTML-Tagset
-PKG_VER        = 3.20
-PKG_REL        = 1
-PKG_ARCH       = noarch
+groups     = Development/Libratries
+url        = http://search.cpan.org/dist/HTML-Tagset/
+license    = GPL+ or Artistic
+summary    = HTML::Tagset - data tables useful in parsing HTML.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libratries
-PKG_URL        = http://search.cpan.org/dist/HTML-Tagset/
-PKG_LICENSE    = GPL+ or Artistic
-PKG_SUMMARY    = HTML::Tagset - data tables useful in parsing HTML.
+description
+       This module contains several data tables useful in various kinds of
+       HTML parsing operations, such as tag and entity names.
+end
 
-PKG_BUILD_DEPS+= perl-core perl-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       This module contains several data tables useful in various kinds of \
-       HTML parsing operations, such as tag and entity names.
-endef
+build
+       requires
+               perl-core
+               perl-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               perl Makefile.PL INSTALLDIRS=vendor
+               make %{PARALLELISMFLAGS}
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && perl Makefile.PL INSTALLDIRS=vendor
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+       test
+               make test
+       end
+end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make test
-endef
+packages
+       package %{name}
+end
index 3e133e267d2c1399ab739a443c6af9785438fefd..d70a35bf1a895b86e345b624706b434e7294d346 100644 (file)
@@ -1,54 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = Test-Simple
-PKG_VER        = 0.98
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = Test-Simple
+version    = 0.98
+release    = 1
+arch       = noarch
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libratries
-PKG_URL        = http://search.cpan.org/dist/Test-Simple/
-PKG_LICENSE    = GPL+ or Artistic
-PKG_SUMMARY    = Basic utilities for writing tests.
+groups     = Development/Libratries
+url        = http://search.cpan.org/dist/Test-Simple/
+license    = GPL+ or Artistic
+summary    = Basic utilities for writing tests.
 
-PKG_BUILD_DEPS+= perl-core perl-devel perl(Test::Harness)
-
-define PKG_DESCRIPTION
-       This package provides the bulk of the core testing facilities.  For more \
+description
+       This package provides the bulk of the core testing facilities.  For more
        information, see perldoc for Test::Simple, Test::More, etc.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && perl Makefile.PL INSTALLDIRS=perl
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make test
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               perl-core
+               perl-devel
+               perl(Test::Harness)
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=perl
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               make test
+       end
+end
+
+packages
+       package perl-%{name}
+end
index 00c040d93d4fb0c4a5796af7b8c7b1ab8dc05d1d..cd88c7d605a8271ca2cd46defe7a36dd35e57b55 100644 (file)
@@ -1,53 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = URI
-PKG_VER        = 1.56
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = perl-URI
+version    = 1.56
+release    = 1
+arch       = noarch
+thisapp    = URI-%{version}
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://search.cpan.org/dist/URI/
-PKG_LICENSE    = GPL+ or Artistic
-PKG_SUMMARY    = A Perl module implementing URI parsing and manipulation.
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/URI/
+license    = GPL+ or Artistic
+summary    = A Perl module implementing URI parsing and manipulation.
 
-PKG_BUILD_DEPS+= \
-       perl(ExtUtils::MakeMaker) \
-       perl(MIME::Base64)
-
-define PKG_DESCRIPTION
+description
        This module implements the URI class. Objects of this class represent
        Uniform Resource Identifier references as specified in RFC 2396 (and
        updated by RFC 2732).
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               perl(ExtUtils::MakeMaker)
+               perl(MIME::Base64)
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               perl Makefile.PL INSTALLDIRS=perl
+               make %{PARALLELISMFLAGS}
+       end
+end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && perl Makefile.PL INSTALLDIRS=perl
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+packages
+       package %{name}
+end
index ea9d601db37a7f460e45bb39da82abcc3908986c..588a6d997555da439c5b6388f012ae637ab0820c 100644 (file)
@@ -1,55 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = XML-Parser
-PKG_VER        = 2.36
-PKG_REL        = 0
+name       = perl-XML-Parser
+version    = 2.36
+release    = 1
+thisapp    = XML-Parser-%{version}
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://search.cpan.org/dist/XML-Parser/
-PKG_LICENSE    = GPL+ or Artistic
-PKG_SUMMARY    = Perl module for parsing XML files.
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/XML-Parser/
+license    = GPL+ or Artistic
+summary    = Perl module for parsing XML files.
 
-PKG_BUILD_DEPS+= expat-devel perl-core perl-devel
-PKG_DEPS      += perl
-
-define PKG_DESCRIPTION
+description
        This module provides ways to parse XML documents. It is built on \
        top of XML::Parser::Expat, which is a lower level interface to \
        James Clark's expat library.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define QUALITY_AGENT_WHITELIST_RPATH
-       /lib
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && perl Makefile.PL INSTALLDIRS=vendor
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               expat-devel
+               perl-core
+               perl-devel
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=vendor
+               make %{PARALLELISMFLAGS}
+       end
+end
+
+quality-agent
+       whitelist_rpath
+               /lib
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       perl
+               end
+       end
+end
index 323b06335e35ad314189f9bbcc6b45a791e0f2cc..f7e58430278ad7e4aa086e66b6a88c1df04896b1 100644 (file)
@@ -1,64 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = libwww-perl
-PKG_VER        = 5.837
-PKG_REL        = 1
-PKG_EPOCH      = 1
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://search.cpan.org/dist/libwww-perl/
-PKG_LICENSE    = GPL+ or Artistic
-PKG_SUMMARY    = A Perl interface to the World-Wide Web.
+name       = perl-libwww-perl
+version    = 5.837
+release    = 1
+epoch      = 1
+arch       = noarch
+thisapp    = libwww-perl-%{version}
 
-PKG_BUILD_DEPS+= mailcap perl-core perl-devel perl-HTML-Parser perl-libwww-perl \
-       perl(Test::More) perl(Compress::Zlib) perl(MIME::Base64) perl(Net::FTP)
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/libwww-perl/
+license    = GPL+ or Artistic
+summary    = A Perl interface to the World-Wide Web.
 
-define PKG_DESCRIPTION
-       The libwww-perl collection is a set of Perl modules which provides a simple and \
+description
+       The libwww-perl collection is a set of Perl modules which provides a simple and
        consistent application programming interface to the World-Wide Web.
-endef
-
-# Filter string for very weird dependencies.
-PKG_REQUIRES_FILTER = (HTTP::Headers|HTTP::GHTTP|Win32|Authen::NTLM)
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && perl Makefile.PL INSTALLDIRS=perl --aliases < /dev/null
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_TEST
-       # Use system wide MIME types (link also to blib/... for "make test").  Doing
-       # this stuff before "make install" would not cause the symlink to be packaged
-       # but a copy of /etc/mime.types.
-       ln -svf /etc/mime.types $(DIR_APP)/blib/lib/LWP/media.types
-
-       cd $(DIR_APP) && make test
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               mailcap
+               perl-core
+               perl-devel
+               perl-HTML-Parser
+               perl-libwww-perl
+               perl(Test::More)
+               perl(Compress::Zlib)
+               perl(MIME::Base64)
+               perl(Net::FTP)
+       end
+
+       # Filter string for very weird dependencies.
+       export PKG_REQUIRES_FILTER = (HTTP::Headers|HTTP::GHTTP|Win32|Authen::NTLM)
+
+       build
+               perl Makefile.PL INSTALLDIRS=perl --aliases < /dev/null
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               # Use system wide MIME types (link also to blib/... for "make test").  Doing
+               # this stuff before "make install" would not cause the symlink to be packaged
+               # but a copy of /etc/mime.types.
+               ln -svf /etc/mime.types %{DIR_APP}/blib/lib/LWP/media.types
+
+               make test
+       end
+end
+
+packages
+       package %{name}
+end
index 5904e3bde066070d05fab59a7608bfb884e28643..5389fcd8f340f2d5828a53d52b8318c2b44b0d21 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = perl
-PKG_VER        = 5.12.3
-PKG_REL        = 4
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://www.perl.org/
-PKG_LICENSE    = GPL+ or Artistic and GPLv2+ or Artistic
-PKG_SUMMARY    = Practical Extraction and Report Language.
-
-PKG_BUILD_DEPS+= db4-devel gcc-c++ gdbm-devel iana-etc perl procps zlib-devel
-
-define PKG_DESCRIPTION
-       Perl is a high-level programming language with roots in C, sed, awk \
-       and shell scripting. Perl is good at handling processes and files, \
-       and is especially good at handling text. Perl's hallmarks are \
-       practicality and efficiency. While it is used to do a lot of \
-       different things, Perl's most common applications are system \
-       administration utilities and web programming. A large proportion of \
-       the CGI scripts on the web are written in Perl.  You need the perl \
-       package installed on your system so that your system can handle Perl \
+name       = perl
+version    = 5.12.3
+release    = 4
+
+groups     = Development/Languages
+url        = http://www.perl.org/
+license    = GPL+ or Artistic and GPLv2+ or Artistic
+summary    = Practical Extraction and Report Language.
+
+description
+       Perl is a high-level programming language with roots in C, sed, awk
+       and shell scripting. Perl is good at handling processes and files,
+       and is especially good at handling text. Perl's hallmarks are
+       practicality and efficiency. While it is used to do a lot of
+       different things, Perl's most common applications are system
+       administration utilities and web programming. A large proportion of
+       the CGI scripts on the web are written in Perl.  You need the perl
+       package installed on your system so that your system can handle Perl
        scripts.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-# Filter string for very weird dependencies.
-PKG_REQUIRES_FILTER = (DBD\:\:SQLite|DBIx\:\:Simple|perl>=[0-9]\:.*|NDBM_File|Your\:\:Module\:\:Here|FCGI|Mac\:\:.*)
-
-define QUALITY_AGENT_WHITELIST_RPATH
-       /lib
-       /usr/lib
-       /usr/lib/perl5/CORE
-endef
-
-# These provides are needed by the perl pkg itself with auto-generated perl.req
-PKG_PROVIDES-perl += \
-       perl(VMS::Filespec) \
-       perl(VMS::Stdio)
-
-# Compat provides
-PKG_PROVIDES-perl += \
-       perl(:MODULE_COMPAT_5.12.3) \
-       perl(:MODULE_COMPAT_5.12.2) \
-       perl(:MODULE_COMPAT_5.12.1) \
-       perl(:MODULE_COMPAT_5.12.0)
-
-# Threading provides
-PKG_PROVIDES-perl += \
-       perl(:WITH_ITHREADS) \
-       perl(:WITH_THREADS)
-
-# Largefile provides
-PKG_PROVIDES-perl += perl(:WITH_LARGEFILES)
-
-# PerlIO provides
-PKG_PROVIDES-perl += perl(:WITH_PERLIO)
-
-# File provides
-PKG_PROVIDES-perl += \
-       perl(abbrev.pl) \
-       perl(assert.pl) \
-       perl(bigfloat.pl) \
-       perl(bigint.pl) \
-       perl(bigrat.pl) \
-       perl(bytes_heavy.pl) \
-       perl(cacheout.pl) \
-       perl(complete.pl) \
-       perl(ctime.pl) \
-       perl(dotsh.pl) \
-       perl(dumpvar.pl) \
-       perl(exceptions.pl) \
-       perl(fastcwd.pl) \
-       perl(find.pl) \
-       perl(finddepth.pl) \
-       perl(flush.pl) \
-       perl(ftp.pl) \
-       perl(getcwd.pl) \
-       perl(getopt.pl) \
-       perl(getopts.pl) \
-       perl(hostname.pl) \
-       perl(importenv.pl) \
-       perl(look.pl) \
-       perl(newgetopt.pl) \
-       perl(open2.pl) \
-       perl(open3.pl) \
-       perl(perl5db.pl) \
-       perl(pwd.pl) \
-       perl(shellwords.pl) \
-       perl(stat.pl) \
-       perl(syslog.pl) \
-       perl(tainted.pl) \
-       perl(termcap.pl) \
-       perl(timelocal.pl) \
-       perl(utf8_heavy.pl) \
-       perl(validate.pl) \
-       perl(Carp) \
-       perl(Carp::Heavy) \
-       perl(Exporter) \
-       perl(File::Basename) \
-       perl(constant) \
-       perl(strict) \
-       perl(vars)
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i 's/command /command[ -]/' makedepend.SH
-endef
-
-# Perl passes -fstack-protector, if no argument is passed that enables the SSP.
-# So we need to pass it explicitely.
-CFLAGS += -fstack-protector-all
-
-define STAGE_BUILD
-       cd $(DIR_APP) && sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \
-                                                       -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \
-                                                       -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \
-                                                       cpan/Compress-Raw-Zlib/config.in
-
-       cd $(DIR_APP) && \
+end
+
+source_dl  =
+
+build
+       requires
+               db4-devel
+               gcc-c++
+               gdbm-devel
+               iana-etc
+               perl
+               procps
+               zlib-devel
+       end
+
+       # Perl passes -fstack-protector, if no argument is passed that enables the SSP.
+       # So we need to pass it explicitely.
+       CFLAGS += -fstack-protector-all
+
+       # Filter string for very weird dependencies.
+       export PKG_REQUIRES_FILTER = (DBD\:\:SQLite|DBIx\:\:Simple|perl>=[0-9]\:.*|NDBM_File|Your\:\:Module\:\:Here|FCGI|Mac\:\:.*)
+
+       prepare_cmds
+               sed -i 's/command /command[ -]/' makedepend.SH
+       end
+
+       build
+               sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \
+                       -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \
+                       -e "s|LIB\s*= ./zlib-src|LIB = /usr/lib|" \
+                       cpan/Compress-Raw-Zlib/config.in
+
                sh ./Configure -des \
-                       -Doptimize="$(CFLAGS)" \
+                       -Doptimize="%{CFLAGS}" \
                        -Dccdlflags="-Wl,--enable-new-dtags" \
-                       -Dversion=$(PKG_VER) \
+                       -Dversion=%{version} \
                        -Dmyhostname=localhost \
                        -Dperladmin=root@localhost \
                        -Dcc="gcc" \
-                       -Dcf_by="$(DISTRO_VENDOR)" \
+                       -Dcf_by="%{DISTRO_VENDOR}" \
                        -Dprefix=/usr \
                        -Dvendorprefix=/usr \
                        -Dsiteprefix="/usr/local" \
@@ -160,7 +71,7 @@ define STAGE_BUILD
                        -Dvendorlib="/usr/share/perl5/vendor_perl" \
                        -Darchlib="/usr/lib/perl5" \
                        -Dvendorarch="/usr/lib/perl5/vendor_perl" \
-                       -Darchname=$(PKG_ARCH)-linux-thread-multi \
+                       -Darchname=%{arch}-linux-thread-multi \
                        -Dpager="/usr/bin/less -isr" \
                        -Dman1dir=/usr/share/man/man1 \
                        -Dman3dir=/usr/share/man/man3 \
@@ -188,985 +99,1154 @@ define STAGE_BUILD
                        -Ud_setservent_r_proto \
                        -Dscriptdir="/usr/bin"
 
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make test
-endef
-
-define STAGE_INSTALL_CMDS
-       # Remove precreated directories
-       rm -rfv $(BUILDROOT)/usr/local
-endef
-
-### Split the perl package into lots of subpackages
-
-# perl-libs
-PKG_PACKAGES   += perl-libs
-
-define PKG_FILES-perl-libs
-       /usr/lib/perl5/CORE/libperl.so
-endef
-PKG_DEPS-perl  += perl-libs=$(THISVER)
-PKG_PROVIDES-perl-libs += libperl.so
-
-
-# perl-devel
-PKG_PACKAGES   += perl-devel
-
-define PKG_FILES-perl-devel
-       /usr/bin/enc2xs
-       /usr/share/man/man1/enc2xs*
-       /usr/share/perl5/Encode/
-       /usr/bin/h2xs
-       /usr/share/man/man1/h2xs*
-       /usr/bin/libnetcfg
-       /usr/share/man/man1/libnetcfg*
-       /usr/bin/perlivp
-       /usr/share/man/man1/perlivp*
-       /usr/lib/perl5/CORE/*.h
-       /usr/bin/xsubpp
-       /usr/share/man/man1/xsubpp*
-       /usr/share/man/man1/perlxs*
-endef
-
-# perl-tests
-#PKG_PACKAGES  += perl-tests
-#define PKG_DESCRIPTION-perl-tests
-#      This package contains the test suite included with perl $(THISVER). \
-#      Install this if you want to test your Perl installation (binary and core \
-#      modules).
-#endef
-#define PKG_FILES-perl-tests
-#      /usr/lib/perl5-tests
-#endef
-
-# Archive-Extract
-PKG_PACKAGES   += perl-Archive-Extract
-
-PKG_EPOCH-perl-Archive-Extract = 0
-PKG_VER-perl-Archive-Extract = 0.38
-PKG_ARCH-perl-Archive-Extract = noarch
-
-PKG_SUMMARY-perl-Archive-Extract = Generic archive extracting mechanism.
-define PKG_DESCRIPTION-perl-Archive-Extract
-       Archive::Extract is a generic archive extraction mechanism.
-endef
-
-PKG_DEPS-perl-Archive-Extract = perl=$(THISVER)
-define PKG_FILES-perl-Archive-Extract
-       /usr/share/perl5/Archive/Extract.pm
-       /usr/share/man/man3/Archive::Extract.3*
-endef
-
-# Archive-Tar
-PKG_PACKAGES   += perl-Archive-Tar
-
-PKG_EPOCH-perl-Archive-Tar = 0
-PKG_VER-perl-Archive-Tar = 1.54
-PKG_ARCH-perl-Archive-Tar = noarch
-
-PKG_SUMMARY-perl-Archive-Tar = A module for Perl manipulation of .tar files.
-define PKG_DESCRIPTION-perl-Archive-Tar
-       Archive::Tar provides an object oriented mechanism for handling tar files. It \
-       provides class methods for quick and easy files handling while also allowing \
-       for the creation of tar file objects for custom manipulation. If you have the \
-       IO::Zlib module installed, Archive::Tar will also support compressed or \
-       gzipped tar files.
-endef
-
-PKG_DEPS-perl-Archive-Tar = perl=$(THISVER)
-
-define PKG_FILES-perl-Archive-Tar
-       /usr/bin/ptar
-       /usr/bin/ptardiff
-       /usr/share/perl5/Archive/Tar.pm
-       /usr/share/man/man1/ptar.1*
-       /usr/share/man/man1/ptardiff.1*
-       /usr/share/man/man3/Archive::Tar*
-endef
-
-# Compress-Raw-Lib
-PKG_PACKAGES   += perl-Compress-Raw-Zlib
-
-PKG_EPOCH-perl-Compress-Raw-Zlib = 0
-PKG_VER-perl-Compress-Raw-Zlib = 2.024
-
-PKG_SUMMARY-perl-Compress-Raw-Zlib = \
-       Low-Level Interface to the zlib compression library.
-define PKG_DESCRIPTION-perl-Compress-Raw-Zlib
-       This module provides a Perl interface to the zlib compression library. \
-       It is used by IO::Compress::Zlib.
-endef
-
-PKG_DEPS-perl-Compress-Raw-Zlib = perl=$(THISVER)
-
-define PKG_FILES-perl-Compress-Raw-Zlib
-       /usr/share/perl5/Compress/Raw/Zlib/
-       /usr/share/man/man3/Compress::Raw::Zlib*
-endef
-
-# CPAN
-PKG_PACKAGES   += perl-CPAN
-
-PKG_EPOCH-perl-CPAN = 0
-PKG_VER-perl-CPAN = 1.9402
-PKG_ARCH-perl-CPAN = noarch
-
-PKG_SUMMARY-perl-CPAN = \
-       Query, download and build perl modules from CPAN sites.
-define PKG_DESCRIPTION-perl-CPAN
-       Query, download and build perl modules from CPAN sites.
-endef
-
-PKG_DEPS-perl-CPAN = perl=$(THISVER) perl(Digest::SHA)
-PKG_PROVIDES-perl-CPAN += cpan cpan=$(PKG_VER-perl-CPAN)
-
-define PKG_FILES-perl-CPAN
-       /usr/bin/cpan
-       /usr/share/perl5/CPAN*
-       /usr/share/man/man1/cpan.1*
-       /usr/share/man/man3/CPAN*
-endef
-
-# CPANPLUS
-PKG_PACKAGES   += perl-CPANPLUS
-
-PKG_EPOCH-perl-CPANPLUS = 0
-PKG_VER-perl-CPANPLUS = 0.9
-PKG_ARCH-perl-CPANPLUS = noarch
-
-PKG_SUMMARY-perl-CPANPLUS = \
-       API & CLI access to the CPAN mirrors.
-define PKG_DESCRIPTION-perl-CPANPLUS
-       The CPANPLUS library is an API to the CPAN mirrors and a collection of \
-       interactive shells, commandline programs, etc, that use this API.
-endef
-
-PKG_DEPS-perl-CPANPLUS = perl=$(THISVER) perl(Digest::SHA) \
-       perl(Module::Pluggable)>=2.4 perl(Module::CoreList) perl(DBIx::Simple)
-PKG_PROVIDES-perl-CPANPLUS += perl-CPANPLUS-Dist-Build=0.06
-
-define PKG_FILES-perl-CPANPLUS
-       /usr/bin/cpan2dist
-       /usr/bin/cpanp
-       /usr/bin/cpanp-run-perl
-       /usr/share/perl5/CPANPLUS*
-       /usr/share/man/man1/cpan2dist.1*
-       /usr/share/man/man1/cpanp.1*
-       /usr/share/man/man3/CPANPLUS*
-endef
-
-# Digest-SHA
-PKG_PACKAGES   += perl-Digest-SHA
-
-PKG_EPOCH-perl-Digest-SHA = 0
-PKG_VER-perl-Digest-SHA = 5.47
-
-PKG_SUMMARY-perl-Digest-SHA = \
-       Perl extension for SHA-1/224/256/384/512.
-define PKG_DESCRIPTION-perl-Digest-SHA
-       Digest::SHA is a complete implementation of the NIST Secure Hash \
-       Standard.  It gives Perl programmers a convenient way to calculate \
-       SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 message digests. The \
-       module can handle all types of input, including partial-byte data.
-endef
-
-PKG_DEPS-perl-Digest-SHA = perl=$(THISVER)
-
-define PKG_FILES-perl-Digest-SHA
-       /usr/bin/shasum
-       /usr/share/perl5/Digest*
-       /usr/share/man/man1/shasum.1*
-       /usr/share/man/man3/Digest::SHA.3*
-endef
-
-# ExtUtils-CBuilder
-PKG_PACKAGES   += perl-ExtUtils-CBuilder
-
-PKG_EPOCH-perl-ExtUtils-CBuilder = 0
-PKG_VER-perl-ExtUtils-CBuilder = 0.27
-PKG_ARCH-perl-ExtUtils-CBuilder = noarch
-
-PKG_SUMMARY-perl-ExtUtils-CBuilder = \
-       Compile and link C code for Perl modules.
-define PKG_DESCRIPTION-perl-ExtUtils-CBuilder
-       This module can build the C portions of Perl modules by invoking the \
-       appropriate compilers and linkers in a cross-platform manner. It was \
-       motivated by the Module::Build project, but may be useful for other \
-       purposes as well.
-endef
-
-PKG_DEPS-perl-ExtUtils-CBuilder = perl=$(THISVER) perl-devel
-
-define PKG_FILES-perl-ExtUtils-CBuilder
-       /usr/share/perl5/ExtUtils/CBuilder*
-       /usr/share/man/man3/ExtUtils::CBuilder*
-endef
-
-# ExtUtils-Embed
-PKG_PACKAGES   += perl-ExtUtils-Embed
-
-PKG_EPOCH-perl-ExtUtils-Embed = 0
-PKG_VER-perl-ExtUtils-Embed = 1.28
-PKG_ARCH-perl-ExtUtils-Embed = noarch
-
-PKG_SUMMARY-perl-ExtUtils-Embed = \
-       Utilities for embedding Perl in C/C++ applications.
-define PKG_DESCRIPTION-perl-ExtUtils-Embed
-       Utilities for embedding Perl in C/C++ applications.
-endef
-
-PKG_DEPS-perl-ExtUtils-Embed = perl=$(THISVER) perl-devel
-
-define PKG_FILES-perl-ExtUtils-Embed
-       /usr/share/perl5/ExtUtils/Embed*
-       /usr/share/man/man3/ExtUtils::Embed*
-endef
-
-# ExtUtils-MakeMaker
-PKG_PACKAGES   += perl-ExtUtils-MakeMaker
-
-PKG_EPOCH-perl-ExtUtils-MakeMaker = 0
-PKG_VER-perl-ExtUtils-MakeMaker = 6.56
-PKG_ARCH-perl-ExtUtils-MakeMaker = noarch
-
-PKG_SUMMARY-perl-ExtUtils-MakeMaker = Create a module Makefile.
-define PKG_DESCRIPTION-perl-ExtUtils-MakeMaker
-       Create a module Makefile.
-endef
-
-PKG_DEPS-perl-ExtUtils-MakeMaker = perl=$(THISVER) perl-devel perl(Test::Harness)
-
-define PKG_FILES-perl-ExtUtils-MakeMaker
-       /usr/bin/instmodsh
-       /usr/share/perl5/ExtUtils/Command/
-       /usr/share/perl5/ExtUtils/Install.pm
-       /usr/share/perl5/ExtUtils/Installed.pm
-       /usr/share/perl5/ExtUtils/Liblist/
-       /usr/share/perl5/ExtUtils/Liblist.pm
-       /usr/share/perl5/ExtUtils/MakeMaker/
-       /usr/share/perl5/ExtUtils/MakeMaker.pm
-       /usr/share/perl5/ExtUtils/MANIFEST.SKIP
-       /usr/share/perl5/ExtUtils/MM*.pm
-       /usr/share/perl5/ExtUtils/MY.pm
-       /usr/share/perl5/ExtUtils/Manifest.pm
-       /usr/share/perl5/ExtUtils/Mkbootstrap.pm
-       /usr/share/perl5/ExtUtils/Mksymlists.pm
-       /usr/share/perl5/ExtUtils/Packlist.pm
-       /usr/share/perl5/ExtUtils/testlib.pm
-       /usr/share/man/man1/instmodsh.1*
-       /usr/share/man/man3/ExtUtils::Command::MM*
-       /usr/share/man/man3/ExtUtils::Install.3*
-       /usr/share/man/man3/ExtUtils::Installed.3*
-       /usr/share/man/man3/ExtUtils::Liblist.3*
-       /usr/share/man/man3/ExtUtils::MM*
-       /usr/share/man/man3/ExtUtils::MY.3*
-       /usr/share/man/man3/ExtUtils::MakeMaker*
-       /usr/share/man/man3/ExtUtils::Manifest.3*
-       /usr/share/man/man3/ExtUtils::Mkbootstrap.3*
-       /usr/share/man/man3/ExtUtils::Mksymlists.3*
-       /usr/share/man/man3/ExtUtils::Packlist.3*
-       /usr/share/man/man3/ExtUtils::testlib.3*
-endef
-
-# ExtUtils-ParseXS
-PKG_PACKAGES   += perl-ExtUtils-ParseXS
-
-PKG_EPOCH-perl-ExtUtils-ParseXS = 0
-PKG_VER-perl-ExtUtils-ParseXS = 2.21
-PKG_ARCH-perl-ExtUtils-ParseXS = noarch
-
-PKG_SUMMARY-perl-ExtUtils-ParseXS = \
-       Module and a script for converting Perl XS code into C code.
-define PKG_DESCRIPTION-perl-ExtUtils-ParseXS
-       ExtUtils::ParseXS will compile XS code into C code by embedding the \
-       constructs necessary to let C functions manipulate Perl values and creates \
-       the glue necessary to let Perl access those functions.
-endef
-
-PKG_DEPS-perl-ExtUtils-ParseXS = perl=$(THISVER) perl-devel
-
-define PKG_FILES-perl-ExtUtils-ParseXS
-       /usr/share/perl5/ExtUtils/ParseXS.pm
-       /usr/share/perl5/ExtUtils/xsubpp
-       /usr/share/man/man3/ExtUtils::ParseXS.3*
-endef
-
-# File-Fetch
-PKG_PACKAGES   += perl-File-Fetch
-
-PKG_EPOCH-perl-File-Fetch = 0
-PKG_VER-perl-File-Fetch = 6.56
-PKG_ARCH-perl-File-Fetch = noarch
-
-PKG_SUMMARY-perl-File-Fetch = Generic file fetching mechanism.
-define PKG_DESCRIPTION-perl-File-Fetch
-       File::Fetch is a generic file fetching mechanism.
-endef
-
-PKG_DEPS-perl-File-Fetch = perl=$(THISVER) perl(IPC::Cmd)>=0.36 \
-       perl(Module::Load::Conditional)>=0.04 perl(Params::Check)>=0.07
-
-define PKG_FILES-perl-File-Fetch
-       /usr/share/perl5/File/Fetch.pm
-       /usr/share/man/man3/File::Fetch.3*
-endef
-
-# IO-Compress
-PKG_PACKAGES   += perl-IO-Compress
-
-PKG_EPOCH-perl-IO-Compress = 0
-PKG_VER-perl-IO-Compress = 2.026
-
-PKG_SUMMARY-perl-IO-Compress = IO::Compress wrapper for modules.
-define PKG_DESCRIPTION-perl-IO-Compress
-       This module is the base class for all IO::Compress and IO::Uncompress \
-       modules. This module is not intended for direct use in application code. \
-       Its sole purpose is to to be sub-classed by IO::Compress modules.
-endef
-
-PKG_DEPS-perl-IO-Compress = perl=$(THISVER)
-PKG_PROVIDES-perl-IO-Compress += perl(IO::Uncompress::Bunzip2)
-
-define PKG_FILES-perl-IO-Compress
-       /usr/share/perl5/Compress/Zlib.pm
-       /usr/lib/perl5/auto/Compress/Zlib/
-       /usr/share/man/man3/Compress::Zlib*
-       /usr/share/perl5/File/GlobMapper.pm
-       /usr/share/perl5/IO/Compress/Base/
-       /usr/share/perl5/IO/Compress/Base.pm
-       /usr/share/perl5/IO/Uncompress/AnyUncompress.pm
-       /usr/share/perl5/IO/Uncompress/Base.pm
-       /usr/share/man/man3/File::GlobMapper.*
-       /usr/share/man/man3/IO::Compress::Base.*
-       /usr/share/man/man3/IO::Uncompress::AnyUncompress.*
-       /usr/share/man/man3/IO::Uncompress::Base.*
-endef
-
-# IO-Zlib
-PKG_PACKAGES   += perl-IO-Zlib
-
-PKG_EPOCH-perl-IO-Zlib = 0
-PKG_VER-perl-IO-Zlib = 1.10
-PKG_ARCH-perl-IO-Zlib = noarch
-
-PKG_SUMMARY-perl-IO-Zlib = Perl IO:: style interface to Compress::Zlib.
-define PKG_DESCRIPTION-perl-IO-Zlib
-       This modules provides an IO:: style interface to the Compress::Zlib \
-       package. The main advantage is that you can use an IO::Zlib object in much \
-       the same way as an IO::File object so you can have common code that doesn't \
-       know which sort of file it is using.
-endef
-
-PKG_DEPS-perl-IO-Zlib = perl=$(THISVER) perl(Compress::Zlib)
-
-define PKG_FILES-perl-IO-Zlib
-       /usr/share/perl5/IO/Zlib.pm
-       /usr/share/man/man3/IO::Zlib.*
-endef
-
-# IPC-Cmd
-PKG_PACKAGES   += perl-IPC-Cmd
-
-PKG_EPOCH-perl-IPC-Cmd = 0
-PKG_VER-perl-IPC-Cmd = 0.54
-PKG_ARCH-perl-IPC-Cmd = noarch
-
-PKG_SUMMARY-perl-IPC-Cmd = Finding and running system commands made easy.
-define PKG_DESCRIPTION-perl-IPC-Cmd
-       IPC::Cmd allows you to run commands, interactively if desired, in a \
-       platform independent way, but have them still work.
-endef
-
-PKG_DEPS-perl-IPC-Cmd = perl=$(THISVER)
-
-define PKG_FILES-perl-IPC-Cmd
-       /usr/share/perl5/IPC/Cmd.pm
-       /usr/share/man/man3/IPC::Cmd.3*
-endef
-
-# Locale-Maketext-Simple
-PKG_PACKAGES   += perl-Locale-Maketext-Simple
-
-PKG_EPOCH-perl-Locale-Maketext-Simple = 0
-PKG_VER-perl-Locale-Maketext-Simple = 0.21
-PKG_ARCH-perl-Locale-Maketext-Simple = noarch
-PKG_LICENSE-perl-Locale-Maketext-Simple = MIT
-
-PKG_SUMMARY-perl-Locale-Maketext-Simple = \
-       Simple interface to Locale::Maketext::Lexicon.
-define PKG_DESCRIPTION-perl-Locale-Maketext-Simple
-       This module is a simple wrapper around Locale::Maketext::Lexicon, designed \
-       to alleviate the need of creating Language Classes for module authors.
-endef
-
-PKG_DEPS-perl-Locale-Maketext-Simple = perl=$(THISVER)
-
-define PKG_FILES-perl-Locale-Maketext-Simple
-       /usr/share/perl5/Locale/Maketext/Simple.pm
-       /usr/share/man/man3/Locale::Maketext::Simple.*
-endef
-
-# Log-Message
-PKG_PACKAGES   += perl-Log-Message
-
-PKG_EPOCH-perl-Log-Message = 0
-PKG_VER-perl-Log-Message = 0.02
-PKG_ARCH-perl-Log-Message = noarch
-
-PKG_SUMMARY-perl-Log-Message = Generic message storage mechanism.
-define PKG_DESCRIPTION-perl-Log-Message
-       Log::Message is a generic message storage mechanism. It allows you to store \
-       messages on a stack -- either shared or private -- and assign meta-data to it. \
-       Some meta-data will automatically be added for you, like a timestamp and a \
-       stack trace, but some can be filled in by the user, like a tag by which to \
-       identify it or group it, and a level at which to handle the message (for \
-       example, log it, or die with it).
-endef
-
-PKG_DEPS-perl-Log-Message = perl=$(THISVER)
-PKG_PROVIDES-perl-Log-Message += perl(Log::Message::Handlers)=$(PKG_VER)
-
-define PKG_FILES-perl-Log-Message
-       /usr/share/perl5/Log/Message.pm
-       /usr/share/perl5/Log/Message/Config.pm
-       /usr/share/perl5/Log/Message/Handlers.pm
-       /usr/share/perl5/Log/Message/Item.pm
-       /usr/share/man/man3/Log::Message.3*
-       /usr/share/man/man3/Log::Message::Config.3*
-       /usr/share/man/man3/Log::Message::Handlers.3*
-       /usr/share/man/man3/Log::Message::Item.3*
-endef
-
-# Log-Message-Simple
-PKG_PACKAGES   += perl-Log-Message-Simple
-
-PKG_EPOCH-perl-Log-Message-Simple = 0
-PKG_VER-perl-Log-Message-Simple = 0.06
-PKG_ARCH-perl-LogMessage-Simple = noarch
-
-PKG_SUMMARY-perl-Log-Message-Simple = Simplified frontend to Log::Message.
-define PKG_DESCRIPTION-perl-Log-Message-Simple
-       This module provides standardized logging facilities using the \
-       Log::Message module.
-endef
-
-PKG_DEPS-perl-Log-Message-Simple = perl=$(THISVER)
-
-define PKG_FILES-perl-Log-Message-Simple
-       /usr/share/perl5/Log/Message/Simple.pm
-       /usr/share/man/man3/Log::Message::Simple.3*
-endef
-
-# Module-Build
-PKG_PACKAGES   += perl-Module-Build
-
-PKG_EPOCH-perl-Module-Build = 0
-PKG_VER-perl-Module-Build = 0.3603
-PKG_ARCH-perl-Module-Build = noarch
-
-PKG_SUMMARY-perl-Module-Build = \
-       Perl module for building and installing Perl modules.
-define PKG_DESCRIPTION-perl-Module-Build
-       Module::Build is a system for building, testing, and installing Perl modules. \
-       It is meant to be an alternative to ExtUtils::MakeMaker.  Developers may alter \
-       the behavior of the module through subclassing in a much more straightforward \
-       way than with MakeMaker. It also does not require a make on your system - most \
-       of the Module::Build code is pure-perl and written in a very cross-platform \
-       way. In fact, you don't even need a shell, so even platforms like MacOS \
-       (traditional) can use it fairly easily. Its only prerequisites are modules that \
-       are included with perl 5.6.0, and it works fine on perl 5.005 if you can \
-       install a few additional modules.
-endef
-
-PKG_DEPS-perl-Module-Build = perl=$(THISVER) perl(Archive::Tar)>=1.08 \
-       perl(ExtUtils::CBuilder)>=0.15 perl(ExtUtils::ParseXS)>=1.02
-
-define PKG_FILES-perl-Module-Build
-       /usr/bin/config_data
-       /usr/share/perl5/inc/
-       /usr/share/perl5/Module/Build*
-       /usr/share/man/man1/config_data.1*
-       /usr/share/man/man3/Module::Build*
-       /usr/share/man/man3/inc::latest.3*
-endef
-
-# Module-CoreList
-PKG_PACKAGES   += perl-Module-CoreList
-
-PKG_EPOCH-perl-Module-CoreList = 0
-PKG_VER-perl-Module-CoreList = 2.29
-PKG_ARCH-perl-Module-CoreList = noarch
-
-PKG_SUMMARY-perl-Module-CoreList = \
-       Perl core modules indexed by perl versions.
-define PKG_DESCRIPTION-perl-Module-CoreList
-       Module::CoreList contains the hash of hashes %Module::CoreList::version, this \
-       is keyed on perl version as indicated in $].  The second level hash is module \
-       => version pairs.
-endef
-
-PKG_DEPS-perl-Module-CoreList = perl=$(THISVER)
-
-define PKG_FILES-perl-Module-CoreList
-       /usr/bin/corelist
-       /usr/share/perl5/Module/CoreList.pm
-       /usr/share/man/man1/corelist*
-       /usr/share/man/man3/Module::CoreList*
-endef
-
-# Module-Load
-PKG_PACKAGES   += perl-Module-Load
-
-PKG_EPOCH-perl-Module-Load = 0
-PKG_VER-perl-Module-Load = 0.16
-PKG_ARCH-perl-Module-Load = noarch
-
-PKG_SUMMARY-perl-Module-Load = \
-       Runtime require of both modules and files.
-define PKG_DESCRIPTION-perl-Module-Load
-       Module::Load eliminates the need to know whether you are trying to require \
-       either a file or a module.
-endef
-
-PKG_DEPS-perl-Module-Load = perl=$(THISVER)
-
-define PKG_FILES-perl-Module-Load
-       /usr/share/perl5/Module/Load.pm
-       /usr/share/man/man3/Module::Load.*
-endef
-
-# Module-Load-Conditional
-PKG_PACKAGES   += perl-Module-Load-Conditional
-
-PKG_EPOCH-perl-Module-Load-Conditional = 0
-PKG_VER-perl-Module-Load-Conditional = 0.34
-PKG_ARCH-perl-Module-Load-Conditional = noarch
-
-PKG_SUMMARY-perl-Module-Load-Conditional = \
-       Looking up module information / loading at runtime.
-define PKG_DESCRIPTION-perl-Module-Load-Conditional
-       Module::Load::Conditional provides simple ways to query and possibly load \
-       any of the modules you have installed on your system during runtime.
-endef
-
-PKG_DEPS-perl-Module-Load-Conditional = perl=$(THISVER)
-
-define PKG_FILES-perl-Module-Load-Conditional
-       /usr/share/perl5/Module/Load/
-       /usr/share/man/man3/Module::Load::Conditional*
-endef
-
-# Module-Loaded
-PKG_PACKAGES   += perl-Module-Loaded
-
-PKG_EPOCH-perl-Module-Loaded = 0
-PKG_VER-perl-Module-Loaded = 0.06
-PKG_ARCH-perl-Module-Loaded = noarch
-
-PKG_SUMMARY-perl-Module-Loaded = \
-       Mark modules as loaded or unloaded.
-define PKG_DESCRIPTION-perl-Module-Loaded
-       When testing applications, often you find yourself needing to provide \
-       functionality in your test environment that would usually be provided by \
-       external modules. Rather than munging the %INC by hand to mark these external \
-       modules as loaded, so they are not attempted to be loaded by perl, this module \
-       offers you a very simple way to mark modules as loaded and/or unloaded.
-endef
-
-PKG_DEPS-perl-Module-Loaded = perl=$(THISVER)
-
-define PKG_FILES-perl-Module-Loaded
-       /usr/share/perl5/Module/Loaded.pm
-       /usr/share/man/man3/Module::Loaded*
-endef
-
-# Module-Plugable
-PKG_PACKAGES   += perl-Module-Plugable
-
-PKG_EPOCH-perl-Module-Plugable = 0
-PKG_VER-perl-Module-Plugable = 3.90
-PKG_ARCH-perl-Module-Plugable = noarch
-
-PKG_SUMMARY-perl-Module-Plugable = \
-       Automatically give your module the ability to have plugins.
-define PKG_DESCRIPTION-perl-Module-Plugable
-       Provides a simple but, hopefully, extensible way of having 'plugins' for \
-       your module.
-endef
-
-PKG_DEPS-perl-Module-Plugable = perl=$(THISVER)
-
-define PKG_FILES-perl-Module-Plugable
-       /usr/share/perl5/Devel/InnerPackage.pm
-       /usr/share/perl5/Module/Pluggable/
-       /usr/share/perl5/Module/Pluggable.pm
-       /usr/share/man/man3/Devel::InnerPackage*
-       /usr/share/man/man3/Module::Pluggable*
-endef
-
-# Object-Accessor
-PKG_PACKAGES   += perl-Object-Accessor
-
-PKG_EPOCH-perl-Object-Accessor = 0
-PKG_VER-perl-Object-Accessor = 0.36
-PKG_ARCH-perl-Object-Accessor = noarch
-
-PKG_SUMMARY-perl-Object-Accessor = \
-       Perl module that allows per object accessors.
-define PKG_DESCRIPTION-perl-Object-Accessor
-       Object::Accessor provides an interface to create per object accessors (as \
-       opposed to per Class accessors, as, for example, Class::Accessor provides).
-endef
-
-PKG_DEPS-perl-Object-Accessor = perl=$(THISVER)
-
-define PKG_FILES-perl-Object-Accessor
-       /usr/share/perl5/Object/
-       /usr/share/man/man3/Object::Accessor*
-endef
-
-# Package-Constants
-PKG_PACKAGES   += perl-Package-Constants
-
-PKG_EPOCH-perl-Package-Constants = 0
-PKG_VER-perl-Package-Constants = 0.02
-PKG_ARCH-perl-Package-Constants = noarch
-
-PKG_SUMMARY-perl-Package-Constants = \
-       List all constants declared in a package.
-define PKG_DESCRIPTION-perl-Package-Constants
-       Package::Constants lists all the constants defined in a certain package.  This \
-       can be useful for, among others, setting up an autogenerated @EXPORT/@EXPORT_OK \
-       for a Constants.pm file.
-endef
-
-PKG_DEPS-perl-Package-Constants = perl=$(THISVER)
-
-define PKG_FILES-perl-Package-Constants
-       /usr/share/perl5/Package/
-       /usr/share/man/man3/Package::Constants*
-endef
-
-# Params-Check
-PKG_PACKAGES   += perl-Params-Check
-
-PKG_EPOCH-perl-Params-Check = 0
-PKG_VER-perl-Params-Check = 0.26
-PKG_ARCH-perl-Params-Check = noarch
-
-PKG_SUMMARY-perl-Params-Check = \
-       Generic input parsing/checking mechanism.
-define PKG_DESCRIPTION-perl-Params-Check
-       Params::Check is a generic input parsing/checking mechanism.
-endef
-
-PKG_DEPS-perl-Params-Check = perl=$(THISVER)
-PKG_PROVIDES-perl-Params-Check += perl(Params::Check)
-
-define PKG_FILES-perl-Params-Check
-       /usr/share/perl5/Params/
-       /usr/share/man/man3/Params::Check*
-endef
-
-# Parse-CPAN-Meta
-PKG_PACKAGES   += perl-Parse-CPAN-Meta
-
-PKG_EPOCH-perl-Parse-CPAN-Meta = 0
-PKG_VER-perl-Parse-CPAN-Meta = 1.40
-PKG_ARCH-perl-Parse-CPAN-Meta = noarch
-
-PKG_SUMMARY-perl-Parse-CPAN-Meta = \
-       Parse META.yml and other similar CPAN metadata files.
-define PKG_DESCRIPTION-perl-Parse-CPAN-Meta
-       Parse::CPAN::Meta is a parser for META.yml files, based on the parser half of \
-       YAML::Tiny.
-endef
-
-PKG_DEPS-perl-Parse-CPAN-Meta = perl=$(THISVER)
-
-define PKG_FILES-perl-Parse-CPAN-Meta
-       /usr/share/perl5/Parse/CPAN/Meta.pm
-       /usr/share/man/man3/Parse::CPAN::Meta.3*
-endef
-
-# PathTools
-PKG_PACKAGES   += perl-PathTools
-
-PKG_EPOCH-perl-PathTools = 0
-PKG_VER-perl-PathTools = 3.31
-PKG_LICENSE-perl-PathTools = (GPL+ or Artistic) and BSD
-
-PKG_SUMMARY-perl-PathTools = PathTools Perl module (Cwd, File::Spec).
-define PKG_DESCRIPTION-perl-PathTools
-       PathTools Perl module (Cwd, File::Spec).
-endef
-
-PKG_DEPS-perl-PathTools = perl=$(THISVER)
-
-define PKG_FILES-perl-PathTools
-       /usr/lib/perl5/Cwd.pm
-       /usr/lib/perl5/File/Spec*
-       /usr/share/man/man3/Cwd*
-       /usr/share/man/man3/File::Spec*
-endef
-
-# Pod-Escapes
-PKG_PACKAGES   += perl-Pod-Escapes
-
-PKG_EPOCH-perl-Pod-Escapes = 0
-PKG_VER-perl-Pod-Escapes = 1.04
-PKG_ARCH-perl-Pod-Escapes = noarch
-
-PKG_SUMMARY-perl-Pod-Escapes = \
-       Perl module for resolving POD escape sequences.
-define PKG_DESCRIPTION-perl-Pod-Escapes
-       This module provides things that are useful in decoding Pod E<...> sequences. \
-       Presumably, it should be used only by Pod parsers and/or formatters.
-endef
-
-PKG_DEPS-perl-Pod-Escapes = perl=$(THISVER)
-
-define PKG_FILES-perl-Pod-Escapes
-       /usr/share/perl5/Pod/Escapes.pm
-       /usr/share/man/man3/Pod::Escapes.*
-endef
-
-# Pod-Simple
-PKG_PACKAGES   += perl-Pod-Simple
-
-PKG_EPOCH-perl-Pod-Simple = 0
-PKG_VER-perl-Pod-Simple = 3.13
-PKG_ARCH-perl-Pod-Simple = noarch
-
-PKG_SUMMARY-perl-Pod-Simple = \
-       Framework for parsing POD documentation.
-define PKG_DESCRIPTION-perl-Pod-Simple
-       Pod::Simple is a Perl library for parsing text in the Pod (plain old \
-       documentation) markup language that is typically used for writing \
-       documentation for Perl and for Perl modules.
-endef
-
-PKG_DEPS-perl-Pod-Simple = perl=$(THISVER)
-
-define PKG_FILES-perl-Pod-Simple
-       /usr/share/perl5/Pod/Simple/ 
-       /usr/share/perl5/Pod/Simple.pm
-       /usr/share/perl5/Pod/Simple.pod
-       /usr/share/man/man3/Pod::Simple*
-endef
-
-# Term-UI
-PKG_PACKAGES   += perl-Term-UI
-
-PKG_EPOCH-perl-Term-UI = 0
-PKG_VER-perl-Term-UI = 0.20
-PKG_ARCH-perl-Term-UI = noarch
-
-PKG_SUMMARY-perl-Term-UI = \
-       Term::ReadLine UI made easy.
-define PKG_DESCRIPTION-perl-Term-UI
-       Term::UI is a transparent way of eliminating the overhead of having to format \
-       a question and then validate the reply, informing the user if the answer was not \
-       proper and re-issuing the question.
-endef
-
-PKG_DEPS-perl-Term-UI = perl=$(THISVER) perl(Log::Message::Simple)
-
-define PKG_FILES-perl-Term-UI
-       /usr/share/perl5/Term/UI/
-       /usr/share/perl5/Term/UI.pm
-       /usr/share/man/man3/Term::UI*
-endef
-
-# Test-Harness
-PKG_PACKAGES   += perl-Test-Harness
-
-PKG_EPOCH-perl-Test-Harness = 0
-PKG_VER-perl-Test-Harness = 3.17
-PKG_ARCH-perl-Test-Harness = noarch
-
-PKG_SUMMARY-perl-Test-Harness = \
-       Run Perl standard test scripts with statistics.
-define PKG_DESCRIPTION-perl-Test-Harness
-       Run Perl standard test scripts with statistics. \
-       Use TAP::Parser, Test::Harness package was whole rewritten.
-endef
-
-PKG_DEPS-perl-Test-Harness = perl=$(THISVER)
-
-define PKG_FILES-perl-Test-Harness
-       /usr/bin/prove
-       /usr/share/perl5/App*
-       /usr/share/perl5/TAP*
-       /usr/share/perl5/Test/Harness*
-       /usr/share/man/man1/prove.1*
-       /usr/share/man/man3/App*
-       /usr/share/man/man3/TAP*
-       /usr/share/man/man3/Test::Harness*
-endef
-
-# Test-Simple
-PKG_PACKAGES   += perl-Test-Simple
-
-PKG_EPOCH-perl-Test-Simple = 0
-PKG_VER-perl-Test-Simple = 0.94
-PKG_ARCH-perl-Test-Simple = noarch
-
-PKG_SUMMARY-perl-Test-Simple = \
-       Basic utilities for writing tests.
-define PKG_DESCRIPTION-perl-Test-Simple
-       Basic utilities for writing tests.
-endef
-
-PKG_DEPS-perl-Test-Simple = perl=$(THISVER)
-
-define PKG_FILES-perl-Test-Simple
-       /usr/share/perl5/Test/More*
-       /usr/share/perl5/Test/Builder*
-       /usr/share/perl5/Test/Simple*
-       /usr/share/perl5/Test/Tutorial*
-       /usr/share/man/man3/Test::More*
-       /usr/share/man/man3/Test::Builder*
-       /usr/share/man/man3/Test::Simple*
-       /usr/share/man/man3/Test::Tutorial*
-endef
-
-# Time-Piece
-PKG_PACKAGES   += perl-Time-Piece
-
-PKG_EPOCH-perl-Time-Piece = 0
-PKG_VER-perl-Time-Piece = 1.15
-
-PKG_SUMMARY-perl-Time-Piece = \
-       Time objects from localtime and gmtime.
-define PKG_DESCRIPTION-perl-Time-Piece
-       The Time::Piece module replaces the standard localtime and gmtime functions \
-       with implementations that return objects.  It does so in a backwards compatible \
-       manner, so that using localtime or gmtime as documented in perlfunc still \
-       behave as expected.
-endef
-
-PKG_DEPS-perl-Time-Piece = perl=$(THISVER)
-
-define PKG_FILES-perl-Time-Piece
-       /usr/lib/perl5/Time/Piece.pm 
-       /usr/lib/perl5/Time/Seconds.pm
-       /usr/lib/perl5/auto/Time/Piece/        
-       /usr/share/man/man3/Time::Piece.3*
-       /usr/share/man/man3/Time::Seconds.3*
-endef
-
-# parent
-PKG_PACKAGES   += perl-parent
-
-PKG_EPOCH-perl-parent = 0
-PKG_VER-perl-parent = 0.223
-PKG_ARCH-perl-parent = noarch
-
-PKG_SUMMARY-perl-parent = \
-       Establish an ISA relationship with base classes at compile time.
-define PKG_DESCRIPTION-perl-parent
-       parent allows you to both load one or more modules, while setting up
-       inheritance from those modules at the same time.
-endef
-
-PKG_DEPS-perl-parent = perl=$(THISVER)
-
-define PKG_FILES-perl-parent
-       /usr/share/perl5/parent.pm
-       /usr/share/man/man3/parent.3*
-endef
-
-# threads
-PKG_PACKAGES   += perl-threads
-
-PKG_EPOCH-perl-threads = 0
-PKG_VER-perl-threads = 1.75
-
-PKG_SUMMARY-perl-threads = \
-       Perl interpreter-based threads.
-define PKG_DESCRIPTION-perl-threads
-       Since Perl 5.8, thread programming has been available using a model called \
-       interpreter threads  which provides a new Perl interpreter for each thread, \
-       and, by default, results in no data or state information being shared between \
-       threads. (Prior to Perl 5.8, 5005threads was available through the Thread.pm \
-       API. This threading model has been deprecated, and was removed as of Perl \
-       5.10.0.) As just mentioned, all variables are, by default, thread local. To use \
-       shared variables, you need to also load threads::shared.
-endef
-
-PKG_DEPS-perl-threads = perl=$(THISVER)
-
-define PKG_FILES-perl-threads
-       /usr/lib/perl5/auto/threads/threads*
-       /usr/lib/perl5/threads.pm
-       /usr/share/man/man3/threads.3*
-endef
-
-# threads-shared
-PKG_PACKAGES   += perl-threads-shared
-
-PKG_EPOCH-perl-threads-shared = 0
-PKG_VER-perl-threads-shared = 1.32
-
-PKG_SUMMARY-perl-threads-shared = \
-       Perl extension for sharing data structures between threads.
-define PKG_DESCRIPTION-perl-threads-shared
-       By default, variables are private to each thread, and each newly created thread \
-       gets a private copy of each existing variable. This module allows you to share \
-       variables across different threads (and pseudo-forks on Win32). It is used \
-       together with the threads module.  This module supports the sharing of the \
-       following data types only: scalars and scalar refs, arrays and array refs, and \
-       hashes and hash refs.
-endef
-
-PKG_DEPS-perl-threads-shared = perl=$(THISVER)
-
-define PKG_FILES-perl-threads-shared
-       /usr/lib/perl5/auto/threads/shared*
-       /usr/lib/perl5/threads/shared*
-       /usr/share/man/man3/threads::shared*
-endef
-
-# version
-PKG_PACKAGES   += perl-version
-
-PKG_EPOCH-perl-version = 0
-PKG_VER-perl-version = 0.82
-PKG_ARCH-perl-version = noarch
-
-PKG_SUMMARY-perl-version = \
-       Perl extension for Version Objects.
-define PKG_DESCRIPTION-perl-version
-       Perl extension for Version Objects.
-endef
-
-PKG_DEPS-perl-version = perl=$(THISVER)
-
-define PKG_FILES-perl-version
-       /usr/share/perl5/version.pm
-       /usr/share/perl5/version.pod
-       /usr/share/perl5/version/
-       /usr/share/man/man3/version.3*
-       /usr/share/man/man3/version::Internals.3*
-endef
-
-# core
-PKG_PACKAGES   += perl-core
-
-PKG_EPOCH-perl-core = 0
-PKG_VER-perl-core = $(PKG_VER)
-
-PKG_SUMMARY-perl-core = \
-       Base perl metapackage.
-define PKG_DESCRIPTION-perl-core
-       A metapackage which requires all of the perl bits and modules in the upstream \
-       tarball from perl.org.
-endef
-
-PKG_DEPS-perl-core = perl=$(THISVER) $(PKG_PACKAGES)
-
-PKG_FILES-perl-core = Nothing. Nada. Zilch. Zarro. Uh uh. Nope. Sorry.
+               make %{PARALLELISMFLAGS}
+       end
+
+#      test
+#              make test
+#      end
+
+       install_cmds
+               # Remove precreated directories
+               rm -rfv %{BUILDROOT}/usr/local
+       end
+end
+
+quality-agent
+       whitelist_rpath
+               /lib
+               /usr/lib
+               /usr/lib/perl5/CORE
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       %{name}-libs=%{thisver}
+               end
+
+               provides
+                       # These provides are needed by the perl pkg itself with auto-generated perl.req
+                       %{name}(VMS::Filespec)
+                       %{name}(VMS::Stdio)
+       
+                       # Compat provides
+                       %{name}(:MODULE_COMPAT_5.12.3)
+                       %{name}(:MODULE_COMPAT_5.12.2)
+                       %{name}(:MODULE_COMPAT_5.12.1)
+                       %{name}(:MODULE_COMPAT_5.12.0)
+       
+                       # Threading provides
+                       %{name}(:WITH_ITHREADS)
+                       %{name}(:WITH_THREADS)
+       
+                       # Largefile provides
+                       %{name}(:WITH_LARGEFILES)
+
+                       # PerlIO provides
+                       %{name}(:WITH_PERLIO)
+       
+                       # File provides
+                       %{name}(abbrev.pl)
+                       %{name}(assert.pl)
+                       %{name}(bigfloat.pl)
+                       %{name}(bigint.pl)
+                       %{name}(bigrat.pl)
+                       %{name}(bytes_heavy.pl)
+                       %{name}(cacheout.pl)
+                       %{name}(complete.pl)
+                       %{name}(ctime.pl)
+                       %{name}(dotsh.pl)
+                       %{name}(dumpvar.pl)
+                       %{name}(exceptions.pl)
+                       %{name}(fastcwd.pl)
+                       %{name}(find.pl)
+                       %{name}(finddepth.pl)
+                       %{name}(flush.pl)
+                       %{name}(ftp.pl)
+                       %{name}(getcwd.pl)
+                       %{name}(getopt.pl)
+                       %{name}(getopts.pl)
+                       %{name}(hostname.pl)
+                       %{name}(importenv.pl)
+                       %{name}look.pl)
+                       %{name}(newgetopt.pl)
+                       %{name}(open2.pl)
+                       %{name}(open3.pl)
+                       %{name}(perl5db.pl)
+                       %{name}(pwd.pl)
+                       %{name}(shellwords.pl)
+                       %{name}(stat.pl)
+                       %{name}(syslog.pl)
+                       %{name}(tainted.pl)
+                       %{name}(termcap.pl)
+                       %{name}(timelocal.pl)
+                       %{name}(utf8_heavy.pl)
+                       %{name}(validate.pl)
+                       %{name}(Carp)
+                       %{name}(Carp::Heavy)
+                       %{name}(Exporter)
+                       %{name}(File::Basename)
+                       %{name}(constant)
+                       %{name}(strict)
+                       %{name}(vars)
+               end
+       end
+       
+       package %{name}-libs
+               template LIBS
+       
+               provides
+                       libperl.so
+               end
+       
+               files
+                       /usr/lib/perl5/CORE/libperl.so
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               files
+                       /usr/bin/enc2xs
+                       /usr/share/man/man1/enc2xs*
+                       /usr/share/perl5/Encode/
+                       /usr/bin/h2xs
+                       /usr/share/man/man1/h2xs*
+                       /usr/bin/libnetcfg
+                       /usr/share/man/man1/libnetcfg*
+                       /usr/bin/perlivp
+                       /usr/share/man/man1/perlivp*
+                       /usr/lib/perl5/CORE/*.h
+                       /usr/bin/xsubpp
+                       /usr/share/man/man1/xsubpp*
+                       /usr/share/man/man1/perlxs*
+               end
+       end
+       
+       #package %{name}-tests
+       #       summary = Testsuite to check your Perl installation.
+       #       description-perl-tests
+       #               This package contains the test suite included with perl %{thisver}.
+       #               Install this if you want to test your Perl installation (binary and core
+       #               modules).
+       #       end
+       #
+       #       files
+       #               /usr/lib/perl5-tests
+       #       end
+       #end
+       
+       package %{name}-Archive-Extract
+               epoch = 0
+               version = 0.38
+               arch = noarch
+       
+               summary = Generic archive extracting mechanism.
+               description
+                       Archive::Extract is a generic archive extraction mechanism.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Archive/Extract.pm
+                       /usr/share/man/man3/Archive::Extract.3*
+               end
+       end
+       
+       package %{name}-Archive-Tar
+               epoch = 0
+               version = 1.54
+               arch = noarch
+       
+               summary = A module for Perl manipulation of .tar files.
+               description
+                       Archive::Tar provides an object oriented mechanism for handling tar files. It
+                       provides class methods for quick and easy files handling while also allowing
+                       for the creation of tar file objects for custom manipulation. If you have the
+                       IO::Zlib module installed, Archive::Tar will also support compressed or
+                       gzipped tar files.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/bin/ptar
+                       /usr/bin/ptardiff
+                       /usr/share/perl5/Archive/Tar.pm
+                       /usr/share/man/man1/ptar.1*
+                       /usr/share/man/man1/ptardiff.1*
+                       /usr/share/man/man3/Archive::Tar*
+               end
+       end
+       
+       package %{name}-Compress-Raw-Zlib
+               epoch = 0
+               version = 2.024
+
+               summary = Low-Level Interface to the zlib compression library.
+               description
+                       This module provides a Perl interface to the zlib compression library.
+                       It is used by IO::Compress::Zlib.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Compress/Raw/Zlib/
+                       /usr/share/man/man3/Compress::Raw::Zlib*
+               end
+       end
+       
+       package %{name}-CPAN
+               epoch = 0
+               version = 1.9402
+               arch = noarch
+       
+               summary = Query, download and build perl modules from CPAN sites.
+               description
+                       Query, download and build perl modules from CPAN sites.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       perl(Digest::SHA)
+               end
+       
+               provides
+                       cpan
+                       cpan=$(version-perl-CPAN)
+               end
+       
+               files
+                       /usr/bin/cpan
+                       /usr/share/perl5/CPAN*
+                       /usr/share/man/man1/cpan.1*
+                       /usr/share/man/man3/CPAN*
+               end
+       end
+
+       package %{name}-CPANPLUS
+               epoch = 0
+               version = 0.9
+               arch = noarch
+       
+               summary = API & CLI access to the CPAN mirrors.
+               description
+                       The CPANPLUS library is an API to the CPAN mirrors and a collection of
+                       interactive shells, commandline programs, etc, that use this API.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       %{name}(Digest::SHA)
+                       %{name}(Module::Pluggable)>=2.4
+                       %{name}(Module::CoreList)
+                       %{name}(DBIx::Simple)
+               end
+       
+               provides
+                       %{name}-CPANPLUS-Dist-Build=0.06
+               end
+       
+               files
+                       /usr/bin/cpan2dist
+                       /usr/bin/cpanp
+                       /usr/bin/cpanp-run-perl
+                       /usr/share/perl5/CPANPLUS*
+                       /usr/share/man/man1/cpan2dist.1*
+                       /usr/share/man/man1/cpanp.1*
+                       /usr/share/man/man3/CPANPLUS*
+               end
+       end
+       
+       package %{name}-Digest-SHA
+               epoch = 0
+               version = 5.47
+       
+               summary = Perl extension for SHA-1/224/256/384/512.
+               description
+                       Digest::SHA is a complete implementation of the NIST Secure Hash
+                       Standard.  It gives Perl programmers a convenient way to calculate
+                       SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 message digests. The
+                       module can handle all types of input, including partial-byte data.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/bin/shasum
+                       /usr/share/perl5/Digest*
+                       /usr/share/man/man1/shasum.1*
+                       /usr/share/man/man3/Digest::SHA.3*
+               end
+       end
+       
+       package %{name}-ExtUtils-CBuilder
+               epoch = 0
+               version = 0.27
+               arch = noarch
+
+               summary = Compile and link C code for Perl modules.
+               description
+                       This module can build the C portions of Perl modules by invoking the
+                       appropriate compilers and linkers in a cross-platform manner. It was
+                       motivated by the Module::Build project, but may be useful for other
+                       purposes as well.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       %{name}-devel
+               end
+       
+               files
+                       /usr/share/perl5/ExtUtils/CBuilder*
+                       /usr/share/man/man3/ExtUtils::CBuilder*
+               end
+       end
+       
+       package %{name}-ExtUtils-Embed
+               epoch = 0
+               version = 1.28
+               arch = noarch
+       
+               summary = Utilities for embedding Perl in C/C++ applications.
+               description
+                       Utilities for embedding Perl in C/C++ applications.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       %{name}-devel
+               end
+       
+               files
+                       /usr/share/perl5/ExtUtils/Embed*
+                       /usr/share/man/man3/ExtUtils::Embed*
+               end
+       end
+       
+       package %{name}-ExtUtils-MakeMaker
+               epoch = 0
+               version = 6.56
+               arch = noarch
+       
+               summary = Create a module Makefile.
+               description
+                       Create a module Makefile.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       %{name}-devel
+                       %{name}(Test::Harness)
+               end
+
+               files
+                       /usr/bin/instmodsh
+                       /usr/share/perl5/ExtUtils/Command/
+                       /usr/share/perl5/ExtUtils/Install.pm
+                       /usr/share/perl5/ExtUtils/Installed.pm
+                       /usr/share/perl5/ExtUtils/Liblist/
+                       /usr/share/perl5/ExtUtils/Liblist.pm
+                       /usr/share/perl5/ExtUtils/MakeMaker/
+                       /usr/share/perl5/ExtUtils/MakeMaker.pm
+                       /usr/share/perl5/ExtUtils/MANIFEST.SKIP
+                       /usr/share/perl5/ExtUtils/MM*.pm
+                       /usr/share/perl5/ExtUtils/MY.pm
+                       /usr/share/perl5/ExtUtils/Manifest.pm
+                       /usr/share/perl5/ExtUtils/Mkbootstrap.pm
+                       /usr/share/perl5/ExtUtils/Mksymlists.pm
+                       /usr/share/perl5/ExtUtils/Packlist.pm
+                       /usr/share/perl5/ExtUtils/testlib.pm
+                       /usr/share/man/man1/instmodsh.1*
+                       /usr/share/man/man3/ExtUtils::Command::MM*
+                       /usr/share/man/man3/ExtUtils::Install.3*
+                       /usr/share/man/man3/ExtUtils::Installed.3*
+                       /usr/share/man/man3/ExtUtils::Liblist.3*
+                       /usr/share/man/man3/ExtUtils::MM*
+                       /usr/share/man/man3/ExtUtils::MY.3*
+                       /usr/share/man/man3/ExtUtils::MakeMaker*
+                       /usr/share/man/man3/ExtUtils::Manifest.3*
+                       /usr/share/man/man3/ExtUtils::Mkbootstrap.3*
+                       /usr/share/man/man3/ExtUtils::Mksymlists.3*
+                       /usr/share/man/man3/ExtUtils::Packlist.3*
+                       /usr/share/man/man3/ExtUtils::testlib.3*
+               end
+       end
+       
+       package %{name}-ExtUtils-ParseXS
+               epoch = 0
+               version = 2.21
+               arch = noarch
+
+               summary = Module and a script for converting Perl XS code into C code.
+               description
+                       ExtUtils::ParseXS will compile XS code into C code by embedding the
+                       constructs necessary to let C functions manipulate Perl values and creates
+                       the glue necessary to let Perl access those functions.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       %{name}-devel
+               end
+       
+               files
+                       /usr/share/perl5/ExtUtils/ParseXS.pm
+                       /usr/share/perl5/ExtUtils/xsubpp
+                       /usr/share/man/man3/ExtUtils::ParseXS.3*
+               end
+       end
+       
+       package %{name}-File-Fetch
+               epoch = 0
+               version = 6.56
+               arch = noarch
+
+               summary = Generic file fetching mechanism.
+               description
+                       File::Fetch is a generic file fetching mechanism.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       %{name}(IPC::Cmd)>=0.36
+                       %{name}(Module::Load::Conditional)>=0.04
+                       %{name}(Params::Check)>=0.07
+               end
+       
+               files
+                       /usr/share/perl5/File/Fetch.pm
+                       /usr/share/man/man3/File::Fetch.3*
+               end
+       end
+       
+       package %{name}-IO-Compress
+               epoch = 0
+               version = 2.026
+       
+               summary = IO::Compress wrapper for modules.
+               description
+                       This module is the base class for all IO::Compress and IO::Uncompress
+                       modules. This module is not intended for direct use in application code.
+                       Its sole purpose is to to be sub-classed by IO::Compress modules.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               provides
+                       %{name}(IO::Uncompress::Bunzip2)
+               end
+       
+               files
+                       /usr/share/perl5/Compress/Zlib.pm
+                       /usr/lib/perl5/auto/Compress/Zlib/
+                       /usr/share/man/man3/Compress::Zlib*
+                       /usr/share/perl5/File/GlobMapper.pm
+                       /usr/share/perl5/IO/Compress/Base/
+                       /usr/share/perl5/IO/Compress/Base.pm
+                       /usr/share/perl5/IO/Uncompress/AnyUncompress.pm
+                       /usr/share/perl5/IO/Uncompress/Base.pm
+                       /usr/share/man/man3/File::GlobMapper.*
+                       /usr/share/man/man3/IO::Compress::Base.*
+                       /usr/share/man/man3/IO::Uncompress::AnyUncompress.*
+                       /usr/share/man/man3/IO::Uncompress::Base.*
+               end
+       end
+       
+       package %{name}-IO-Zlib
+               epoch = 0
+               version = 1.10
+               arch = noarch
+
+               summary = Perl IO:: style interface to Compress::Zlib.
+               description
+                       This modules provides an IO:: style interface to the Compress::Zlib
+                       package. The main advantage is that you can use an IO::Zlib object in much
+                       the same way as an IO::File object so you can have common code that doesn't
+                       know which sort of file it is using.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       %{name}(Compress::Zlib)
+               end
+       
+               files
+                       /usr/share/perl5/IO/Zlib.pm
+                       /usr/share/man/man3/IO::Zlib.*
+               end
+       end
+       
+       package %{name}-IPC-Cmd
+               epoch = 0
+               version = 0.54
+               arch = noarch
+       
+               summary = Finding and running system commands made easy.
+               description
+                       IPC::Cmd allows you to run commands, interactively if desired, in a
+                       platform independent way, but have them still work.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/IPC/Cmd.pm
+                       /usr/share/man/man3/IPC::Cmd.3*
+               end
+       end
+       
+       package %{name}-Locale-Maketext-Simple
+               epoch = 0
+               version = 0.21
+               arch = noarch
+               license = MIT
+       
+               summary = Simple interface to Locale::Maketext::Lexicon.
+               description
+                       This module is a simple wrapper around Locale::Maketext::Lexicon, designed
+                       to alleviate the need of creating Language Classes for module authors.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Locale/Maketext/Simple.pm
+                       /usr/share/man/man3/Locale::Maketext::Simple.*
+               end
+       end
+       
+       package %{name}-Log-Message
+               epoch = 0
+               version = 0.02
+               arch = noarch
+       
+               summary = Generic message storage mechanism.
+               description
+                       Log::Message is a generic message storage mechanism. It allows you to store
+                       messages on a stack -- either shared or private -- and assign meta-data to it.
+                       Some meta-data will automatically be added for you, like a timestamp and a
+                       stack trace, but some can be filled in by the user, like a tag by which to
+                       identify it or group it, and a level at which to handle the message (for
+                       example, log it, or die with it).
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               provides
+                       %{name}(Log::Message::Handlers)=%{version}
+               end
+
+               files
+                       /usr/share/perl5/Log/Message.pm
+                       /usr/share/perl5/Log/Message/Config.pm
+                       /usr/share/perl5/Log/Message/Handlers.pm
+                       /usr/share/perl5/Log/Message/Item.pm
+                       /usr/share/man/man3/Log::Message.3*
+                       /usr/share/man/man3/Log::Message::Config.3*
+                       /usr/share/man/man3/Log::Message::Handlers.3*
+                       /usr/share/man/man3/Log::Message::Item.3*
+               end
+       end
+       
+       package %{name}-Log-Message-Simple
+               epoch = 0
+               version = 0.06
+               arch = noarch
+       
+               summary = Simplified frontend to Log::Message.
+               description
+                       This module provides standardized logging facilities using the
+                       Log::Message module.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Log/Message/Simple.pm
+                       /usr/share/man/man3/Log::Message::Simple.3*
+               end
+       end
+       
+       package %{name}-Module-Build
+               epoch = 0
+               version = 0.3603
+               arch = noarch
+       
+               summary = Perl module for building and installing Perl modules.
+               description
+                       Module::Build is a system for building, testing, and installing Perl modules.
+                       It is meant to be an alternative to ExtUtils::MakeMaker.  Developers may alter
+                       the behavior of the module through subclassing in a much more straightforward
+                       way than with MakeMaker. It also does not require a make on your system - most
+                       of the Module::Build code is pure-perl and written in a very cross-platform
+                       way. In fact, you don't even need a shell, so even platforms like MacOS
+                       (traditional) can use it fairly easily. Its only prerequisites are modules that
+                       are included with perl 5.6.0, and it works fine on perl 5.005 if you can
+                       install a few additional modules.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+                       %{name}(Archive::Tar)>=1.08
+                       %{name}(ExtUtils::CBuilder)>=0.15
+                       %{name}(ExtUtils::ParseXS)>=1.02
+               end
+       
+               files
+                       /usr/bin/config_data
+                       /usr/share/perl5/inc/
+                       /usr/share/perl5/Module/Build*
+                       /usr/share/man/man1/config_data.1*
+                       /usr/share/man/man3/Module::Build*
+                       /usr/share/man/man3/inc::latest.3*
+               end
+       end
+       
+       package %{name}-Module-CoreList
+               epoch = 0
+               version = 2.29
+               arch = noarch
+       
+               summary = Perl core modules indexed by perl versions.
+               description
+                       Module::CoreList contains the hash of hashes %Module::CoreList::version, this
+                       is keyed on perl version as indicated in $].  The second level hash is module
+                       => version pairs.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/bin/corelist
+                       /usr/share/perl5/Module/CoreList.pm
+                       /usr/share/man/man1/corelist*
+                       /usr/share/man/man3/Module::CoreList*
+               end
+       end
+       
+       package %{name}-Module-Load
+               epoch = 0
+               version = 0.16
+               arch = noarch
+       
+               summary = Runtime require of both modules and files.
+               description
+                       Module::Load eliminates the need to know whether you are trying to require
+                       either a file or a module.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Module/Load.pm
+                       /usr/share/man/man3/Module::Load.*
+               end
+       end
+       
+       package %{name}-Module-Load-Conditional
+               epoch = 0
+               version = 0.34
+               arch = noarch
+       
+               summary = Looking up module information / loading at runtime.
+               description
+                       Module::Load::Conditional provides simple ways to query and possibly load
+                       any of the modules you have installed on your system during runtime.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Module/Load/
+                       /usr/share/man/man3/Module::Load::Conditional*
+               end
+       end
+       
+       package %{name}-Module-Loaded
+               epoch = 0
+               version = 0.06
+               arch = noarch
+       
+               summary = Mark modules as loaded or unloaded.
+               description
+                       When testing applications, often you find yourself needing to provide
+                       functionality in your test environment that would usually be provided by
+                       external modules. Rather than munging the %INC by hand to mark these external
+                       modules as loaded, so they are not attempted to be loaded by perl, this module
+                       offers you a very simple way to mark modules as loaded and/or unloaded.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Module/Loaded.pm
+                       /usr/share/man/man3/Module::Loaded*
+               end
+       end
+       
+       package %{name}-Module-Plugable
+               epoch = 0
+               version = 3.90
+               arch = noarch
+
+               summary = Automatically give your module the ability to have plugins.
+               description
+                       Provides a simple but, hopefully, extensible way of having 'plugins' for
+                       your module.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Devel/InnerPackage.pm
+                       /usr/share/perl5/Module/Pluggable/
+                       /usr/share/perl5/Module/Pluggable.pm
+                       /usr/share/man/man3/Devel::InnerPackage*
+                       /usr/share/man/man3/Module::Pluggable*
+               end
+       end
+
+       package %{name}-Object-Accessor
+               epoch = 0
+               version = 0.36
+               arch = noarch
+       
+               summary = Perl module that allows per object accessors.
+               description
+                       Object::Accessor provides an interface to create per object accessors (as
+                       opposed to per Class accessors, as, for example, Class::Accessor provides).
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Object/
+                       /usr/share/man/man3/Object::Accessor*
+               end
+       end
+       
+       package %{name}-Package-Constants
+               epoch = 0
+               version = 0.02
+               arch = noarch
+       
+               summary = List all constants declared in a package.
+               description
+                       Package::Constants lists all the constants defined in a certain package.  This
+                       can be useful for, among others, setting up an autogenerated @EXPORT/@EXPORT_OK
+                       for a Constants.pm file.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/share/perl5/Package/
+                       /usr/share/man/man3/Package::Constants*
+               end
+       end
+       
+       package %{name}-Params-Check
+               epoch = 0
+               version = 0.26
+               arch = noarch
+       
+               summary = Generic input parsing/checking mechanism.
+               description
+                       Params::Check is a generic input parsing/checking mechanism.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+
+               provides
+                       %{name}(Params::Check)
+               end
+       
+               files
+                       /usr/share/perl5/Params/
+                       /usr/share/man/man3/Params::Check*
+               end
+       end
+       
+       package %{name}-Parse-CPAN-Meta
+               epoch = 0
+               version = 1.40
+               arch = noarch
+
+               summary = Parse META.yml and other similar CPAN metadata files.
+               description
+                       Parse::CPAN::Meta is a parser for META.yml files, based on the parser half of
+                       YAML::Tiny.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/share/perl5/Parse/CPAN/Meta.pm
+                       /usr/share/man/man3/Parse::CPAN::Meta.3*
+               end
+       end
+       
+       package %{name}-Path-Tools
+               epoch = 0
+               version = 3.31
+               license = (GPL+ or Artistic) and BSD
+       
+               summary = PathTools Perl module (Cwd, File::Spec).
+               description
+                       PathTools Perl module (Cwd, File::Spec).
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/lib/perl5/Cwd.pm
+                       /usr/lib/perl5/File/Spec*
+                       /usr/share/man/man3/Cwd*
+                       /usr/share/man/man3/File::Spec*
+               end
+       end
+       
+       package %{name}-Pod-Escapes
+               epoch= 0
+               version = 1.04
+               arch = noarch
+       
+               summary = Perl module for resolving POD escape sequences.
+               description
+                       This module provides things that are useful in decoding Pod E<...> sequences.
+                       Presumably, it should be used only by Pod parsers and/or formatters.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Pod/Escapes.pm
+                       /usr/share/man/man3/Pod::Escapes.*
+               end
+       end
+       
+       package %{name}-Pod-Simple
+               epoch = 0
+               version = 3.13
+               arch = noarch
+       
+               summary = Framework for parsing POD documentation.
+               description
+                       Pod::Simple is a Perl library for parsing text in the Pod (plain old
+                       documentation) markup language that is typically used for writing
+                       documentation for Perl and for Perl modules.
+               end
+       
+               requires
+                       %{name}=%{thisver}
+               end
+       
+               files
+                       /usr/share/perl5/Pod/Simple/
+                       /usr/share/perl5/Pod/Simple.pm
+                       /usr/share/perl5/Pod/Simple.pod
+                       /usr/share/man/man3/Pod::Simple*
+               end
+       end
+       
+       package %{name}-Term-UI
+               epoch = 0
+               version = 0.20
+               arch = noarch
+
+               summary = Term::ReadLine UI made easy.
+               description
+                       Term::UI is a transparent way of eliminating the overhead of having to format
+                       a question and then validate the reply, informing the user if the answer was not
+                       proper and re-issuing the question.
+               end
+
+               requires
+                       %{name}=%{thisver}
+                       %{name}(Log::Message::Simple)
+               end
+
+               files
+                       /usr/share/perl5/Term/UI/
+                       /usr/share/perl5/Term/UI.pm
+                       /usr/share/man/man3/Term::UI*
+               end
+       end
+
+       package %{name}-Test-Harness
+               epoch = 0
+               version = 3.17
+               arch = noarch
+
+               summary = Run Perl standard test scripts with statistics.
+               description
+                       Run Perl standard test scripts with statistics.
+                       Use TAP::Parser, Test::Harness package was whole rewritten.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/bin/prove
+                       /usr/share/perl5/App*
+                       /usr/share/perl5/TAP*
+                       /usr/share/perl5/Test/Harness*
+                       /usr/share/man/man1/prove.1*
+                       /usr/share/man/man3/App*
+                       /usr/share/man/man3/TAP*
+                       /usr/share/man/man3/Test::Harness*
+               end
+       end
+
+       package %{name}-Test-Simple
+               epoch = 0
+               version = 0.94
+               arch = noarch
+
+               summary = Basic utilities for writing tests.
+               description
+                       Basic utilities for writing tests.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/share/perl5/Test/More*
+                       /usr/share/perl5/Test/Builder*
+                       /usr/share/perl5/Test/Simple*
+                       /usr/share/perl5/Test/Tutorial*
+                       /usr/share/man/man3/Test::More*
+                       /usr/share/man/man3/Test::Builder*
+                       /usr/share/man/man3/Test::Simple*
+                       /usr/share/man/man3/Test::Tutorial*
+               end
+       end
+
+       package %{name}-Time-Piece
+               epoch = 0
+               version = 1.15
+
+               summary = Time objects from localtime and gmtime.
+               description
+                       The Time::Piece module replaces the standard localtime and gmtime functions
+                       with implementations that return objects.  It does so in a backwards compatible
+                       manner, so that using localtime or gmtime as documented in perlfunc still
+                       behave as expected.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/lib/perl5/Time/Piece.pm
+                       /usr/lib/perl5/Time/Seconds.pm
+                       /usr/lib/perl5/auto/Time/Piece/
+                       /usr/share/man/man3/Time::Piece.3*
+                       /usr/share/man/man3/Time::Seconds.3*
+               end
+       end
+
+       package %{name}-parent
+               epoch = 0
+               version = 0.223
+               arch = noarch
+
+               summary = Establish an ISA relationship with base classes at compile time.
+               description
+                       parent allows you to both load one or more modules, while setting up
+                       inheritance from those modules at the same time.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/share/perl5/parent.pm
+                       /usr/share/man/man3/parent.3*
+               end
+       end
+
+       package %{name}-threads
+               epoch = 0
+               version = 1.75
+
+               summary = Perl interpreter-based threads.
+               description
+                       Since Perl 5.8, thread programming has been available using a model called
+                       interpreter threads  which provides a new Perl interpreter for each thread,
+                       and, by default, results in no data or state information being shared between
+                       threads. (Prior to Perl 5.8, 5005threads was available through the Thread.pm
+                       API. This threading model has been deprecated, and was removed as of Perl
+                       5.10.0.) As just mentioned, all variables are, by default, thread local. To use
+                       shared variables, you need to also load threads::shared.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/lib/perl5/auto/threads/threads*
+                       /usr/lib/perl5/threads.pm
+                       /usr/share/man/man3/threads.3*
+               end
+       end
+
+       package %{name}-threads-shared
+               epoch = 0
+               version = 1.32
+
+               summary = Perl extension for sharing data structures between threads.
+               description
+                       By default, variables are private to each thread, and each newly created thread
+                       gets a private copy of each existing variable. This module allows you to share
+                       variables across different threads (and pseudo-forks on Win32). It is used
+                       together with the threads module.  This module supports the sharing of the
+                       following data types only: scalars and scalar refs, arrays and array refs, and
+                       hashes and hash refs.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/lib/perl5/auto/threads/shared*
+                       /usr/lib/perl5/threads/shared*
+                       /usr/share/man/man3/threads::shared*
+               end
+       end
+
+       package %{name}-version
+               epoch = 0
+               version = 0.82
+               arch = noarch
+
+               summary = Perl extension for Version Objects.
+               description
+                       Perl extension for Version Objects.
+               end
+
+               requires
+                       %{name}=%{thisver}
+               end
+
+               files
+                       /usr/share/perl5/version.pm
+                       /usr/share/perl5/version.pod
+                       /usr/share/perl5/version/
+                       /usr/share/man/man3/version.3*
+                       /usr/share/man/man3/version::Internals.3*
+               end
+       end
+
+       package %{name}-core
+               epoch = 0
+
+               summary = Base perl metapackage.
+               description
+                       A metapackage which requires all of the perl bits and modules in the upstream
+                       tarball from perl.org.
+               end
+
+               requires
+                       %{name}=%{thisver}
+                       %{name}-libs
+                       %{name}-devel
+                       %{name}-Archive-Extract
+                       %{name}-Archive-Tar
+                       %{name}-Compress-Raw-Zlib
+                       %{name}-CPAN
+                       %{name}-CPANPLUS
+                       %{name}-Digest-SHA
+                       %{name}-ExtUtils-CBuilder
+                       %{name}-ExtUtils-Embed
+                       %{name}-ExtUtils-MakeMaker
+                       %{name}-ExtUtils-ParseXS
+                       %{name}-File-Fetch
+                       %{name}-IO-Compress
+                       %{name}-IO-Zlib
+                       %{name}-IPC-Cmd
+                       %{name}-Locale-Maketext-Simple
+                       %{name}-Log-Message
+                       %{name}-Log-Message-Simple
+                       %{name}-Module-Build
+                       %{name}-Module-CoreList
+                       %{name}-Module-Load
+                       %{name}-Module-Load-Conditional
+                       %{name}-Module-Loaded
+                       %{name}-Module-Plugable
+                       %{name}-Object-Accessor
+                       %{name}-Package-Constants
+                       %{name}-Params-Check
+                       %{name}-Parse-CPAN-Meta
+                       %{name}-Path-Tools
+                       %{name}-Pod-Simple
+                       %{name}-Term-UI
+                       %{name}-Test-Harness
+                       %{name}-Test-Simple
+                       %{name}-Time-Piece
+                       %{name}-parent
+                       %{name}-threads
+                       %{name}-threads-shared
+                       %{name}-version
+               end
+
+               # Nothing. Nada. Zilch. Zarro. Uh uh. Nope. Sorry.
+               files
+               end
+       end
+end
index 6bbcbf49df4ed8c6fbb7834e5922398158f5019e..ce91c338b9e6e7734e072ce55c5b9be7bb0e9a00 100644 (file)
@@ -1,53 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pinentry
-PKG_VER        = 0.7.6
-PKG_REL        = 0
+name       = pinentry
+version    = 0.7.6
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnupg.org
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Collection of simple PIN or passphrase entry dialogs.
+groups     = System/Libraries
+url        = http://www.gnupg.org
+license    = GPLv2
+summary    = Collection of simple PIN or passphrase entry dialogs.
 
-PKG_BUILD_DEPS+= libgpg-error-devel ncurses-devel
-
-define PKG_DESCRIPTION
-       Pinentry is a collection of simple PIN or passphrase entry dialogs which \
-       utilize the Assuan protocol as described by the aegypten project; see \
-       http://www.gnupg.org/aegypten/ for details. This package contains the \
+description
+       Pinentry is a collection of simple PIN or passphrase entry dialogs which
+       utilize the Assuan protocol as described by the aegypten project; see
+       http://www.gnupg.org/aegypten/ for details. This package contains the
        curses (text) based version of the PIN entry dialog.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --enable-pin-entry-curses \
-       --enable-fallback-curses \
-       --disable-pinentry-gtk \
-       --disable-pinentry-gtk2 \
-       --disable-pinentry-qt
+end
+
+source_dl  =
+
+build
+       requires
+               libgpg-error-devel
+               ncurses-devel
+       end
+
+       configure_options += \
+               --enable-pin-entry-curses \
+               --enable-fallback-curses \
+               --disable-pinentry-gtk \
+               --disable-pinentry-gtk2 \
+               --disable-pinentry-qt
+end
+
+packages
+       package %{name}
+end
index 53d7d15801cc7fba04fdfa0821d7157fccd7fb69..850466a1fc37e865a881bfb3f2aafe5135896687 100644 (file)
@@ -1,45 +1,35 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pixman
-PKG_VER        = 0.18.4
-PKG_REL        = 2
+name       = pixman
+version    = 0.18.4
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://xorg.freedesktop.org/archive/individual/lib/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Pixel manipulation library.
+groups     = System/Libraries
+url        = http://xorg.freedesktop.org/archive/individual/lib/
+license    = MIT
+summary    = Pixel manipulation library.
 
-PKG_BUILD_DEPS+= perl pkg-config
-
-define PKG_DESCRIPTION
+description
        Pixman is a pixel manipulation library for X and cairo.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
+end
+
+source_dl  =
+
+build
+       requires
+               perl
+               pkg-config
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index aca54ba6246a757acf6d8df7f85793139416b8bb..25b01b3499e8b1398210ec626fbb9d8247475117 100644 (file)
@@ -1,55 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pkg-config
-PKG_VER        = 0.25
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://pkg-config.freedesktop.org/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A tool for determining compilation options.
+name       = pkg-config
+version    = 0.25
+release    = 1
 
-PKG_BUILD_DEPS+= m4 popt-devel sed
+groups     = Build Development/Tools
+url        = http://pkg-config.freedesktop.org/
+license    = GPLv2
+summary    = A tool for determining compilation options.
 
-# Say we provide an alternative spelling of the package name.
-PKG_PROVIDES  += pkgconfig
-
-define PKG_DESCRIPTION
-       The pkgconfig tool determines compilation options. For each required \
-       library, it reads the configuration file and outputs the necessary \
+description
+       The pkgconfig tool determines compilation options. For each required
+       library, it reads the configuration file and outputs the necessary
        compiler and linker flags.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --with-installed-popt
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               m4
+               popt-devel
+               sed
+       end
+
+       configure_options += \
+               --with-installed-popt
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+               # Say we provide an alternative spelling of the package name.
+               provides = pkgconfig
+       end
+end
index 6177047e793af5912310bb8af0a847233cb27943..ac0e039169c60c095f30b2883d3ce7fb6a6e9a14 100644 (file)
@@ -1,59 +1,54 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = polkit
-PKG_VER        = 0.96
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.freedesktop.org/wiki/Software/PolicyKit
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = PolicyKit Authorization Framework.
+name       = polkit
+version    = 0.96
+release    = 1
 
-PKG_BUILD_DEPS+= eggdbus-devel expat-devel \
-       intltool gettext glib2-devel pam-devel perl-XML-Parser pkg-config
+groups     = System/Libraries
+url        = http://www.freedesktop.org/wiki/Software/PolicyKit
+license    = LGPLv2+
+summary    = PolicyKit Authorization Framework.
 
-define PKG_DESCRIPTION
-       PolicyKit is a toolkit for defining and handling authorizations. \
-       It is used for allowing unprivileged processes to speak to privileged \
+description
+       PolicyKit is a toolkit for defining and handling authorizations.
+       It is used for allowing unprivileged processes to speak to privileged
        processes.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libexecdir=/usr/lib/polkit-1 \
-       --localstatedir=/var \
-       --disable-introspection \
-       --disable-static
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/^SUBDIRS.*/SUBDIRS = actions data src po/" -i Makefile*
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               eggdbus-devel
+               expat-devel
+               intltool
+               gettext
+               glib2-devel
+               pam-devel
+               perl-XML-Parser
+               pkg-config
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libexecdir=/usr/lib/polkit-1 \
+               --localstatedir=/var \
+               --disable-introspection \
+               --disable-static
+
+       prepare_cmds
+               sed -e "s/^SUBDIRS.*/SUBDIRS = actions data src po/" -i Makefile*
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 24f22aa3342cecf0e71c703e917c7e345b96943d..e998cf85f8b9d4accbe4d13ad37182546deb690c 100644 (file)
@@ -1,54 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = popt
+version    = 1.15
+release    = 1
 
-PKG_NAME       = popt
-PKG_VER        = 1.15
-PKG_REL        = 0
+groups     = System/Libraries
+url        = http://www.rpm5.org/
+license    = MIT
+summary    = C library for parsing command line parameters.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.rpm5.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = C library for parsing command line parameters.
-
-define PKG_DESCRIPTION
-       Popt is a C library for parsing command line parameters. Popt was \
-       heavily influenced by the getopt() and getopt_long() functions, but \
+description
+       Popt is a C library for parsing command line parameters. Popt was
+       heavily influenced by the getopt() and getopt_long() functions, but
        it improves on them by allowing more powerful argument expansion.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
+end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+source_dl  =
 
-CONFIGURE_OPTIONS += \
+build
+       configure_options += \
                --libdir=/lib \
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -vf $(BUILDROOT)/lib/libpopt.so
-       ln -sfv ../../lib/libpopt.so.0.0.0 $(BUILDROOT)/usr/lib/libpopt.so
-endef
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -vf %{BUILDROOT}/lib/libpopt.so
+               ln -sfv ../../lib/libpopt.so.0.0.0 %{BUILDROOT}/usr/lib/libpopt.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 2c5bc574aecf01003f2eafc8b363c1aa27a0e12e..5ea577eada5b0c27b470ba82bacb43fbe57c60a0 100644 (file)
@@ -1,44 +1,31 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = powertop
+version    = 1.13
+release    = 1
 
-PKG_NAME       = powertop
-PKG_VER        = 1.13
-PKG_REL        = 0
+groups     = Applications/System
+url        = http://www.lesswatts.org/
+license    = GPLv2
+summary    = Power consumption monitor.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://www.lesswatts.org/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Power consumption monitor.
+description
+       PowerTOP is a tool that finds the software component(s) that make your
+       computer use more power than necessary while it is idle.
+end
 
-PKG_BUILD_DEPS+= gettext ncurses-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       PowerTOP is a tool that finds the software component(s) that make your \
-       computer use more power than necessary while it is idle.
-endef
+build
+       requires
+               gettext
+               ncurses-devel
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+end
index 897d76150b62e3bbb9c97361609412184393b8c8..60c5cf27fa2b61742102139610fa538e606032da 100644 (file)
@@ -1,69 +1,59 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = ppl
-PKG_VER        = 0.11.2
-PKG_REL        = 1
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://www.cs.unipr.it/ppl/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The Parma Polyhedra Library: a library of numerical abstractions.
-
-PKG_BUILD_DEPS+= autoconf automake gcc-c++ gmp-devel m4
-
-define PKG_DESCRIPTION
-       The Parma Polyhedra Library (PPL) is a library for the manipulation of \
-       (not necessarily closed) convex polyhedra and other numerical \
-       abstractions.  The applications of convex polyhedra include program \
-       analysis, optimized compilation, integer and combinatorial \
-       optimization and statistical data-editing.  The Parma Polyhedra \
-       Library comes with several user friendly interfaces, is fully dynamic \
-       (available virtual memory is the only limitation to the dimension of \
-       anything), written in accordance to all the applicable standards, \
-       exception-safe, rather efficient, thoroughly documented, and free \
-       software.  This package provides all what is necessary to run \
+name       = ppl
+version    = 0.11.2
+release    = 1
+
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Libraries
+url        = http://www.cs.unipr.it/ppl/
+license    = GPLv3+
+summary    = The Parma Polyhedra Library: a library of numerical abstractions.
+
+description
+       The Parma Polyhedra Library (PPL) is a library for the manipulation of
+       (not necessarily closed) convex polyhedra and other numerical
+       abstractions.  The applications of convex polyhedra include program
+       analysis, optimized compilation, integer and combinatorial
+       optimization and statistical data-editing.  The Parma Polyhedra
+       Library comes with several user friendly interfaces, is fully dynamic
+       (available virtual memory is the only limitation to the dimension of
+       anything), written in accordance to all the applicable standards,
+       exception-safe, rather efficient, thoroughly documented, and free
+       software.  This package provides all what is necessary to run
        applications using the PPL through its C and C++ interfaces.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.lzma
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-CONFIGURE_OPTIONS += \
-       --enable-interfaces="c cxx" \
-       --disable-debugging
-
-PARALLELISMFLAGS =
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -f
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.lzma
+
+build
+       requires
+               autoconf
+               automake
+               gcc-c++
+               gmp-devel
+               m4
+       end
+
+       configure_options += \
+               --enable-interfaces="c cxx" \
+               --disable-debugging
+
+       PARALLELISMFLAGS =
+
+       prepare_cmds
+               cd %{DIR_APP} && autoreconf -f
+       end
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+end
index de1eebbd29780ec07945c53e4a43c309562bf08d..3e35b44c10e21b421d95b43918a5c629f8fe3941 100644 (file)
@@ -1,81 +1,68 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = ppp
-PKG_VER        = 2.4.5
-PKG_REL        = 2
+name       = ppp
+version    = 2.4.5
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Daemons
-PKG_URL        = ftp://ftp.samba.org/pub/ppp/
-PKG_LICENSE    = BSD and LGPLv2+ and GPLv2+ and Public Domain
-PKG_SUMMARY    = The PPP (Point-to-Point Protocol) daemon.
+groups     = System/Daemons
+url        = ftp://ftp.samba.org/pub/ppp/
+license    = BSD and LGPLv2+ and GPLv2+ and Public Domain
+summary    = The PPP (Point-to-Point Protocol) daemon.
 
-PKG_BUILD_DEPS+= libpcap-devel linux-atm-devel openssl-devel pam-devel
-
-define PKG_DESCRIPTION
+description
        The ppp package contains the PPP (Point-to-Point Protocol) daemon and \
        documentation for PPP support. The PPP protocol provides a method for \
        transmitting datagrams over serial point-to-point links. PPP is \
        usually used to dial in to an ISP or other organization over a modem \
        and phone line.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \
-               -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
-               -i linux/Makefile.top
-
-       cd $(DIR_APP) && sed -e "s@^DESTDIR.*@DESTDIR=\$$(INSTROOT)/usr@" \
-               -i pppd/plugins/pppol2tp/Makefile.linux
-
-       # Remove broken header file that crashed the build.
-       cd $(DIR_APP) && rm -f include/linux/if_pppol2tp.h
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && \
-               ./configure \
-                       --prefix=/usr
-
-       cd $(DIR_APP) && make CC="gcc $(CFLAGS)" $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install INSTROOT=$(BUILDROOT)
-
-       rm -rfv $(BUILDROOT)/etc/ppp/plugins
-
-       -mkdir -pv $(BUILDROOT)/etc/ppp
-       touch $(BUILDROOT)/etc/ppp/secrets
-       chmod -v 600 $(BUILDROOT)/etc/ppp/secrets
-       ln -svf secrets $(BUILDROOT)/etc/ppp/pap-secrets
-       ln -svf secrets $(BUILDROOT)/etc/ppp/chap-secrets
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libpcap-devel
+               linux-atm-devel
+               openssl-devel
+               pam-devel
+       end
+
+       prepare_cmds
+               sed -e "s@^RUNDIR .*@RUNDIR = /var/run/ppp@" \
+                       -e "s@^LOGDIR .*@LOGDIR = /var/log/ppp@" \
+                       -i linux/Makefile.top
+
+               sed -e "s@^DESTDIR.*@DESTDIR=\$%{INSTROOT}/usr@" \
+                       -i pppd/plugins/pppol2tp/Makefile.linux
+
+               # Remove broken header file that crashed the build.
+               rm -f include/linux/if_pppol2tp.h
+       end
+
+       make_build_targets += \
+               CC="gcc %{CFLAGS}"
+
+       install
+               make install INSTROOT=%{BUILDROOT}
+
+               rm -rfv %{BUILDROOT}/etc/ppp/plugins
+
+               mkdir -pv %{BUILDROOT}/etc/ppp
+               touch %{BUILDROOT}/etc/ppp/secrets
+               chmod -v 600 %{BUILDROOT}/etc/ppp/secrets
+               ln -svf secrets %{BUILDROOT}/etc/ppp/pap-secrets
+               ln -svf secrets %{BUILDROOT}/etc/ppp/chap-secrets
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index da9f53f9656d9ee675c1e7132ddd791b44a0da77..0ce873d86808e1f8d7ab88af7c6f00b8e41f47d5 100644 (file)
@@ -1,57 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pptp
-PKG_VER        = 1.7.2
-PKG_REL        = 2
+name       = pptp
+version    = 1.7.2
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Dialin
-PKG_URL        = http://pptpclient.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Point-to-Point Tunneling Protocol (PPTP) Client.
+groups     = Networking/Dialin
+url        = http://pptpclient.sourceforge.net/
+license    = GPLv2+
+summary    = Point-to-Point Tunneling Protocol (PPTP) Client.
 
-PKG_BUILD_DEPS+= perl ppp-devel
-PKG_DEPS      += iproute2
-
-define PKG_DESCRIPTION
-       Client for the proprietary Microsoft Point-to-Point Tunneling \
-       Protocol, PPTP. Allows connection to a PPTP based VPN as used \
+description
+       Client for the proprietary Microsoft Point-to-Point Tunneling
+       Protocol, PPTP. Allows connection to a PPTP based VPN as used
        by employers and some cable and ADSL service providers.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i Makefile \
-               -e "s/install -o root -m 555 pptp/install -m 755 pptp/" \
-               -e "s/^OPTIMIZE=.*/OPTIMIZE=$(CFLAGS)/" \
-               -e "s/^IP.*/IP=\/sbin\/ip/"
-endef
-
-define STAGE_INSTALL_CMDS
-       rm -rvf $(BUILDROOT)/etc
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.gz
+
+build
+       requires
+               perl
+               ppp-devel
+       end
+
+       prepare_cmds
+               sed -i Makefile \
+                       -e "s/install -o root -m 555 pptp/install -m 755 pptp/" \
+                       -e "s/^OPTIMIZE=.*/OPTIMIZE=%{CFLAGS}/" \
+                       -e "s/^IP.*/IP=\/sbin\/ip/"
+       end
+
+       install_cmds
+               rm -rvf %{BUILDROOT}/etc
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       iproute2
+               end
+       end
+end
index ed9fc3c393b10bdf33db1fd1dfd4390a1ec5c09e..45f4845d294247d6389ffd72cd5046a82363ed0e 100644 (file)
@@ -1,54 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = procps
+version    = 3.2.8
+release    = 1
 
-PKG_NAME       = procps
-PKG_VER        = 3.2.8
-PKG_REL        = 1
+groups     = Base Applications/System
+url        = http://procps.sourceforge.net/
+license    = GPLv2+ and LGPLv2+
+summary    = System and process monitoring utilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://procps.sourceforge.net/
-PKG_LICENSE    = GPLv2+ and LGPLv2+
-PKG_SUMMARY    = System and process monitoring utilities.
+description
+       The procps package contains a set of system utilities that provide
+       system information. Procps includes ps, free, skill, pkill, pgrep,
+       snice, tload, top, uptime, vmstat, w, watch and pdwx.
+end
 
-PKG_BUILD_DEPS+= libselinux-devel ncurses-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       The procps package contains a set of system utilities that provide \
-       system information. Procps includes ps, free, skill, pkill, pgrep, \
-       snice, tload, top, uptime, vmstat, w, watch and pdwx.
-endef
+build
+       requires
+               libselinux-devel
+               ncurses-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       make_build_targets += \
+               SHARED=1 \
+               CFLAGS="%{CFLAGS}" \
+               W_SHOWFROM=-DW_SHOWFROM
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make SHARED=1 CFLAGS="$(CFLAGS)" \
-               W_SHOWFROM=-DW_SHOWFROM $(PARALLELISMFLAGS)
-endef
+       install_cmds
+               chmod -R 755 %{BUILDROOT}/{bin,lib,sbin}
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       chmod -R 755 $(BUILDROOT)/{bin,lib,sbin}
-endef
+packages
+       package %{name}
+end
index 95f6126f85055ec2db69f8b193b9443dceb4f06a..3601591cf5d54c2dc504f902807b7e8c250b4ace 100644 (file)
@@ -1,52 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = psmisc
-PKG_VER        = 22.10
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://sourceforge.net/projects/psmisc
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Utilities for managing processes on your system.
+name       = psmisc
+version    = 22.10
+release    = 1
+
+groups     = Base Applications/System
+url        = http://sourceforge.net/projects/psmisc
+license    = GPLv2+
+summary    = Utilities for managing processes on your system.
+
+description
+       The psmisc package contains utilities for managing processes on your
+       system: pstree, killall and fuser. The pstree command displays a
+       tree structure of all of the running processes on your system. The
+       killall command sends a specified signal (SIGTERM if nothing is
+       specified) to processes identified by name. The fuser command
+       identifies the PIDs of processes that are using specified files or
+       filesystems.
+end
 
-PKG_BUILD_DEPS+= libselinux-devel ncurses-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       The psmisc package contains utilities for managing processes on your \
-       system: pstree, killall and fuser. The pstree command displays a \
-       tree structure of all of the running processes on your system. The \
-       killall command sends a specified signal (SIGTERM if nothing is \
-       specified) to processes identified by name. The fuser command \
-       identifies the PIDs of processes that are using specified files or \
-       filesystems.
-endef
+build
+       requires
+               libselinux-devel
+               ncurses-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --enable-selinux
+end
 
-CONFIGURE_OPTIONS += \
-       --enable-selinux
+packages
+       package %{name}
+end
index 8297b441a2c2e29b699a497d3eb578d587d0d405..832d2abbc58e28ab8a6ad55d72f5c6aa86f96298 100644 (file)
@@ -1,58 +1,47 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pth
-PKG_VER        = 2.0.7
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gnu.org/software/pth
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = GNU Pth - The GNU Portable Threads.
+name       = pth
+version    = 2.0.7
+release    = 1
 
-PKG_BUILD_DEPS+= libtool
+groups     = System/Libraries
+url        = http://www.gnu.org/software/pth
+license    = GPLv3+
+summary    = GNU Pth - The GNU Portable Threads.
 
-define PKG_DESCRIPTION
+description
        The Pth package contains a very portable POSIX/ANSI-C based library for \
        Unix platforms which provides non-preemptive priority-based scheduling for \
        multiple threads of execution (multithreading) inside event-driven \
        applications.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-PARALLELISMFLAGS = # No parallel build
-
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --mandir=/usr/share/man
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libtool
+       end
+
+       PARALLELISMFLAGS = # No parallel build
+
+       configure_options += \
+               --disable-static \
+               --mandir=/usr/share/man
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 7023d91bcd5684a26ca6f793c3b348d5d724e5d4..f553a1bcf055a0937aafc97f7de576ca0dc1f30d 100644 (file)
@@ -1,72 +1,69 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pyQt
-PKG_VER        = 4.8.1
-PKG_REL        = 0
-PKG_EPOCH      = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://www.riverbankcomputing.com/software/pyqt/
-PKG_LICENSE    = GPLv3 or GPLv2 with exceptions
-PKG_SUMMARY    = Python bindings for Qt4.
+name       = pyQt
+version    = 4.8.1
+release    = 1
+epoch      = 0
 
-PKG_BUILD_DEPS+= gcc-c++ libXext-devel python-devel qt-devel sip-devel
-PKG_DEPS      += sip
+groups     = Development/Languages
+url        = http://www.riverbankcomputing.com/software/pyqt/
+license    = GPLv3 or GPLv2 with exceptions
+summary    = Python bindings for Qt4.
 
-define PKG_DESCRIPTION
+description
         Python bindings for Qt4
-endef
+end
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+source_dl  =
+sources    = PyQt-x11-gpl-%{version}.tar.gz
 
-define PKG_FILES-$(PKG_NAME_REAL)-devel
-       /usr/bin
-       /usr/lib/python*/site-packages/PyQt4/pyqtconfig*
-       /usr/lib/python*/site-packages/PyQt4/uic/pyuic.py*
-       /usr/share/sip
-endef
+build
+       requires
+               gcc-c++
+               libXext-devel
+               python-devel
+               qt-devel
+               sip-devel
+       end
 
-PKG_TARBALL    = PyQt-x11-gpl-$(PKG_VER).tar.gz
+       DIR_APP = %{DIR_SRC}/PyQt-x11-gpl-%{version}
 
-DIR_APP        = $(DIR_SRC)/PyQt-x11-gpl-$(PKG_VER)
+       build
+               python configure.py \
+                       --assume-shared \
+                       --confirm-license \
+                       --verbose
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python configure.py \
-               --assume-shared \
-               --confirm-license \
-               --verbose
+               make %{PARALLELISMFLAGS}
+       end
 
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+       make_install_targets += \
+               INSTALL_ROOT=%{BUILDROOT}
 
-STAGE_INSTALLTARGET += INSTALL_ROOT=$(BUILDROOT)
+       install_cmds
+               # Remove python3 port
+               rm -rfv %{BUILDROOT}/usr/lib/python*/site-packages/PyQt4/uic/port_v3
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       # Remove python3 port
-       rm -rfv $(BUILDROOT)/usr/lib/python*/site-packages/PyQt4/uic/port_v3
-endef
+packages
+       package %{name}
+               requires
+                       sip
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               files
+                       /usr/bin
+                       /usr/lib/python*/site-packages/PyQt4/pyqtconfig*
+                       /usr/lib/python*/site-packages/PyQt4/uic/pyuic.py*
+                       /usr/share/sip
+               end
+       end
+end
index e4ab539ff1e4f4736538ded4c056f619ab877c6e..b255c0aab10544089ffa71589128b34f85a56503 100644 (file)
@@ -1,54 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = pychecker
+version    = 0.8.19
+release    = 2
+arch       = noarch
 
-PKG_NAME       = pychecker
-PKG_VER        = 0.8.19
-PKG_REL        = 2
-PKG_ARCH       = noarch
+groups     = Development/Debuggers
+url        = http://pychecker.sourceforge.net
+license    = BSD
+summary    = A python source code checking tool.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Debuggers
-PKG_URL        = http://pychecker.sourceforge.net
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A python source code checking tool.
+description
+       PyChecker is a python source code checking tool to help you find
+       common bugs. It is meant to find problems that are typically caught by
+       a compiler.
+end
 
-PKG_BUILD_DEPS+= python-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       PyChecker is a python source code checking tool to help you find \
-       common bugs. It is meant to find problems that are typically caught by \
-       a compiler.
-endef
+build
+       requires
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index cc4d3ad65b3c410837f2d3b85822acdef9541fe1..03b674b4d602f04805ff7e9f128036a561abd91b 100644 (file)
@@ -1,51 +1,38 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = pyfire
+version    = 0.99.1
+release    = 1
 
-include $(PKGROOT)/Include
+groups     = System/Libraries
+url        = http://www.ipfire.org
+license    = GPLv3+
+summary    = A python library for easy functions.
 
-PKG_NAME       = pyfire
-PKG_VER        = 0.99.1
-PKG_REL        = 0
+description
+       Pyfire is a library which offers a lot of easy to use functions.
+end
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.ipfire.org
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A python library for easy functions.
+build
+       requires
+               python
+       end
 
-PKG_BUILD_DEPS+= python
+       DIR_APP = %{DIR_SOURCE}/src
 
-define PKG_DESCRIPTION
-       Pyfire is a library which offers a lot of easy to use functions.
-endef
+       prepare = # Nothing to do
 
-DIR_APP       = $(DIR_SOURCE)/src
+       build = # Nothing to do
 
-STAGE_PREPARE = # Nothing to do
-STAGE_BUILD = # Nothing to do
+       install
+               make install DESTDIR=%{BUILDROOT}
+               make clean
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-       cd $(DIR_APP) && make clean
-endef
+packages
+       package %{name}
+end
index 3141808e677b3a183229460faf528724e6a701d7..ccdcc43e09681d9050a6b0e1972910408b395fc2 100644 (file)
@@ -1,59 +1,66 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pygobject2
-PKG_VER        = 2.27.0
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.pygtk.org/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Python 2 bindings for GObject.
+name       = pygobject2
+version    = 2.27.0
+release    = 1
 
-PKG_BUILD_DEPS+= autoconf automake glib2-devel gobject-introspection-devel \
-       libffi-devel libtool pkg-config python-cairo-devel python-devel
+groups     = Development/Tools
+url        = http://www.pygtk.org/
+license    = LGPLv2+
+summary    = Python 2 bindings for GObject.
 
-define PKG_DESCRIPTION
-       The $(PKG_NAME) package provides a convenient wrapper for the GObject library \
+description
+       The %{name} package provides a convenient wrapper for the GObject library
        for use in Python programs.
-endef
+end
 
-PKG_TARBALL    = pygobject-$(PKG_VER).tar.gz
-DIR_APP        = $(DIR_SRC)/pygobject-$(PKG_VER)
+source_dl  =
+sources    = pygobject-%{version}.tar.gz
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && find -name '*.py' | xargs sed -i "1s|^#!python|#!$(shell which python)|"
-endef
+build
+       requires
+               autoconf
+               automake
+               glib2-devel
+               gobject-introspection-devel
+               libffi-devel
+               libtool
+               pkg-config
+               python-cairo-devel
+               python-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-codegen $(PKG_NAME_REAL)-devel
+       DIR_APP = %{DIR_SRC}/pygobject-%{version}
 
-define PKG_FILES-$(PKG_NAME_REAL)-codegen
-       /usr/bin/pygobject-codegen-2.0
-       /usr/share/pygobject/2.0/codegen
-endef
+       prepare_cmds
+               find -name '*.py' | xargs sed -i "1s|^#!python|#!$(shell which python)|"
+       end
+end
 
-PKG_DEPS-$(PKG_NAME_REAL)-devel += glib2-devel $(PKG_NAME_REAL)-codegen
+packages
+       package %{name}
+       end
+       
+       package %{name}-codegen
+               summary = The code generation program for PyGObject.
+               description
+                       This package contains the C code generation
+                       program for PyGObject.
+               end
+       
+               files
+                       /usr/bin/pygobject-codegen-2.0
+                       /usr/share/pygobject/2.0/codegen
+               end
+       end
+       
+       package %{name}-devel
+               requires
+                       glib2-devel
+                       %{name}-codegen
+               end
+       end
+end
index d753a817867bf05dfa0554b7dc75e2d1e35c4dfc..48450d735c1cb74f9e36bcb7468373904536d01e 100644 (file)
@@ -1,57 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pyliblzma
-PKG_VER        = 0.5.3
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Debuggers
-PKG_URL        = https://launchpad.net/pyliblzma
-PKG_LICENSE    = LGPLv3+
-PKG_SUMMARY    = Python bindings for lzma
+name       = pyliblzma
+version    = 0.5.3
+release    = 1
 
-PKG_BUILD_DEPS+= pkg-config python-devel python-setuptools xz xz-devel
+groups     = Development/Debuggers
+url        = https://launchpad.net/pyliblzma
+license    = LGPLv3+
+summary    = Python bindings for lzma
 
-define PKG_DESCRIPTION
-       PylibLZMA provides a python interface for the liblzma library \
-       to read and write data that has been compressed or can be decompressed \
+description
+       PylibLZMA provides a python interface for the liblzma library
+       to read and write data that has been compressed or can be decompressed
        by Lasse Collin's lzma utils.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && python setup.py test
-endef
-
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               pkg-config
+               python-devel
+               python-setuptools
+               xz
+               xz-devel
+       end
+
+       build
+               python setup.py build
+       end
+
+       test
+               python setup.py test
+       end
+
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+end
index a6cd3dcf0245ab9c6ab3d71170089aa59f1a9511..ba33766e819750fafeb1c1140e7e494c1fccf8da 100644 (file)
@@ -1,50 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = pyserial
+version    = 2.5
+release    = 1
+arch       = noarch
 
-PKG_NAME       = pyserial
-PKG_VER        = 2.5
-PKG_REL        = 1
-PKG_ARCH       = noarch
+groups     = System/Libraries
+url        = http://pyserial.sourceforge.net/
+license    = Python
+summary    = Python Serial Port Extension.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://pyserial.sourceforge.net/
-PKG_LICENSE    = Python
-PKG_SUMMARY    = Python Serial Port Extension.
+description
+       Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython.
+end
 
-PKG_BUILD_DEPS+= python-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython.
-endef
+build
+       requires
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build = # Nothing to do
 
-STAGE_BUILD = # Nothing to do
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index 1206f0545ebaf6fed0bfcbc3de9c568cf9c2e3be..345f4e33cc7bd010f372b7ea2b5d507ec7cb2688 100644 (file)
@@ -1,53 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = IPy
-PKG_VER        = 0.62
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = python-IPy
+version    = 0.62
+release    = 1
+arch       = noarch
+thisapp    = IPy-%{version}
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://software.inl.fr/trac/trac.cgi/wiki/IPy
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Python module for handling IPv4 and IPv6 Addresses and Networks.
+groups     = System/Libraries
+url        = http://software.inl.fr/trac/trac.cgi/wiki/IPy
+license    = BSD
+summary    = Python module for handling IPv4 and IPv6 Addresses and Networks.
 
-PKG_BUILD_DEPS+= python-devel
-
-define PKG_DESCRIPTION
+description
        IPy is a Python module for handling IPv4 and IPv6 Addresses and \
        Networks in a fashion similar to perl's Net::IP and friends. The IP \
        class allows a comfortable parsing and handling for most notations \
        in use for IPv4 and IPv6 Addresses and Networks.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build = # Nothing to do
 
-STAGE_BUILD = # Nothing to do
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index 2e8476cddf4840334325f7d6d29f208fe1ef060b..3c316c862dbd798575da63c1195e5baae238622e 100644 (file)
@@ -1,49 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = python-cairo
-PKG_VER        = 1.8.10
-PKG_REL        = 2
+name       = python-cairo
+version    = 1.8.10
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://cairographics.org/pycairo
-PKG_LICENSE    = MPLv1.1 or LGPLv2
-PKG_SUMMARY    = Python bindings for the cairo library.
+groups     = Development/Tools
+url        = http://cairographics.org/pycairo
+license    = MPLv1.1 or LGPLv2
+summary    = Python bindings for the cairo library.
 
-PKG_BUILD_DEPS+= cairo-devel pkg-config python-devel
-
-define PKG_DESCRIPTION
+description
        Python bindings for the cairo library.
-endef
-
-PKG_TARBALL    = py2cairo-$(PKG_VER).tar.gz
-DIR_APP        = $(DIR_SRC)/pycairo-$(PKG_VER)
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-# The development headers need the cairo headers.
-PKG_DEPS-$(PKG_NAME_REAL)-devel += cairo-devel
+end
+
+source_dl  =
+sources    = py2cairo-%{version}.tar.gz
+
+build
+       requires
+               cairo-devel
+               pkg-config
+               python-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/pycairo-%{version}
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               # The development headers need the cairo headers.
+               requires
+                       cairo-devel
+               end
+       end
+end
index dfe2ffe12b33ec20a5d7137022b2754f17da1d04..e35d26c36e3d1074e28095ce17bba02efdc1ea02 100644 (file)
@@ -1,51 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = python-cryptsetup
+version    = 0.0.9
+release    = 1
 
-PKG_NAME       = python-cryptsetup
-PKG_VER        = 0.0.9
-PKG_REL        = 0
+groups     = System/Filesystems
+url        = http://msivak.fedorapeople.org/pycryptsetup
+license    = GPLv2+
+summary    = Python bindings for cryptsetup.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://msivak.fedorapeople.org/pycryptsetup
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Python bindings for cryptsetup.
+description
+       A python module to ease the manipulation with LUKS devices.
+end
 
-PKG_BUILD_DEPS+= cryptsetup-luks-devel python-devel
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-define PKG_DESCRIPTION
-       A python module to ease the manipulation with LUKS devices.
-endef
+build
+       requires
+               cryptsetup-luks-devel
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       install
+               python setup.py install -O1 --skip-build --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install -O1 --skip-build --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index 6b671fb633823195451fcfc7ea4d0529ff94e062..981faba6feba8668860ef78a97b2ddbeee987c73 100644 (file)
@@ -1,48 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = dbus-python
-PKG_VER        = 0.82.4
-PKG_REL        = 1
+name       = dbus-python
+version    = 0.82.4
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.freedesktop.org/software/dbus/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Dbus Python Bindings.
+groups     = System/Libraries
+url        = http://www.freedesktop.org/software/dbus/
+license    = MIT
+summary    = Dbus Python Bindings.
 
-PKG_BUILD_DEPS+= dbus-devel dbus-glib-devel pkg-config python-devel
-
-define PKG_DESCRIPTION
+description
        D-Bus python bindings for use with python programs.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man
+end
+
+source_dl  =
+
+build
+       requires
+               dbus-devel
+               dbus-glib-devel
+               pkg-config
+               python-devel
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man
+end
+
+packages
+       package %{name}
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index c12b9f9d04a9a83c3a6da59e8e35e942a88708f8..6d1c5b87489ec41e57486e61d6b34b00c9562dbc 100644 (file)
@@ -1,56 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = decorator
-PKG_VER        = 3.1.2
-PKG_REL        = 1
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages 
-PKG_URL        = http://www.phyast.pitt.edu/~micheles/python/documentation.html 
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Module to simplify usage of decorators.
-
-PKG_BUILD_DEPS+= python
-
-define PKG_DESCRIPTION
-       The aim of the decorator module is to simplify the usage of decorators \
-       for the average programmer, and to popularize decorators usage giving \
-       examples of useful decorators, such as memoize, tracing, \
-       redirecting_stdout, locked, etc. The core of this module is a \
-       decorator factory called decorator. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
-
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --skip-build --root=$(BUILDROOT)
-endef
+name       = python-decorator
+version    = 3.1.2
+release    = 1
+arch       = noarch
+thisapp    = decorator-%{version}
+
+groups     = Development/Languages
+url        = http://www.phyast.pitt.edu/~micheles/python/documentation.html
+license    = BSD
+summary    = Module to simplify usage of decorators.
+
+description
+       The aim of the decorator module is to simplify the usage of decorators
+       for the average programmer, and to popularize decorators usage giving
+       examples of useful decorators, such as memoize, tracing,
+       redirecting_stdout, locked, etc. The core of this module is a
+       decorator factory called decorator.
+end
+
+source_dl  =
+
+build
+       requires
+               python
+       end
+
+       build
+               python setup.py build
+       end
+
+       install
+               python setup.py install --skip-build --root=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+end
index 75c5307e18104914ce9c08e9f7f1a29e219645b5..3cb31634543789d274c6427c6421c6bc17ee8890 100644 (file)
@@ -1,53 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = python-distutils-extra
-PKG_VER        = 2.25
-PKG_REL        = 0
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = https://launchpad.net/python-distutils-extra
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Integrate more support into Python's distutils.
-
-PKG_BUILD_DEPS+= python-devel python-setuptools
-
-define PKG_DESCRIPTION
-       Enables you to easily integrate gettext support, themed icons and \
-       scrollkeeper based documentation into Python's distutils. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
-
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+name       = python-distutils-extra
+version    = 2.25
+release    = 1
+arch       = noarch
+
+groups     = System/Libraries
+url        = https://launchpad.net/python-distutils-extra
+license    = GPLv2+
+summary    = Integrate more support into Python's distutils.
+
+description
+       Enables you to easily integrate gettext support, themed icons and
+       scrollkeeper based documentation into Python's distutils.
+end
+
+source_dl  =
+
+build
+       requires
+               python-devel
+               python-setuptools
+       end
+
+       build
+               python setup.py build
+       end
+
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+end
index a70b15305eb9711b0ff7e316f8c81735926857d3..5c0459b028a9fa6c1fa3519bdb59858d16fea51b 100644 (file)
@@ -1,52 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = python-gudev
-PKG_VER        = 147.1
-PKG_REL        = 1
+name       = python-gudev
+version    = 147.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://flex.sourceforge.net/
-PKG_LICENSE    = LGPLv3+
-PKG_SUMMARY    = Python (PyGObject) bindings to the GUDev library.
+groups     = Development/Tools
+url        = http://flex.sourceforge.net/
+license    = LGPLv3+
+summary    = Python (PyGObject) bindings to the GUDev library.
 
-PKG_BUILD_DEPS+= autoconf automake libtool libudev-devel pkg-config \
-       pygobject2-devel python-devel
-PKG_DEPS      += pygobject2
-
-define PKG_DESCRIPTION
+description
        python-gudev is a Python (PyGObject) binding to the GUDev UDEV library.
-endef
-
-PKG_TARBALL    = nzjrs-python-gudev-$(PKG_VER)-0-gcb29211.tar.gz
-DIR_APP        = $(DIR_SRC)/nzjrs-python-gudev-5fac65a
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && ./autogen.sh
-endef
-
-export CFLAGS += -I$(wildcard /usr/include/pygtk*)
+end
+
+source_dl  =
+sources    = nzjrs-python-gudev-%{version}-0-gcb29211.tar.gz
+
+build
+       requires
+               autoconf
+               automake
+               libtool
+               libudev-devel
+               pkg-config
+               pygobject2-devel
+               python-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/nzjrs-python-gudev-5fac65a
+
+       CFLAGS += -I$(wildcard /usr/include/pygtk*)
+
+       prepare_cmds
+               ./autogen.sh
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       pygobject2
+               end
+       end
+end
index edbe3d5aaf1699eefc160b395d68f7875c8cc631..c5a90eb695383eccea77bcbc0d7c97997567edb2 100644 (file)
@@ -1,54 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = python-m2crypto
-PKG_VER        = 0.21.1
-PKG_REL        = 1
+name       = python-m2crypto
+version    = 0.21.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Support for using OpenSSL in python scripts.
+groups     = Development/Libraries
+url        = http://wiki.osafoundation.org/bin/view/Projects/MeTooCrypto
+license    = MIT
+summary    = Support for using OpenSSL in python scripts.
 
-PKG_BUILD_DEPS+= python-devel openssl-devel swig
+description
+       This package allows you to call OpenSSL functions from python scripts.
+end
 
-define PKG_DESCRIPTION
-    This package allows you to call OpenSSL functions from python scripts.
-endef
+thisapp    = M2Crypto-%{version}
 
-THISAPP        = M2Crypto-$(PKG_VER)
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               python-devel
+               openssl-devel
+               swig
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && CFLAGS="$(CFLAGS)" python setup.py build
-endef
+       build
+               CFLAGS="%{CFLAGS}" python setup.py build
+       end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && python setup.py install --skip-build --root=$(BUILDROOT)
-endef
+       install
+               python setup.py install --skip-build --root=%{BUILDROOT}
+       end
+end
 
+packages
+       package %{name}
+       end
+end
index be41f56038a2901e4a0e34d0673c53e9d7999bcb..f8ca75859efa87f8b004a3998df45601159d42bb 100644 (file)
@@ -1,52 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pynetfilter_conntrack
-PKG_VER        = 0.4.2
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://software.inl.fr/trac/wiki/pynetfilter_conntrack
-PKG_LICENSE    = 
-PKG_SUMMARY    = Python binding of libnetfilter_conntrack.
-
-PKG_BUILD_DEPS+= libnetfilter_conntrack-devel python-devel
-
-define PKG_DESCRIPTION
-       This python library is based on libnetfilter_conntrack, which lets \
-       you manipulate conntrack objects. In other words, \
-       pynetfilter_conntrack lets you deal with Netfilter's stateful \
-       inspection objects from the Python world. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-STAGE_BUILD = # Nothing to do
-
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+name       = python-netfilter_conntrack
+version    = 0.4.2
+release    = 1
+thisapp    = pynetfilter_conntrack-%{version}
+
+groups     = System/Libraries
+url        = http://software.inl.fr/trac/wiki/pynetfilter_conntrack
+license    =
+summary    = Python binding of libnetfilter_conntrack.
+
+description
+       This python library is based on libnetfilter_conntrack, which lets
+       you manipulate conntrack objects. In other words,
+       pynetfilter_conntrack lets you deal with Netfilter's stateful
+       inspection objects from the Python world.
+end
+
+source_dl  =
+
+build
+       requires
+               libnetfilter_conntrack-devel
+               python-devel
+       end
+
+       build = # Nothing to do
+
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+end
index cc732b984eda19a9b118ef1a310b4490c43e11cd..a4d46d38f29cc58ee3b6332d9a334c91b0561422 100644 (file)
@@ -1,45 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = python-parted
+version    = 3.0
+release    = 1
+thisapp    = pyparted-%{version}
 
-include $(PKGROOT)/Include
+groups     = System/Libraries
+url        = http://fedorahosted.org/pyparted
+license    = GPLv2+
+summary    = Python module for GNU parted.
 
-PKG_NAME       = pyparted
-PKG_VER        = 3.0
-PKG_REL        = 0
+description
+       Python module for the parted library. It is used for manipulating
+       partition tables.
+end
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://fedorahosted.org/pyparted
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Python module for GNU parted.
+source_dl  =
 
-PKG_BUILD_DEPS+= parted-devel pkg-config python-decorator python-devel
-PKG_DEPS      += python-decorator
+build
+       requires
+               parted-devel
+               pkg-config
+               python-decorator
+               python-devel
+       end
+end
 
-define PKG_DESCRIPTION
-       Python module for the parted library. It is used for manipulating \
-       partition tables.
-endef
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+               requires
+                       python-decorator
+               end
+       end
+end
index 315cb1adc19618c78b12006136dfcf29271fa863..d9a46b5833dcdbca01c64993ca18c36aaa415c45 100644 (file)
@@ -1,58 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = python-piksemel
+version    = 1.3.1
+release    = 1
+thisapp    = piksemel-%{version}
 
-PKG_NAME       = piksemel
-PKG_VER        = 1.3.1
-PKG_REL        = 0
+groups     = Development/Languages
+url        = http://cekirdek.pardus.org.tr/~bahadir/piksemel/
+license    = GPLv2+
+summary    = A python XML parser.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages 
-PKG_URL        = http://cekirdek.pardus.org.tr/~bahadir/piksemel/ 
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A python XML parser.
-
-PKG_BUILD_DEPS+= python-devel
-
-define PKG_DESCRIPTION
+description
        Piksemel is a easy to use python XML parser, based on iksemel.
-endef
+end
+
+source_dl  =
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       reqires
+               python-devel
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       build
+               python setup.py build
+       end
 
-define STAGE_TEST
-       # Create symlink for testsuite to find the compiled module.
-       cd $(DIR_APP)/tests && ln -s ../build/lib.*/piksemel.so piksemel.so
-       cd $(DIR_APP) && python setup.py test
-endef
+       test
+               # Create symlink for testsuite to find the compiled module.
+               cd %{DIR_APP}/tests && ln -s ../build/lib.*/piksemel.so piksemel.so
+               cd %{DIR_APP} && python setup.py test
+       end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
 
+packages
+       package %{name}
+end
index bf107fb49284e47090abba7499ca14faef8ca9b7..94e986713cfe52b7bb1e3b236dd308c06c1b11e1 100644 (file)
@@ -1,54 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = python-progressbar
+version    = 2.2
+release    = 1
+arch       = noarch
+thisapp    = progressbar-%{version}
 
-PKG_NAME       = progressbar
-PKG_VER        = 2.2
-PKG_REL        = 0
-PKG_ARCH       = noarch
+groups     = System/Libraries
+url        = http://pypi.python.org/pypi/progressbar
+license    = LGPLv2+
+summary    = Text progressbar library for python.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://pypi.python.org/pypi/progressbar
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Text progressbar library for python.
+description
+       This library provides a text mode progress bar. This is typically used to
+       display the progress of a long running operation, providing a visual clue that
+       processing is under way.
+end
 
-PKG_BUILD_DEPS+= python-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       This library provides a text mode progress bar. This is typically used to \
-       display the progress of a long running operation, providing a visual clue that \
-       processing is under way.
-endef
+build
+       requires
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index 3cf4e238355e0b7a6e73cc04fae77a5b9b8807ff..f435b72637c29c06c7654640f4cd7dd18014c87d 100644 (file)
@@ -1,52 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = python-pyaspects
+version    = 0.4.1
+release    = 1
+thisapp    = pyaspects-%{version}
 
-PKG_NAME       = pyaspects
-PKG_VER        = 0.4.1
-PKG_REL        = 0
+groups     = Development/Languages
+url        = http://github.com/baris/pyaspects/downloads
+license    = GPLv2+
+summary    = Module to provide aspect-oriented programming.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages 
-PKG_URL        = http://github.com/baris/pyaspects/downloads 
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Module to provide aspect-oriented programming.
+description
+       PyAspects is a project to ease aspect-oriented programming
+       in Python language.
+end
 
-PKG_BUILD_DEPS+= python-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       PyAspects is a project to ease aspect-oriented programming \
-       in Python language.
-endef
+build
+       requires
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index a07e82d7de090ac2e155acfafabbaeb46a0c2ad2..109122c7a7baa1cf0a9584f787e0fc4003a13672 100644 (file)
@@ -1,56 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pyblock
-PKG_VER        = 0.46
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://git.fedorahosted.org/git/?p=pyblock.git;a=summary
-PKG_LICENSE    = GPLv2 or GPLv3
-PKG_SUMMARY    = Python modules for dealing with block devices.
+name       = pyblock
+version    = 0.46
+release    = 1
 
-PKG_BUILD_DEPS+= dmraid-devel libdevmapper-devel libselinux-devel python-devel\
-        python-parted
+groups     = System/Libraries
+url        = http://git.fedorahosted.org/git/?p=pyblock.git;a=summary
+license    = GPLv2 or GPLv3
+summary    = Python modules for dealing with block devices.
 
-define PKG_DESCRIPTION
+description
        The pyblock contains Python modules for dealing with block devices.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/-Werror//g" -i Makefile
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make USESELINUX=1
-endef
-
-define STAGE_INSTALL   
-       cd $(DIR_APP) && make install USESELINUX=0 DESTDIR=$(BUILDROOT)
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               dmraid-devel
+               libdevmapper-devel
+               libselinux-devel
+               python-devel
+               python-parted
+       end
+
+       prepare_cmds
+               sed -e "s/-Werror//g" -i Makefile
+       end
+
+       build
+               make USESELINUX=1
+       end
+
+       install
+               make install USESELINUX=0 DESTDIR=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+end
index 712e9066f72e18afc3687d7dfe5125d58bf339d3..9d8c942e1b39e0db5def5a0feae46b23e64f5848 100644 (file)
@@ -1,70 +1,59 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pycurl
-PKG_VER        = 7.19.0
-PKG_REL        = 3
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://pycurl.sourceforge.net/
-PKG_LICENSE    = LGPLv2+ or MIT
-PKG_SUMMARY    = A Python interface to libcurl.
+name       = python-pycurl
+version    = 7.19.0
+release    = 3
+thisapp    = pycurl-%{version}
 
-CFLAGS        += -DHAVE_CURL_OPENSSL
-
-PKG_BUILD_DEPS+= libcurl-devel openssl-devel python-devel
+groups     = Development/Languages
+url        = http://pycurl.sourceforge.net/
+license    = LGPLv2+ or MIT
+summary    = A Python interface to libcurl.
 
 # During its initialization, PycURL checks that the actual libcurl version
 # is not lower than the one used when PycURL was built.
 # Yes, that should be handled by library versioning (which would then get
 # automatically reflected).
 # For now, we have to reflect that dependency.
-LIBCURL_VERSION = $(shell curl-config --version | awk '{ print $$NF }')
-PKG_DEPS += libcurl>=$(LIBCURL_VERSION)
+LIBCURL_VERSION = $(shell curl-config --version | awk '{ print $NF }')
+PKG_DEPS += libcurl>=%{LIBCURL_VERSION}
 
-define PKG_DESCRIPTION
-       PycURL is a Python interface to libcurl. PycURL can be used to fetch \
-       objects identified by a URL from a Python program, similar to the \
-       urllib Python module. PycURL is mature, very fast, and supports a lot \
+description
+       PycURL is a Python interface to libcurl. PycURL can be used to fetch
+       objects identified by a URL from a Python program, similar to the
+       urllib Python module. PycURL is mature, very fast, and supports a lot
        of features.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libcurl-devel
+               openssl-devel
+               python-devel
+       end
+
+       CFLAGS += -DHAVE_CURL_OPENSSL
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       test
+               PYTHONPATH=$PWD/build/lib* python tests/test_internals.py -q
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP) && PYTHONPATH=$PWD/build/lib* python tests/test_internals.py -q
-endef
+       install
+               python setup.py install --skip-build -O1 \
+                       --root=%{BUILDROOT}
+               rm -rf %{BUILDROOT}/usr/share/doc/pycurl
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --skip-build -O1 \
-               --root=$(BUILDROOT)
-       cd $(DIR_APP) && rm -rf $(BUILDROOT)/usr/share/doc/pycurl
-endef
+packages
+       package %{name}
+end
index b6ff59129de85032365ffbf28e09e98599417b5d..bd8c2a3ac5fe05c70780e763f86ac90d4cb1eeca 100644 (file)
@@ -1,50 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = python-qtermwidget
-PKG_VER        = 0.1.2
-PKG_REL        = 1
+name       = python-qtermwidget
+version    = 0.1.2
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages 
-PKG_URL        = http://code.google.com/p/pyqt4-extrawidgets/downloads/list 
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = PyQt4 Bindings for QTermWidget.
+groups     = Development/Languages
+url        = http://code.google.com/p/pyqt4-extrawidgets/downloads/list
+license    = GPLv2+
+summary    = PyQt4 Bindings for QTermWidget.
 
-PKG_BUILD_DEPS+= gcc-c++ pyQt pyQt-devel python-devel qt qtermwidget-devel sip-devel
-
-define PKG_DESCRIPTION
+description
        PyQt4 Bindings for QTermWidget.
-endef
-
-PKG_TARBALL    = qtermwidget-$(PKG_VER).tar.gz
-
-DIR_APP        = $(DIR_SRC)/qtermwidget
-
-define STAGE_BUILD
-       cd $(DIR_APP) && python config.py
-       cd $(DIR_APP) && make
-endef
+end
+
+source_dl  =
+sources    = qtermwidget-%{version}.tar.gz
+
+build
+       requires
+               gcc-c++
+               pyQt
+               pyQt-devel
+               python-devel
+               qt
+               qtermwidget-devel
+               sip-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/qtermwidget
+
+       build
+               python config.py
+               make
+       end
+end
+
+packages
+       package %{name}
+end
index 3d438fc5b8db6ff8bf458f96c68ce1671d97a0d5..ad076790ec39ad89d2694a64dbc8446a152d2951 100644 (file)
@@ -1,64 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = setuptools
-PKG_VER        = 0.6c9
-PKG_REL        = 1
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://pypi.python.org/pypi/setuptools
-PKG_LICENSE    = Python or ZPLv2.0
-PKG_SUMMARY    = Easily build and distribute Python packages.
+name       = python-setuptools
+version    = 0.6c9
+release    = 1
+arch       = noarch
+thisapp    = setuptools-%{version}
+
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Libraries
+url        = http://pypi.python.org/pypi/setuptools
+license    = Python or ZPLv2.0
+summary    = Easily build and distribute Python packages.
+
+description
+       Setuptools is a collection of enhancements to the Python distutils
+       that allow you to more easily build and distribute Python packages,
+       especially ones that have dependencies on other packages.
+end
 
-PKG_BUILD_DEPS+= python-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       Setuptools is a collection of enhancements to the Python distutils \
-       that allow you to more easily build and distribute Python packages, \
-       especially ones that have dependencies on other packages.
-endef
+build
+       requires
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       prepare_cmds
+               # Scripts seem to have a wrong hashbang
+               find . -name "*.py" | xargs sed -i "1s@^#!python@#!/usr/bin/python@"
+       end
 
-define STAGE_PREPARE_CMDS
-       # Scripts seem to have a wrong hashbang
-       cd $(DIR_APP) && find . -name "*.py" | xargs sed -i "1s@^#!python@#!/usr/bin/python@"
-endef
+       build
+               CFLAGS="%{CFLAGS}" python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && CFLAGS="$(CFLAGS)" python setup.py build
-endef
+       install
+               python setup.py install --skip-build --root=%{BUILDROOT}
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --skip-build --root=$(BUILDROOT)
-endef
+               # XXX %{PYTHON_EXTRACT_EGG} /usr/lib/python*/site-packages/%{name}*.egg
+               rm -vf %{BUILDROOT}/usr/lib/python*/site-packages/setuptools/*.exe
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       # XXX $(PYTHON_EXTRACT_EGG) /usr/lib/python*/site-packages/$(PKG_NAME)*.egg     
-       rm -vf $(BUILDROOT)/usr/lib/python*/site-packages/setuptools/*.exe
-endef
+packages
+       package %{name}
+end
index 50ffc9286fe8ec98f6ca4d404939e3f456d6512f..124265504c024b3edc8b5ff9bc94033a092f49e6 100644 (file)
@@ -1,54 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = tornado
-PKG_VER        = 0.2
-PKG_REL        = 1
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://www.tornadoweb.org/
-PKG_LICENSE    = Apache2.0
-PKG_SUMMARY    = A python based non-blocking web server.
+name       = python-tornado
+version    = 0.2
+release    = 1
+arch       = noarch
+thisapp    = tornado-%{version}
+
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Development/Libraries
+url        = http://www.tornadoweb.org/
+license    = Apache2.0
+summary    = A python based non-blocking web server.
+
+description
+       The framework is distinct from most mainstream web server frameworks
+       (and certainly most Python frameworks) because it is non-blocking
+       and reasonably fast.
+end
 
-PKG_BUILD_DEPS+= python-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       The framework is distinct from most mainstream web server frameworks \
-       (and certainly most Python frameworks) because it is non-blocking \
-       and reasonably fast.
-endef
+build
+       requires
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       install
+               python setup.py install --skip-build --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --skip-build --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index fc93649f761f4895c6f40b88e1804cc779468072..4c52dee2848198f5250f08654969f21a407588f9 100644 (file)
@@ -1,53 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = urlgrabber
-PKG_VER        = 3.9.1
-PKG_REL        = 2
-PKG_ARCH       = noarch
+name       = python-urlgrabber
+version    = 3.9.1
+release    = 2
+arch       = noarch
+thisap     = urlgrabber-%{version}
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://urlgrabber.baseurl.org/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = A high-level cross-protocol url-grabber.
+groups     = System/Libraries
+url        = http://urlgrabber.baseurl.org/
+license    = LGPLv2+
+summary    = A high-level cross-protocol url-grabber.
 
-PKG_BUILD_DEPS+= python-devel python-pycurl
-PKG_DEPS      += python-pycurl
-
-define PKG_DESCRIPTION
-       A high-level cross-protocol url-grabber for python supporting HTTP, \
-       FTP and file locations.  Features include keepalive, byte ranges, \
+description
+       A high-level cross-protocol url-grabber for python supporting HTTP,
+       FTP and file locations.  Features include keepalive, byte ranges,
        throttling, authentication, proxies and more.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-STAGE_BUILD = # Nothing to do
-
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               python-devel
+               python-pycurl
+       end
+
+       build = # Nothing to do
+
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
+
+packages
+       package %{name}
+               requires
+                       python-pycurl
+               end
+       end
+end
index 97d5a74345626beb38f461bc551b270f3ff2fa98..dd4ea61bfb7ab415072a53d486d1094ced1ca22d 100644 (file)
@@ -1,90 +1,90 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = Python
-PKG_VER        = 2.7.1
-PKG_REL        = 3
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://www.python.org
-PKG_LICENSE    = Python
-PKG_SUMMARY    = An interpreted, interactive, object-oriented programming language.
-
-PKG_BUILD_DEPS+= autoconf automake bzip2-devel db4-devel expat-devel gdbm-devel \
-       libffi-devel libselinux-devel ncurses-devel openssl-devel pkg-config \
-       readline-devel sqlite-devel tar zlib-devel
-
-define PKG_DESCRIPTION
-       Python is an interpreted, interactive, object-oriented programming \
-       language often compared to Tcl, Perl, Scheme or Java. Python includes \
-       modules, classes, exceptions, very high level dynamic data types and \
-       dynamic typing. Python supports interfaces to many system calls and \
+name       = python
+version    = 2.7.1
+release    = 3
+thisapp    = Python-%{version}
+
+groups     = Development/Languages
+url        = http://www.python.org
+license    = Python
+summary    = An interpreted, interactive, object-oriented programming language.
+
+description
+       Python is an interpreted, interactive, object-oriented programming
+       language often compared to Tcl, Perl, Scheme or Java. Python includes
+       modules, classes, exceptions, very high level dynamic data types and
+       dynamic typing. Python supports interfaces to many system calls and
        libraries, as well as to various windowing systems.
-endef
-
-PKG_TARBALL    = $(THISAPP).tgz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-PKG_FILES-$(PKG_NAME_REAL)-devel += \
-       !/usr/lib/python*/config/Makefile \
-       !/usr/include/python*/pyconfig.h
-
-export CFLAGS  += -D_GNU_SOURCE -fwrapv
-export CPPFLAGS = $(shell pkg-config --cflags-only-I libffi)
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/#*shared*/*shared*/g" -i Modules/Setup.dist
-
-       # Remove embedded copies of expat, zlib and libffi
-       cd $(DIR_APP) && rm -rf Modules/{expat,zlib}
-       cd $(DIR_APP) && rm -rf Modules/_ctypes/{darwin,libffi,libffi_arm_wince,libffi_msvc,libffi_osx}
-
-       # Remove autoconf version check and reconfigure
-       cd $(DIR_APP) && sed -e "s/^version_required.*//" -i configure.in
-       cd $(DIR_APP) && autoreconf --force
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && \
-               OPT="$(CFLAGS)" \
-               ./configure \
-                       --prefix=/usr \
-                       --enable-ipv6 \
-                       --with-system-expat \
-                       --with-system-ffi \
-                       --enable-shared
-
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
-
-       # All *.py files don't need to be executeable...
-       find $(BUILDROOT)/usr/lib/python*/ -name "*.py" | xargs chmod a-x -v
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tgz
+
+build
+       requires
+               autoconf
+               automake
+               bzip2-devel
+               db4-devel
+               expat-devel
+               gdbm-devel
+               libffi-devel
+               libselinux-devel
+               ncurses-devel
+               openssl-devel
+               pkg-config
+               readline-devel
+               sqlite-devel
+               tar
+               zlib-devel
+       end
+
+       export CFLAGS  += -D_GNU_SOURCE -fwrapv
+       export CPPFLAGS = $(shell pkg-config --cflags-only-I libffi)
+
+       prepare_cmds
+               sed -e "s/#*shared*/*shared*/g" -i Modules/Setup.dist
+
+               # Remove embedded copies of expat, zlib and libffi
+               rm -rf Modules/{expat,zlib}
+               rm -rf Modules/_ctypes/{darwin,libffi,libffi_arm_wince,libffi_msvc,libffi_osx}
+
+               # Remove autoconf version check and reconfigure
+               sed -e "s/^version_required.*//" -i configure.in
+               autoreconf --force
+       end
+
+       build
+               OPT="%{CFLAGS}" \
+                       ./configure \
+                               --prefix=/usr \
+                               --enable-ipv6 \
+                               --with-system-expat \
+                               --with-system-ffi \
+                               --enable-shared
+
+               make %{PARALLELISMFLAGS}
+       end
+
+       install_cmds
+               # All *.py files don't need to be executeable...
+               find %{BUILDROOT}/usr/lib/python*/ -name "*.py" | xargs chmod a-x -v
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               files =+ \
+                       !/usr/lib/python*/config/Makefile \
+                       !/usr/include/python*/pyconfig.h
+       end
+end
index d8c6567988a8527348c159ec554743620412c24d..8b323b86fed4de8ab8507b6e841433cf3a446787 100644 (file)
@@ -1,52 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = pyxattr
-PKG_VER        = 0.5.0
-PKG_REL        = 0
+name       = pyxattr
+version    = 0.5.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Libraries
-PKG_URL        = http://pyxattr.sourceforge.net/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = Extended attributes library wrapper for Python.
+groups     = Development/Libraries
+url        = http://pyxattr.sourceforge.net/
+license    = LGPLv2+
+summary    = Extended attributes library wrapper for Python.
 
-PKG_BUILD_DEPS+= libattr-devel  python-devel python-setuptools
-
-define PKG_DESCRIPTION
+description
        Python extension module wrapper for libattr. It allows to query, list,\
        add and remove extended attributes from files and directories.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libattr-devel
+               python-devel
+               python-setuptools
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       install
+               python setup.py install --root=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL   
-       cd $(DIR_APP) && python setup.py install --root=$(BUILDROOT)
-endef
+packages
+       package %{name}
+end
index fb8128b22983f47c869cee5c87d7862f1be858b7..e5b9b898f28d0442d12127394a6a946d9d894464 100644 (file)
@@ -1,70 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = qemu-kvm
+version    = 0.14.0
+release    = 1
 
-PKG_NAME       = qemu-kvm
-PKG_VER        = 0.14.0
-PKG_REL        = 1
+groups     = Applications/Virtualization
+url        = http://www.linux-kvm.org/page/Main_Page
+license    = GPLv2+
+summary    = QEMU is a generic and open source machine emulator and virtualizer.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Virtualization
-PKG_URL        = http://www.linux-kvm.org/page/Main_Page
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = QEMU is a generic and open source machine emulator and virtualizer.
-
-PKG_BUILD_DEPS+= libcurl-devel libuuid-devel gnutls-devel ncurses-devel \
-       pciutils-devel sdl-devel zlib-devel
-
-define PKG_DESCRIPTION
-       QEMU is a processor emulator that relies on dynamic binary translation \
-       to achieve a reasonable speed while being easy to port on new host CPU \
+description
+       QEMU is a processor emulator that relies on dynamic binary translation
+       to achieve a reasonable speed while being easy to port on new host CPU
        architectures.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CFLAGS        := $(filter-out -pipe,$(CFLAGS))
-CFLAGS        := -O1 $(filter-out -O2,$(CFLAGS))
-
-
-define QUALITY_AGENT_WHITELIST_EXECSTACK
-       /usr/share/qemu/openbios*
-endef
-
-CONFIGURE_OPTIONS = \
-       --prefix=/usr \
-       --enable-kvm \
-       --extra-cflags="$(CFLAGS)" \
-       --disable-strip \
-       --disable-xen \
-       --sysconfdir=/etc \
-       --target-list="i386-softmmu"
-
-# target-list is not working with i386 because of some PIE or PIC errors
-#      --target-list="i386-linux-user i386-softmmu"
-
-define STAGE_CONFIGURE_CMDS
-       cd $(DIR_APP) && sed -e "s@-Wl,-rpath,/usr/lib@@g" -i */config-target.mak
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libcurl-devel
+               libuuid-devel
+               gnutls-devel
+               ncurses-devel
+               pciutils-devel
+               sdl-devel
+               zlib-devel
+       end
+
+       # target-list is not working with i386 because of some PIE or PIC errors
+       #--target-list="i386-linux-user i386-softmmu"
+       configure_options = \
+               --prefix=/usr \
+               --enable-kvm \
+               --extra-cflags="%{CFLAGS}" \
+               --disable-strip \
+               --disable-xen \
+               --sysconfdir=/etc \
+               --target-list="i386-softmmu"
+
+       configure_cmds
+               sed -e "s@-Wl,-rpath,/usr/lib@@g" -i */config-target.mak
+       end
+end
+
+quality-agent
+       whitelist_execstack
+               /usr/share/qemu/openbios*
+       end
+end
+
+packages
+       package %{name}
+end
index dfe1fc7fcd4db43364b024564fa9a023bdfd1ec1..be9f07f3134a3a12cef3bd2c22d690050931959e 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = qt
+version    = 4.7.0
+release    = 3
 
-PKG_NAME       = qt
-PKG_VER        = 4.7.0
-PKG_REL        = 3
+groups     = System/Libraries
+url        = http://www.qtsoftware.com/
+license    = LGPLv2 with exceptions or GPLv3 with exceptions
+summary    = Qt toolkit.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.qtsoftware.com/
-PKG_LICENSE    = LGPLv2 with exceptions or GPLv3 with exceptions
-PKG_SUMMARY    = Qt toolkit.
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-PKG_FILES-$(PKG_NAME_REAL)-devel += \
-       /usr/lib/*.prl \
-       /usr/lib/qt4/q3porting.xml \
-       /usr/bin \
-       /usr/lib/qt4/*.prl \
-       /usr/lib/qt4/mkspecs
+description
+       Qt is a software toolkit for developing applications.
+end
 
-PKG_BUILD_DEPS+= fontconfig-devel freetype-devel gcc-c++ libjpeg-devel \
-       libmng-devel libpng-devel libtiff-devel libX11-devel \
-       libXext-devel libXfixes-devel libXrandr-devel libXrender-devel \
-       libXi-devel pcre-devel pkg-config xorg-x11-proto-devel zlib-devel
+source_dl  =
+sources    = %{name}-everywhere-opensource-src-%{version}.tar.gz
 
-define PKG_DESCRIPTION
-       Qt is a software toolkit for developing applications.
-endef
+build
+       requires
+               fontconfig-devel
+               freetype-devel
+               gcc-c++
+               libjpeg-devel
+               libmng-devel
+               libpng-devel
+               libtiff-devel
+               libX11-devel
+               libXext-devel
+               libXfixes-devel
+               libXrandr-devel
+               libXrender-devel
+               libXi-devel
+               pcre-devel
+               pkg-config
+               xorg-x11-proto-devel
+               zlib-devel
+       end
 
-PKG_TARBALL    = $(PKG_NAME)-everywhere-opensource-src-$(PKG_VER).tar.gz
+       DIR_APP = %{DIR_SRC}/%{name}-everywhere-opensource-src-%{version}
 
-CONFIGURE_OPTIONS = -v \
-       -prefix /usr \
-       -datadir /usr/lib/qt4 \
-       -headerdir /usr/include \
-       -plugindir /usr/lib/qt4/plugins \
-       -translationdir /usr/share/qt4/translations \
-       -confirm-license \
-       -fontconfig \
-       -largefile \
-       -opensource \
-       -reduce-relocations \
-       -release \
-       -shared \
-       -no-audio-backend \
-       -no-dbus \
-       -no-gtkstyle \
-       -no-cups \
-       -no-javascript-jit \
-       -no-multimedia \
-       -no-nas-sound \
-       -no-nis \
-       -no-openssl \
-       -no-opengl \
-       -no-openvg \
-       -no-qt3support \
-       -no-pch \
-       -no-phonon \
-       -no-phonon-backend \
-       -no-rpath \
-       -no-script \
-       -no-scripttools \
-       -no-separate-debug-info \
-       -no-sm \
-       -no-sql-db2 \
-       -no-sql-ibase \
-       -no-sql-mysql \
-       -no-sql-oci \
-       -no-sql-odbc \
-       -no-sql-psql \
-       -no-sql-sqlite \
-       -no-sql-sqlite2 \
-       -no-sql-sqlite_symbian \
-       -no-sql-tds \
-       -no-stl \
-       -no-svg \
-       -no-webkit \
-       -no-xinerama \
-       -no-xshape \
-       -no-xsync \
-       -no-xvideo \
-       -no-mmx \
-       -no-sse \
-       -no-sse2 \
-       -no-3dnow \
-       -system-libjpeg \
-       -system-libmng \
-       -system-libpng \
-       -system-libtiff \
-       -system-zlib \
-       -nomake demos \
-       -nomake docs \
-       -nomake examples
+       configure_options = -v \
+               -prefix /usr \
+               -datadir /usr/lib/qt4 \
+               -headerdir /usr/include \
+               -plugindir /usr/lib/qt4/plugins \
+               -translationdir /usr/share/qt4/translations \
+               -confirm-license \
+               -fontconfig \
+               -largefile \
+               -opensource \
+               -reduce-relocations \
+               -release \
+               -shared \
+               -no-audio-backend \
+               -no-dbus \
+               -no-gtkstyle \
+               -no-cups \
+               -no-javascript-jit \
+               -no-multimedia \
+               -no-nas-sound \
+               -no-nis \
+               -no-openssl \
+               -no-opengl \
+               -no-openvg \
+               -no-qt3support \
+               -no-pch \
+               -no-phonon \
+               -no-phonon-backend \
+               -no-rpath \
+               -no-script \
+               -no-scripttools \
+               -no-separate-debug-info \
+               -no-sm \
+               -no-sql-db2 \
+               -no-sql-ibase \
+               -no-sql-mysql \
+               -no-sql-oci \
+               -no-sql-odbc \
+               -no-sql-psql \
+               -no-sql-sqlite \
+               -no-sql-sqlite2 \
+               -no-sql-sqlite_symbian \
+               -no-sql-tds \
+               -no-stl \
+               -no-svg \
+               -no-webkit \
+               -no-xinerama \
+               -no-xshape \
+               -no-xsync \
+               -no-xvideo \
+               -no-mmx \
+               -no-sse \
+               -no-sse2 \
+               -no-3dnow \
+               -system-libjpeg \
+               -system-libmng \
+               -system-libpng \
+               -system-libtiff \
+               -system-zlib \
+               -nomake demos \
+               -nomake docs \
+               -nomake examples
 
-DIR_APP = $(DIR_SRC)/$(PKG_NAME)-everywhere-opensource-src-$(PKG_VER)
+       prepare_cmds
+               sed -e "s/-O2/%{CFLAGS}/g" -i mkspecs/*/qmake.conf
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/-O2/$(CFLAGS)/g" -i mkspecs/*/qmake.conf
-endef
+       install
+               make install INSTALL_ROOT=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install INSTALL_ROOT=$(BUILDROOT)
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               files
+                       /usr/lib/*.prl \
+                       /usr/lib/qt4/q3porting.xml \
+                       /usr/bin \
+                       /usr/lib/qt4/*.prl \
+                       /usr/lib/qt4/mkspecs
+               end
+       end
+end
index d8e649e7359ca0198d8dcefaa2988d02d326479a..05a14b32d6cc1397de9a662eec54145f6b5e8c5f 100644 (file)
@@ -1,71 +1,60 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = qtermwidget
-PKG_VER        = 0.1
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = /Tools
-PKG_URL        = http://qtermwidget.sourceforge.net/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A QT4 terminal emulation widget.
-
-PKG_BUILD_DEPS+= gcc-c++ python-devel qt-devel
-
-define PKG_DESCRIPTION
-       QTermWidget is an opensource project based on KDE4 Konsole \
-       application. The main goal of this project is to provide \
-       unicode-enabled, embeddable QT4 widget for using as a built-in \
-       console (or terminal emulation widget). 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-DIR_APP        = $(DIR_SRC)/$(PKG_NAME)
-
-# XXX Why do we have to set this flag here ?
-export QMAKESPEC=linux-g++
-
-define STAGE_BUILD
-       cd $(DIR_APP) && qmake
-       cd $(DIR_APP) && make #$(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       # Install headers
-       -mkdir -pv $(BUILDROOT)/usr/include/$(PKG_NAME)
-       cd $(DIR_APP) && cp -vf lib/*.h $(BUILDROOT)/usr/include/$(PKG_NAME)
-
-       # Install lib
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       cd $(DIR_APP) && cp -vf libqtermwidget.so.0 $(BUILDROOT)/usr/lib
-       ln -svf libqtermwidget.so.0 $(BUILDROOT)/usr/lib/libqtermwidget.so
-
-       # Do not install binaries       
-endef
+name       = qtermwidget
+version    = 0.1
+release    = 2
+
+groups     = /Tools
+url        = http://qtermwidget.sourceforge.net/
+license    = GPLv2
+summary    = A QT4 terminal emulation widget.
+
+description
+       QTermWidget is an opensource project based on KDE4 Konsole
+       application. The main goal of this project is to provide
+       unicode-enabled, embeddable QT4 widget for using as a built-in
+       console (or terminal emulation widget).
+end
+
+source_dl  =
+
+build
+       requires
+               gcc-c++
+               python-devel
+               qt-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/%{name}
+
+       # XXX Why do we have to set this flag here ?
+       export QMAKESPEC=linux-g++
+
+       build
+               qmake
+               make #%{PARALLELISMFLAGS}
+       end
+
+       install
+               # Install headers
+               mkdir -pv %{BUILDROOT}/usr/include/%{name}
+               cp -vf lib/*.h %{BUILDROOT}/usr/include/%{name}
+
+               # Only install the library
+               mkdir -pv %{BUILDROOT}/usr/lib
+               cp -vf libqtermwidget.so.0 %{BUILDROOT}/usr/lib
+               ln -svf libqtermwidget.so.0 %{BUILDROOT}/usr/lib/libqtermwidget.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 22b8905d598c189b95a5dce78c3c01e8f904b76a..482cbe0326609dd9937911830276bd3d232debc8 100644 (file)
@@ -1,64 +1,53 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = quagga
+version    = 0.99.18
+release    = 1
 
-PKG_NAME       = quagga
-PKG_VER        = 0.99.18
-PKG_REL        = 1
+groups     = Networking/Routing
+url        = http://www.quagga.net/
+license    = GPLv2+
+summary    = Quagga is a rounting daemon.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Routing
-PKG_URL        = http://www.quagga.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Quagga is a rounting daemon.
-
-PKG_BUILD_DEPS+= pam-devel
-
-define PKG_DESCRIPTION
-       Quagga is a free software that manages TCP/IP based routing \
-       protocol. It takes multi-server and multi-thread approach to resolve \
-       the current complexity of the Internet. \
+description
+       Quagga is a free software that manages TCP/IP based routing
+       protocol. It takes multi-server and multi-thread approach to resolve
+       the current complexity of the Internet.
        Quagga supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  = http://www.quagga.net/download/
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+build
+       requires
+               pam-devel
+       end
 
-define STAGE_BUILD
        # ac_cv_have_decl_TCP_MD5SIG=no was set to work around a bug
-       cd $(DIR_APP) && \
+       configure_options += \
+               --sysconfdir=/etc/quagga \
+               --disable-static \
+               --enable-netlink \
+               --with-libpam \
+               --enable-ipv6 \
+               \
                ac_cv_have_decl_TCP_MD5SIG=no \
                ac_cv_func_working_mktime=yes \
-               ./configure \
-                       $(CONFIGURE_ARCH) \
-                       --prefix=/usr \
-                       --sysconfdir=/etc/quagga \
-                       --disable-static \
-                       --enable-netlink \
-                       --with-libpam \
-                       --enable-ipv6
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index bb9dfa1e2eb3ff8fe850fe2f509e1b14ea6e0ecf..32a912c11df39ff3ed4cde290b977cad1e8d5ca1 100644 (file)
@@ -1,57 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = radvd
-PKG_VER        = 1.8
-PKG_REL        = 4
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Daemons
-PKG_URL        = http://www.litech.org/radvd/
-PKG_LICENSE    = BSD with advertising
-PKG_SUMMARY    = A Router Advertisement daemon.
-
-PKG_BUILD_DEPS+= flex flex-devel bison
-PKG_DEPS      += /lib/network/network-radvd-config
-
-define PKG_DESCRIPTION
-       radvd is the router advertisement daemon for IPv6. It listens to \
-       router solicitations and sends router advertisements as described \
-       in Neighbor Discovery for IP Version 6. With these \
-       advertisements hosts can automatically configure their addresses and \
-       some other parameters. They also can choose a default router based \
+name       = radvd
+version    = 1.8
+release    = 4
+
+groups     = System/Daemons
+url        = http://www.litech.org/radvd/
+license    = BSD with advertising
+summary    = A Router Advertisement daemon.
+
+description
+       radvd is the router advertisement daemon for IPv6. It listens to
+       router solicitations and sends router advertisements as described
+       in Neighbor Discovery for IP Version 6. With these
+       advertisements hosts can automatically configure their addresses and
+       some other parameters. They also can choose a default router based
        on these advertisements.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --with-pidfile=/var/run/radvd/radvd.pid
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/-lfl/-lfl_pic/g" -i Makefile.*
-endef
+end
+
+source_dl  = http://www.litech.org/radvd/dist/
+
+build
+       requires
+               flex
+               flex-devel
+               bison
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man \
+               --with-pidfile=/run/radvd/radvd.pid
+
+       prepare_cmds
+               sed -e "s/-lfl/-lfl_pic/g" -i Makefile.*
+       end
+end
+
+packages
+       package %{name}
+               reuires = /lib/network/network-radvd-config
+       end
+end
index 430f0b591511b50d1577fcd4585431ac6480d026..33d4a25b820f3f515a548015864bc206eb11bb06 100644 (file)
@@ -1,70 +1,61 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = readline
-PKG_VER        = 6.2
-PKG_REL        = 3
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = ftp://ftp.gnu.org/gnu/readline/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A library for editing typed command lines.
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-PKG_BUILD_DEPS+= audit-devel ncurses-devel
-
-define PKG_DESCRIPTION
-       The Readline library provides a set of functions that allow users to \
-       edit command lines. Both Emacs and vi editing modes are available. \
-       The Readline library includes additional functions for maintaining a \
-       list of previously-entered command lines for recalling or editing \
-       those lines, and for performing csh-like history expansion on \
+name       = readline
+version    = 6.2
+release    = 3
+
+groups     = System/Libraries
+url        = ftp://ftp.gnu.org/gnu/readline/
+license    = GPLv3+
+summary    = A library for editing typed command lines.
+
+description
+       The Readline library provides a set of functions that allow users to
+       edit command lines. Both Emacs and vi editing modes are available.
+       The Readline library includes additional functions for maintaining a
+       list of previously-entered command lines for recalling or editing
+       those lines, and for performing csh-like history expansion on
        previous commands.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-STAGE_BUILD_TARGETS += SHLIB_LIBS=-lncurses
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-
-define STAGE_INSTALL_CMDS
-       # Remove a bunch of *.c files
-       rm -rfv $(BUILDROOT)/usr/share/readline
-
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       rm -fv $(BUILDROOT)/lib/lib{readline,history}.so
-       ln -sfv ../../lib/libreadline.so.6 $(BUILDROOT)/usr/lib/libreadline.so
-       ln -sfv ../../lib/libhistory.so.6 $(BUILDROOT)/usr/lib/libhistory.so
-
-       -mkdir -pv $(BUILDROOT)/etc/profile.d
-       cp -vf $(DIR_SOURCE)/readline.sh $(BUILDROOT)/etc/profile.d/
-
-       cp -vf $(DIR_SOURCE)/inputrc $(BUILDROOT)/etc/
-endef
+end
+
+source_dl  = ftp://ftp.gnu.org/gnu/readline/
+
+build
+       requires
+               audit-devel
+               ncurses-devel
+       end
+
+       configure_options += \
+               --libdir=/lib \
+
+       make_build_targets += \
+               SHLIB_LIBS=-lncurses
+
+       install_cmds
+               # Remove a bunch of *.c files
+               rm -rfv %{BUILDROOT}/usr/share/readline
+
+               mkdir -pv %{BUILDROOT}/usr/lib
+               rm -fv %{BUILDROOT}/lib/lib{readline,history}.so
+               ln -sfv ../../lib/libreadline.so.6 %{BUILDROOT}/usr/lib/libreadline.so
+               ln -sfv ../../lib/libhistory.so.6 %{BUILDROOT}/usr/lib/libhistory.so
+
+               mkdir -pv %{BUILDROOT}/etc/profile.d
+               cp -vf %{DIR_SOURCE}/readline.sh %{BUILDROOT}/etc/profile.d/
+
+               cp -vf %{DIR_SOURCE}/inputrc %{BUILDROOT}/etc/
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 04ff9860e6c6393c8dc5de518a43f2ab9855fd2f..02c89689c39cf20cc113ceaaaa537ef83b608f0d 100644 (file)
@@ -1,69 +1,65 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = reiser4progs
+version    = 1.0.7
+release    = 1
 
-PKG_NAME       = reiser4progs
-PKG_VER        = 1.0.7
-PKG_REL        = 0
+groups     = System/Filesystems
+url        = http://www.kernel.org/pub/linux/utils/fs/reiser4/reiser4progs/
+license    = GPL
+summary    = Administration utilities for the Reiser4 filesystem.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://www.kernel.org/pub/linux/utils/fs/reiser4/reiser4progs/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = Administration utilities for the Reiser4 filesystem.
-
-PKG_BUILD_DEPS+= autoconf automake e2fsprogs-devel libaal-devel libtool \
-       libuuid-devel ncurses-devel readline-devel
-
-define PKG_DESCRIPTION
+description
        The filesystem utilities for the reiser4 filesystem, including: \
        fsck.reiser4, measurefs.reiser4, mkfs.reiser4 and resizefs.reiser4.
-endef
+end
+
+source_dl  = http://www.kernel.org/pub/linux/utils/fs/reiser4/reiser4progs/
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               autoconf
+               automake
+               e2fsprogs-devel
+               libaal-devel
+               libtool
+               libuuid-devel
+               ncurses-devel
+               readline-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       configure_options += \
+               --sbindir=/sbin \
+               --libdir=/lib \
+               --disable-static \
+               --disable-libminimal
 
-CONFIGURE_OPTIONS += \
-       --sbindir=/sbin \
-       --libdir=/lib \
-       --disable-static \
-       --disable-libminimal
+       prepare_cmds
+               # Regenerate the buildsystem
+               libtoolize --install
+               aclocal
+               autoheader
+               autoconf
+               automake --add-missing
+       end
 
-define STAGE_PREPARE_CMDS
-       # Regenerate the buildsystem
-       cd $(DIR_APP) && libtoolize --install
-       cd $(DIR_APP) && aclocal
-       cd $(DIR_APP) && autoheader
-       cd $(DIR_APP) && autoconf
-       cd $(DIR_APP) && automake --add-missing
-endef
+       install_cmds
+               rm -vf %{BUILDROOT}/lib/lib{reiser4,repair}.so
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libreiser4-1.0.so.7 %{BUILDROOT}/usr/lib/libreiser4-1.0.so
+               ln -svf ../../lib/librepair-1.0.so.7 %{BUILDROOT}/usr/lib/librepair-1.0.so
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/lib/lib{reiser4,repair}.so
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libreiser4-1.0.so.7 $(BUILDROOT)/usr/lib/libreiser4-1.0.so
-       ln -svf ../../lib/librepair-1.0.so.7 $(BUILDROOT)/usr/lib/librepair-1.0.so
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 1563a1cbb038180b36a28b7dee49661391b7b08c..7130e20fba895b0c727865f43ab29771a705c686 100644 (file)
@@ -1,50 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = reiserfsprogs
+version    = 3.6.21
+release    = 1
 
-PKG_NAME       = reiserfsprogs
-PKG_VER        = 3.6.21
-PKG_REL        = 0
+groups     = System/Filesystems
+url        = http://www.kernel.org/pub/linux/utils/fs/reiserfs/
+license    = GPL
+summary    = Tools for ReiserFS filesystems.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://www.kernel.org/pub/linux/utils/fs/reiserfs/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = Tools for ReiserFS filesystems.
-
-define PKG_DESCRIPTION
-       This package contains utilities to create, check, resize, and \
+description
+       This package contains utilities to create, check, resize, and
        debug ReiserFS filesystems.
-endef
+end
+
+source_dl  = http://www.kernel.org/pub/linux/utils/fs/reiserfs/
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       configure_options += \
+               --sbindir=/sbin
 
-CONFIGURE_OPTIONS += \
-       --sbindir=/sbin
+       install_cmds
+               ln -svf reiserfsck %{BUILDROOT}/sbin/fsck.reiserfs
+               ln -svf mkreiserfs %{BUILDROOT}/sbin/mkfs.reiserfs
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       ln -svf reiserfsck $(BUILDROOT)/sbin/fsck.reiserfs
-       ln -svf mkreiserfs $(BUILDROOT)/sbin/mkfs.reiserfs
-endef
+packages
+       package %{name}
+       end
+end
index 9ea3eb58a482591a8e5f6f9aa684eb3c600aea9b..3384a59b5370e84d82724502fb21350777751310 100644 (file)
@@ -1,72 +1,72 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = rrdtool
+version    = 1.4.5
+release    = 1
 
-PKG_NAME       = rrdtool
-PKG_VER        = 1.4.5
-PKG_REL        = 0
+groups     = Applications/Databases
+url        = http://oss.oetiker.ch/rrdtool/
+license    = GPLv2+ with exceptions
+summary    = Round Robin Database Tool to store and display time-series data.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Databases
-PKG_URL        = http://oss.oetiker.ch/rrdtool/
-PKG_LICENSE    = GPLv2+ with exceptions
-PKG_SUMMARY    = Round Robin Database Tool to store and display time-series data.
-
-PKG_BUILD_DEPS+= cairo-devel gcc-c++ gettext groff libtool libxml2-devel \
-       pango-devel pkg-config python-devel
-
-define PKG_DESCRIPTION
+description
        RRD is the Acronym for Round Robin Database. RRD is a system to \
        store and display time-series data. It stores the data in a \
        very compact way that will not expand over time, and it presents \
        useful graphs by processing the data to enforce a certain data \
        density.
-endef
+end
+
+source_dl  = http://oss.oetiker.ch/rrdtool/pub/
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               cairo-devel
+               gcc-c++
+               gettext
+               groff
+               libtool
+               libxml2-devel
+               pango-devel
+               pkg-config
+               python-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+       configure_options += \
+               --disable-rrdcgi \
+               --disable-perl \
+               --disable-tcl \
+               --disable-ruby \
+               --disable-static \
+               --enable-python \
+               --enable-latin2
 
-CONFIGURE_OPTIONS += \
-       --disable-rrdcgi \
-       --disable-perl \
-       --disable-tcl \
-       --disable-ruby \
-       --disable-static \
-       --enable-python \
-       --enable-latin2
+       prepare_cmds
+               # Remove rpath
+               sed -e "s/--rpath=.* &/\&/" -i bindings/Makefile.*
+       end
 
-define STAGE_PREPARE_CMDS
-       # Remove rpath
-       cd $(DIR_APP) && sed -e "s/--rpath=.* &/\&/" -i bindings/Makefile.*
-endef
+       install_cmds
+               # Remove unused files
+               rm -rvf %{BUILDROOT}/usr/share/rrdtool/examples
 
-define STAGE_INSTALL_CMDS
-       # Remove unused files
-       rm -rvf $(BUILDROOT)/usr/share/rrdtool/examples
+               # Remove locale dir because no locales were installed
+               rm -rvf %{BUILDROOT}/usr/share/locale
+       end
+end
 
-       # Remove locale dir because no locales were installed
-       rm -rvf $(BUILDROOT)/usr/share/locale
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 986f5792d44e9b3d4666e65d74aa7393bce28cfa..65e00822f1b3011c394091e0fed38052f247563b 100644 (file)
@@ -1,52 +1,35 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = rstp
-PKG_VER        = 0.21
-PKG_REL        = 5
+name       = rstp
+version    = 0.21
+release    = 5
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://git.ipfire.org/?p=thirdparty/rstp.git;a=summary
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Rapid Spanning Tree Protocol for Linux Ethernet bridge.
+groups     = Networking/Tools
+url        = http://git.ipfire.org/?p=thirdparty/rstp.git;a=summary
+license    = GPLv2+
+summary    = Rapid Spanning Tree Protocol for Linux Ethernet bridge.
 
-define PKG_DESCRIPTION
+description
        Rapid Spanning Tree Protocol for Linux Ethernet bridge.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i Makefile \
-               -e "s/-Werror//" \
-               -e "s/^CFLAGS =/CFLAGS = $(CFLAGS)/g"
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install INSTALLPREFIX=$(BUILDROOT)
-       install -v -m 755 $(DIR_SOURCE)/bridge-stp $(BUILDROOT)/sbin/bridge-stp
-endef
+end
+
+build
+       prepare_cmds
+               sed -i Makefile \
+                       -e "s/-Werror//" \
+                       -e "s/^CFLAGS =/CFLAGS = %{CFLAGS}/g"
+       end
+
+       install
+               make install INSTALLPREFIX=%{BUILDROOT}
+               install -v -m 755 %{DIR_SOURCE}/bridge-stp %{BUILDROOT}/sbin/bridge-stp
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index f2bbfb9d78db94a49357c1c879a7bfcf76ca3611..4cc20d8c45ab3a04b09841a3c860b66a79c6e9b1 100644 (file)
@@ -1,42 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = rsync
-PKG_VER        = 3.0.7
-PKG_REL        = 1
+name       = rsync
+version    = 3.0.7
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Internet
-PKG_URL        = http://rsync.samba.org/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A program for synchronizing files over a network.
+groups     = Applications/Internet
+url        = http://rsync.samba.org/
+license    = GPLv3+
+summary    = A program for synchronizing files over a network.
 
-PKG_BUILD_DEPS+= autoconf libacl-devel libattr-devel popt-devel
-
-define PKG_DESCRIPTION
+description
        Rsync uses a reliable algorithm to bring remote and host files into
        sync very quickly. Rsync is fast because it just sends the differences
        in the files over the network instead of sending the complete
@@ -44,32 +20,50 @@ define PKG_DESCRIPTION
        just as a more capable replacement for the rcp command. A technical
        report which describes the rsync algorithm is included in this
        package.
-endef
+end
+
+source_dl  = http://rsync.samba.org/ftp/rsync/
+sources    += %{name}-patches-%{version}.tar.gz
+
+build
+       requires
+               autoconf
+               libacl-devel
+               libattr-devel
+               popt-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
-PKG_OBJECTS   += $(PKG_NAME)-patches-$(PKG_VER).tar.gz
+       prepare_cmds
+               # Fix permission issure.
+               cd %{DIR_APP} && chmod -x support/*
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_SRC) && $(DO_EXTRACT) \
-               $(DIR_DL)/$(PKG_NAME)-patches-$(PKG_VER).tar.gz
+               # Apply upstream patches.
+               patch -Np1 -i patches/acls.diff
+               patch -Np1 -i patches/xattrs.diff
+               patch -Np1 -i patches/copy-devices.diff
 
-       cd $(DIR_APP) && chmod -x support/*
+               # Remove cache.
+               rm -fr autum4te.cache
 
-       cd $(DIR_APP) && patch -Np1 -i patches/acls.diff
-       cd $(DIR_APP) && patch -Np1 -i patches/xattrs.diff
-       cd $(DIR_APP) && patch -Np1 -i patches/copy-devices.diff
+               # Regenerate build environment.
+               autoconf
+               autoheader
+       end
 
-       cd $(DIR_APP) && rm -fr autum4te.cache
-       cd $(DIR_APP) && autoconf
-       cd $(DIR_APP) && autoheader
-endef
+       make_build_targets = proto all
 
-STAGE_BUILD_TARGETS = proto all
+       make_install_targets += \
+               INSTALLCMD="install -p" \
+               INSTALLMAN="install -p"
 
-STAGE_INSTALL_TARGETS += INSTALLCMD="install -p" INSTALLMAN="install -p"
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/xinetd.d
+               install -p -m 644 %{DIR_SOURCE}/rsync.xinetd \
+                       %{BUILDROOT}/etc/xinetd.d/rsync
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/xinetd.d
-       install -p -m 644 $(DIR_SOURCE)/rsync.xinetd \
-               $(BUILDROOT)/etc/xinetd.d/rsync
-endef
+packages
+       package %{name}
+       end
+end
index de7362cd2e1a28438b9f4b9f457a964803021bee..cb19dc454f4772e8e6ae1fccc3e859f625e7b95d 100644 (file)
@@ -1,82 +1,73 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = rsyslog
-PKG_VER        = 5.8.0
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Daemons
-PKG_URL        = http://www.rsyslog.com/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = Enhanced system logging and kernel message trapping daemon.
+name       = rsyslog
+version    = 5.8.0
+release    = 2
 
-PKG_BUILD_DEPS+= gnutls-devel libgcrypt-devel libnet-devel zlib-devel
+groups     = Base System/Daemons
+url        = http://www.rsyslog.com/
+license    = GPLv3+
+summary    = Enhanced system logging and kernel message trapping daemon.
 
-PKG_PROVIDES-rsyslog += syslog
-PKG_REQUIRES-rsyslog += logrotate
-
-define PKG_DESCRIPTION
+description
        Rsyslog is an enhanced, multi-threaded syslog daemon. It supports MySQL,
        syslog/TCP, RFC 3195, permitted sender lists, filtering on any message part,
        and fine grain output format control. It is compatible with stock sysklogd
        and can be used as a drop-in replacement. Rsyslog is simple to set up, with
        advanced features suitable for enterprise-class, encryption-protected syslog
        relay chains.
-endef
+end
+
+provides  += syslog
+
+source_dl  = http://www.rsyslog.com/files/download/rsyslog/
+
+CFLAGS    += \
+       -DSYSLOGD_PIDNAME=\"syslogd.pid\"
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               gnutls-devel
+               libgcrypt-devel
+               libnet-devel
+               zlib-devel
+       end
 
-CFLAGS        += -DSYSLOGD_PIDNAME=\"syslogd.pid\"
+       configure_options += \
+               --exec-prefix= \
+               --libdir=/lib \
+               --with-systemdsystemunitdir=/lib/systemd/system \
+               --disable-static \
+               --disable-testbench \
+               --enable-gnutls \
+               --disable-gssapi-krb5 \
+               --enable-imfile \
+               --disable-libdbi \
+               --enable-mail \
+               --disable-mysql \
+               --enable-omprog \
+               --enable-omudpspoof \
+               --enable-omuxsock \
+               --disable-pgsql \
+               --enable-pmlastmsg \
+               --disable-relp \
+               --disable-snmp \
+               --enable-unlimited-select
 
-CONFIGURE_OPTIONS += \
-       --exec-prefix= \
-       --libdir=/lib \
-       --with-systemdsystemunitdir=/lib/systemd/system \
-       --disable-static \
-       --disable-testbench \
-       --enable-gnutls \
-       --disable-gssapi-krb5 \
-       --enable-imfile \
-       --disable-libdbi \
-       --enable-mail \
-       --disable-mysql \
-       --enable-omprog \
-       --enable-omudpspoof \
-       --enable-omuxsock \
-       --disable-pgsql \
-       --enable-pmlastmsg \
-       --disable-relp \
-       --disable-snmp \
-       --enable-unlimited-select
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/{logrotate.d,rsyslog.d,sysconfig}
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/{logrotate.d,rsyslog.d,sysconfig}
+               cp -vf %{DIR_SOURCE}/rsyslog.conf %{BUILDROOT}/etc/rsyslog.conf
+               cp -vf %{DIR_SOURCE}/rsyslog.sysconfig %{BUILDROOT}/etc/sysconfig/rsyslog
+               cp -vf %{DIR_SOURCE}/rsyslog.log %{BUILDROOT}/etc/logrotate.d/syslog
+       end
+end
 
-       cp -vf $(DIR_SOURCE)/rsyslog.conf $(BUILDROOT)/etc/rsyslog.conf
-       cp -vf $(DIR_SOURCE)/rsyslog.sysconfig $(BUILDROOT)/etc/sysconfig/rsyslog
-       cp -vf $(DIR_SOURCE)/rsyslog.log $(BUILDROOT)/etc/logrotate.d/syslog
-endef
+packages
+       package %{name}
+               requires = logrotate
+       end
+end
index 327d70939e63045332af6e44ac68414ccc95f2fb..320436c03885de28909685d0822341dc8005fa3b 100644 (file)
@@ -1,49 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = rtorrent
-PKG_VER        = 0.8.7
-PKG_REL        = 1
+name       = rtorrent
+version    = 0.8.7
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Internet/P2P
-PKG_URL        = http://libtorrent.rakshasa.no/
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = BitTorrent client based on libtorrent.
+groups     = Internet/P2P
+url        = http://libtorrent.rakshasa.no/
+license    = GPLv3
+summary    = BitTorrent client based on libtorrent.
 
-PKG_BUILD_DEPS+= gcc-c++ libcurl-devel libsigc++-devel libtorrent-devel ncurses-devel
-
-define PKG_DESCRIPTION
+description
        A BitTorrent client using libtorrent, which on high-bandwidth connections is
        able to seed at 3 times the speed of the official client. Using
        ncurses its ideal for use with screen or dtach. It supports
        saving of sessions and allows the user to add and remove torrents and scanning
        of directories for torrent files to seed and/or download.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-STAGE_BUILD_TARGETS += LDFLAGS=-lpthread
+end
+
+source_dl  = http://libtorrent.rakshasa.no/downloads/
+
+build
+       requires
+                gcc-c++
+               libcurl-devel
+               libsigc++-devel
+               libtorrent-devel
+               ncurses-devel
+       end
+
+       make_build_targets += LDFLAGS=-lpthread
+end
+
+packages
+       package %{name}
+       end
+end
index bfcc2bfe7b377af0672b60ebc9bd4973a348969c..c7591cd644a742aa954eace22c398e5ccabab512 100644 (file)
@@ -1,93 +1,97 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = samba
+version    = 3.5.11
+release    = 1
 
-PKG_NAME       = samba
-PKG_VER        = 3.5.11
-PKG_REL        = 1
+maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
+groups     = Networking/Daemons
+url        = http://www.samba.org/
+license    = GPLv3+ and LGPLv3+
+summary    = Server and Client software to interoperate with Windows machines.
 
-PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://www.samba.org/
-PKG_LICENSE    = GPLv3+ and LGPLv3+
-PKG_SUMMARY    = Server and Client software to interoperate with Windows machines.
-
-PKG_BUILD_DEPS+= autoconf automake avahi-devel cups-devel ncurses-devel \
-       libcap-devel openldap-devel openssl-devel pam-devel popt-devel \
-       readline-devel which
-
-define PKG_DESCRIPTION
-       Samba is the suite of programs by which a lot of PC-related machines \
-       share files, printers, and other information (such as lists of \
-       available files and printers). The Windows NT, OS/2, and Linux \
-       operating systems support this natively, and add-on packages can \
-       enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, \
-       and more. This package provides an SMB/CIFS server that can be used to \
-       provide network services to SMB/CIFS clients. \
-       Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT \
+description
+       Samba is the suite of programs by which a lot of PC-related machines
+       share files, printers, and other information (such as lists of
+       available files and printers). The Windows NT, OS/2, and Linux
+       operating systems support this natively, and add-on packages can
+       enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS,
+       and more. This package provides an SMB/CIFS server that can be used to
+       provide network services to SMB/CIFS clients.
+       Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT
        need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
-endef
+end
+
+source_dl  = http://www.samba.org/samba/ftp/stable/
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+CFLAGS    += \
+       -D_FILE_OFFSET_BITS=64 \
+       -D_GNU_SOURCE -DLDAP_DEPRECATED
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+build
+       requires
+               autoconf
+               automake
+               avahi-devel
+               cups-devel
+               ncurses-devel
+               libcap-devel
+               openldap-devel
+               openssl-devel
+               pam-devel
+               popt-devel
+               readline-devel
+               which
+       end
 
-CFLAGS    += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
+       DIR_APP = %{DIR_SRC}/%{thisapp}/source3
 
-define STAGE_BUILD
-       cd $(DIR_APP)/source3 && \
-               ./configure \
-                       --prefix=/usr \
-                       --localstatedir=/var \
-                       --with-lockdir=/var/lib/samba \
-                       --with-piddir=/var/run \
-                       --with-mandir=/usr/share/man \
-                       --with-privatedir=/var/lib/samba/private \
-                       --with-logfilebase=/var/log/samba \
-                       --with-modulesdir=/usr/lib/samba \
-                       --with-configdir=/etc/samba \
-                       --with-pammodulesdir=/lib/security \
-                       --with-swatdir=/usr/share/swat \
-                       --with-automount \
-                       --with-libsmbclient \
-                       --with-libsmbsharemodes \
-                       --with-pam \
-                       --with-pam_smbpass \
-                       --with-quotas \
-                       --with-sendfile-support \
-                       --with-syslog \
-                       --with-utmp \
-                       --with-winbind \
-                       --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
+       configure_options += \
+               --prefix=/usr \
+               --localstatedir=/var \
+               --with-lockdir=/var/lib/samba \
+               --with-piddir=/var/run \
+               --with-mandir=/usr/share/man \
+               --with-privatedir=/var/lib/samba/private \
+               --with-logfilebase=/var/log/samba \
+               --with-modulesdir=/usr/lib/samba \
+               --with-configdir=/etc/samba \
+               --with-pammodulesdir=/lib/security \
+               --with-swatdir=/usr/share/swat \
+               --with-automount \
+               --with-libsmbclient \
+               --with-libsmbsharemodes \
+               --with-pam \
+               --with-pam_smbpass \
+               --with-quotas \
+               --with-sendfile-support \
+               --with-syslog \
+               --with-utmp \
+               --with-winbind \
+               --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
 
-       cd $(DIR_APP)/source3 && make pch all modules $(PARALLELISMFLAGS)
-endef
+       make_build_targets += \
+               pch \
+               all modules
 
-define STAGE_INSTALL
-       cd $(DIR_APP)/source3 && make install DESTDIR=$(BUILDROOT)
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/samba
+               echo "127.0.0.1 localhost" > %{BUILDROOT}/etc/samba/lmhosts
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/etc/samba
-       echo "127.0.0.1 localhost" > $(BUILDROOT)/etc/samba/lmhosts
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index dfffed01681912eea4fe436bab23736e649c1cc6..8d6c3398a3460f8eeee3f8e283e01dac85b811be 100644 (file)
@@ -1,59 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = sane
-PKG_VER        = 1.0.21
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Application/Imaging
-PKG_URL        = ftp://ftp2.sane-project.org/pub/sane/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = SANE - Scanner Access Now Easy.
-
-PKG_BUILD_DEPS+= libjpeg-devel libtiff-devel libusb-devel
-
-define PKG_DESCRIPTION
-       sane-backends - includes: backends (scanner drivers), \
-       command-line-frontend (scanimage), network scanning daemon \
-       (saned) and SANE-API documentation. 
-endef
-
-PKG_TARBALL    = $(PKG_NAME)-backends-$(PKG_VER).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
-
-DIR_APP = $(DIR_SRC)/$(PKG_NAME)-backends-$(PKG_VER)
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --enable-parport-directio
-define STAGE_INSTALL_CMDS
-       chmod 4755 $(BUILDROOT)/usr/bin/scanimage
-       install -v -m 644 $(DIR_APP)/include/sane/* $(BUILDROOT)/usr/include/sane
-       rm -vf $(BUILDROOT)/usr/share/doc/sane-1.0.20/README.solaris
-endef
+name       = sane
+version    = 1.0.21
+release    = 1
+
+groups     = Application/Imaging
+url        = ftp://ftp2.sane-project.org/pub/sane/
+license    = GPLv2+
+summary    = SANE - Scanner Access Now Easy.
+
+description
+       sane-backends - includes: backends (scanner drivers),
+       command-line-frontend (scanimage), network scanning daemon
+       (saned) and SANE-API documentation.
+end
+
+source_dl  = ftp://ftp2.sane-project.org/pub/sane/sane-backends-%{version}/
+sources    = %{name}-backends-%{version}.tar.gz
+
+build
+       requires
+               libjpeg-devel
+               libtiff-devel
+               libusb-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/%{name}-backends-%{version}
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --enable-parport-directio
+
+       install_cmds
+               chmod 4755 %{BUILDROOT}/usr/bin/scanimage
+               install -v -m 644 %{DIR_APP}/include/sane/* %{BUILDROOT}/usr/include/sane
+               rm -vf %{BUILDROOT}/usr/share/doc/sane-1.0.20/README.solaris
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 0fc6b01a2de84943874f1586606a798684efddc3..c6d685aeb16d20e76b81cd6aeebc3eff89acd4a4 100644 (file)
@@ -1,61 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = screen
-PKG_VER        = 4.0.3
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Application/System
-PKG_URL        = http://www.gnu.org/software/screen
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A screen manager that supports multiple logins on one terminal.
+name       = screen
+version    = 4.0.3
+release    = 1
 
-PKG_BUILD_DEPS+= ncurses-devel pam-devel
+groups     = Application/System
+url        = http://www.gnu.org/software/screen
+license    = GPLv2+
+summary    = A screen manager that supports multiple logins on one terminal.
 
-define PKG_DESCRIPTION
-       The screen utility allows you to have multiple logins on just one \
-       terminal. Screen is useful for users who telnet into a machine or \
-       are connected via a dumb terminal, but want to use more than just \
+description
+       The screen utility allows you to have multiple logins on just one
+       terminal. Screen is useful for users who telnet into a machine or
+       are connected via a dumb terminal, but want to use more than just
        one login.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --with-socket-dir=/var/run/screen \
-       --with-sys-screenrc=/etc/screenrc \
-       --mandir=/usr/share/man
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -i -e "s%/usr/local/etc/screenrc%/etc/screenrc%" {etc,doc}/*
-endef
-
-define STAGE_INSTALL_CMDS
-       # Install screenrc
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/screenrc $(BUILDROOT)/etc/screenrc
-endef
+end
+
+source_dl  = http://ftp.gnu.org/gnu/screen/
+
+build
+       requires
+               ncurses-devel
+               pam-devel
+       end
+
+       configure_options += \
+               --with-socket-dir=/var/run/screen \
+               --with-sys-screenrc=/etc/screenrc \
+               --mandir=/usr/share/man
+
+       prepare_cmds
+               sed -i -e "s%/usr/local/etc/screenrc%/etc/screenrc%" {etc,doc}/*
+       end
+
+       install_cmds
+               # Install screenrc
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/screenrc %{BUILDROOT}/etc/screenrc
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index e067c4e59f2d357532fd8ca316b2ef070f4e3a7b..200dc564611dd1fd682722b95b42cfeed5882269 100644 (file)
@@ -1,47 +1,38 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = SDL
-PKG_VER        = 1.2.14
-PKG_REL        = 0
+name       = SDL
+version    = 1.2.14
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.libsdl.org/
-PKG_LICENSE    = LGPLv2+
-PKG_SUMMARY    = A cross-platform multimedia library.
+groups     = System/Libraries
+url        = http://www.libsdl.org/
+license    = LGPLv2+
+summary    = A cross-platform multimedia library.
 
-PKG_BUILD_DEPS+= directfb-devel libusb-compat-devel pkg-config
-
-define PKG_DESCRIPTION
-       Simple DirectMedia Layer (SDL) is a cross-platform multimedia library \
-       designed to provide fast access to the graphics frame buffer and audio \
+description
+       Simple DirectMedia Layer (SDL) is a cross-platform multimedia library
+       designed to provide fast access to the graphics frame buffer and audio
        device.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+end
+
+source_dl  = http://www.libsdl.org/release/
+
+build
+       requires
+               directfb-devel
+               libusb-compat-devel
+               pkg-config
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 230a3489def871910b91b41f0b7de90c13726d1f..49e71cd89fec17df18eeb50ec5c7446658e3f9ec 100644 (file)
@@ -1,56 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = sed
-PKG_VER        = 4.2.1
-PKG_REL        = 0
+name       = sed
+version    = 4.2.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/Text
-PKG_URL        = http://sed.sourceforge.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A GNU stream text editor.
+groups     = Base Build Applications/Text
+url        = http://sed.sourceforge.net/
+license    = GPLv2+
+summary    = A GNU stream text editor.
 
-PKG_BUILD_DEPS+= libselinux-devel
-
-define PKG_DESCRIPTION
+description
        The sed (Stream EDitor) editor is a stream or batch (non-interactive) \
        editor.  Sed takes text as input, performs an operation or set of \
        operations on the text and outputs the modified text. The operations \
        that sed performs (substitutions, deletions, insertions, etc.) can be \
        specified in a script file or from the command line.
-endef
+end
+
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+
+build
+       requires
+               libselinux-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --bindir=/bin \
+               --without-included-regex \
+               --mandir=/usr/share/man
 
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --without-included-regex \
-       --mandir=/usr/share/man
+       test
+               make check
+       end
+end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+packages
+       package %{name}
+       end
+end
index 53e6491853ce434b7327c68b4593ed4e445f9dad..bcd77ba89bf703284a7f77a2180c466cef778590 100644 (file)
@@ -1,66 +1,52 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = setup
-PKG_VER        = 3.0
-PKG_REL        = 1
+name       = setup
+version    = 3.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Base
-PKG_URL        =
-PKG_LICENSE    = Public Domain
-PKG_SUMMARY    = A set of system configuration and setup files.
+groups     = Base Build System/Base
+url        =
+license    = Public Domain
+summary    = A set of system configuration and setup files.
 
-PKG_BUILD_DEPS = # Need no compiler.
-PKG_DEPS      += iana-etc
-
-define PKG_DESCRIPTION
+description
        The setup package contains a set of important system configuration and
        setup files, such as passwd, group, and profile.
-endef
+end
+
+# No tarball.
+sources    =
+
+build
+       DIR_APP = %{DIR_SOURCE}
 
-DIR_APP = $(DIR_SOURCE)
+       build
+               ./shadowconvert.sh
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && ./shadowconvert.sh
-endef
+       test
+               make check
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+       install
+               mkdir -pv %{BUILDROOT}/etc/profile.d %{BUILDROOT}/var/log
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/etc/profile.d $(BUILDROOT)/var/log
+               for i in aliases bashrc exports filesystems group gshadow host.conf \
+                       hosts hosts.allow hosts.deny inputrc motd passwd printcap \
+                       profile securetty shadow shells; do \
+                       cp -vf %{DIR_APP}/${i} %{BUILDROOT}/etc || exit 1; \
+               done
 
-       for i in aliases bashrc exports filesystems group gshadow host.conf \
-               hosts hosts.allow hosts.deny inputrc motd passwd printcap \
-               profile securetty shadow shells; do \
-               cp -vf $(DIR_APP)/$${i} $(BUILDROOT)/etc || exit 1; \
-       done
+               touch %{BUILDROOT}/etc/{environment,fstab} %{BUILDROOT}/var/log/lastlog
+               chmod -v 0400 %{BUILDROOT}/etc/{,g}shadow
+       end
+end
 
-       touch $(BUILDROOT)/etc/{environment,fstab} $(BUILDROOT)/var/log/lastlog
-       chmod -v 0400 $(BUILDROOT)/etc/{,g}shadow
-endef
+packages
+       package %{name}
+               requires = iana-etc
+       end
+end
index 3b4b252f7d7ffdc825da9c721c6584cb4ab5197b..3b97ee071a5970e6f83270fa1d3a1f0f23b4afb8 100644 (file)
@@ -1,47 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = sg3_utils
-PKG_VER        = 1.32
-PKG_REL        = 0
+name       = sg3_utils
+version    = 1.32
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://sg.danny.cz/sg/sg3_utils.html
-PKG_LICENSE    = GPLv2+ and BSD
-PKG_SUMMARY    = Utilities for devices that use SCSI command sets.
+groups     = Applications/System
+url        = http://sg.danny.cz/sg/sg3_utils.html
+license    = GPLv2+ and BSD
+summary    = Utilities for devices that use SCSI command sets.
 
-define PKG_DESCRIPTION
-       Collection of Linux utilities for devices that use the SCSI command set. \
-       Includes utilities to copy data based on dd syntax and semantics (called \
-       sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check \
-       mode and log pages (sginfo, sg_modes and sg_logs); spin up and down \
+description
+       Collection of Linux utilities for devices that use the SCSI command set.
+       Includes utilities to copy data based on dd syntax and semantics (called
+       sg_dd, sgp_dd and sgm_dd); check INQUIRY data and VPD pages (sg_inq); check
+       mode and log pages (sginfo, sg_modes and sg_logs); spin up and down
        disks (sg_start); do self tests (sg_senddiag); and various other functions.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tgz
+source_dl  = http://sg.danny.cz/sg/p/
+sources    = %{thisapp}.tgz
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel $(PKG_NAME_REAL)-libs
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 712b6745108325dcb0157c158f622b771afbb4b9..7c8b7825ccf28e01aaa67e7cf1b3f45788f2fcea 100644 (file)
@@ -1,91 +1,71 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = shadow-utils
+version    = 4.1.4.3
+release    = 1
 
-PKG_NAME       = shadow-utils
-PKG_VER        = 4.1.4.3
-PKG_REL        = 1
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Base System/Base
+url        = http://pkg-shadow.alioth.debian.org/
+license    = GPLv2+
+summary    = Utilities to deal with user accounts.
 
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Base System/Base
-PKG_URL        = ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Utilities to deal with user accounts.
+description
+       The shadow-utils package includes the necessary programs
+       for converting UNIX password files to the shadow password
+       format, plus programs for managing user and group accounts.
+end
 
-PKG_BUILD_DEPS+= audit-devel libcap-devel libselinux-devel
-PKG_OBSOLETES += shadow
+obsoletes += shadow
+thisapp    = shadow-%{version}
 
-define PKG_DESCRIPTION
-       The shadow-utils package includes the necessary programs \
-       for converting UNIX password files to the shadow password \
-       format, plus programs for managing user and group accounts.
-endef
+source_dl  = http://pkg-shadow.alioth.debian.org/releases/
+sources    = %{thisapp}.tar.bz2
 
-THISAPP        = shadow-$(PKG_VER)
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               audit-devel
+               libcap-devel
+               libselinux-devel
+       end
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --enable-shadowgrp \
-       --with-sha-crypt \
-       --with-selinux \
-       --without-libcrack \
-       --without-libpam \
-       --disable-static
+       configure_options += \
+               --sysconfdir=/etc \
+               --enable-shadowgrp \
+               --with-sha-crypt \
+               --with-selinux \
+               --without-libcrack \
+               --without-libpam \
+               --disable-static
 
-define STAGE_PREPARE_CMDS
-       # Do not build these files:
-       cd $(DIR_APP) && \
+       prepare_cmds
+               # Do not build these files:
                for i in nologin chfn chgpasswd chpasswd chsh expiry gpasswd groups login \
                                logoutd passwd su; do \
-                       sed -i "s/$$i\$$(EXEEXT)//" src/Makefile.in; \
+                       sed -i "s/$$i\$%{EXEEXT}//" src/Makefile.in; \
                        find man -name Makefile.in -exec sed -i "s/$$i\.1/ /" {} \;; \
                done
-       cd $(DIR_APP) && sed -i src/Makefile.in \
-               -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
-
-       # Do not install korean and zh man pages
-       cd $(DIR_APP) && sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
 
-       # Do not install russion man pages - was broken in 4.1.4.3
-       cd $(DIR_APP) && sed -i -e 's/ ru//' man/Makefile.in
-endef
+               sed -i src/Makefile.in \
+                       -e "s/^suidbins.*/# &/" -e "s/^suidubins.*/# &/"
 
-define STAGE_INSTALL_CMDS
-       # Remove man pages in other languages
-       rm -rfv $(BUILDROOT)/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
-endef
+               # Do not install korean and zh man pages
+               sed -i -e 's/ ko//' -e 's/ zh_CN zh_TW//' man/Makefile.in
 
-define STAGE_INSTALL_POST
-       # Capabilities
-       chmod u-s $(BUILDROOT)/usr/bin/chage
-       setcap cap_dac_read_search+ep $(BUILDROOT)/usr/bin/chage
+               # Do not install russion man pages - was broken in 4.1.4.3
+               sed -i -e 's/ ru//' man/Makefile.in
+       end
 
-       chmod u-s $(BUILDROOT)/usr/bin/newgrp
-       setcap cap_dac_override,cap_setgid+ep $(BUILDROOT)/usr/bin/newgrp
+       install_cmds
+               # Remove man pages in other languages
+               rm -rfv %{BUILDROOT}/usr/share/man/{cs,de,fi,fr,hu,id,it,ja,pl,pt_BR,ru,sv,tr}
+       end
+end
 
-       # Configuration
-       install -p -c -m 0644 $(DIR_SOURCE)/login.defs $(BUILDROOT)/etc/login.defs
-endef
+packages
+       package %{name}
+       end
+end
index 5f608437050757dce7d83da2dc727b984fd47da2..d00867f4a453993afc739be03e2b550f8f9fa8bd 100644 (file)
@@ -1,60 +1,52 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = sip
+version    = 4.12-snapshot-12acbffd0085
+major_ver  = 4
+release    = 1
+epoch      = 1
 
-PKG_NAME       = sip
-PKG_VER        = 4.12-snapshot-12acbffd0085
-PKG_REL        = 0
-PKG_EPOCH      = 1
+groups     = Development/Tools
+url        = http://www.riverbankcomputing.com/software/sip/intro
+license    = GPLv2 or GPLv3
+summary    = SIP - Python/C++ Bindings Generator.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://www.riverbankcomputing.com/software/sip/intro
-PKG_LICENSE    = GPLv2 or GPLv3
-PKG_SUMMARY    = SIP - Python/C++ Bindings Generator.
-
-PKG_BUILD_DEPS+= gcc-c++ python-devel
-
-define PKG_DESCRIPTION
+description
        SIP is a tool for generating bindings for C++ classes so that they can be \
        accessed as normal Python classes. SIP takes many of its ideas from SWIG but, \
        because it is specifically designed for C++ and Python, is able to generate \
        tighter bindings. SIP is so called because it is a small SWIG.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-PKG_DEPS-$(PKG_NAME_REAL)-devel = sip
-
-define STAGE_BUILD
-       cd $(DIR_APP) && python configure.py \
-               CFLAGS+="$(CFLAGS)" CXXFLAGS+="$(CXXFLAGS)"
-
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
-
-PKG_FILES-$(PKG_NAME)-devel += /usr/bin/sip
+end
+
+source_dl  = http://www.riverbankcomputing.com/static/Downloads/sip%{major_ver}/
+
+build
+       requires
+               gcc-c++
+               python-devel
+       end
+
+       build
+               python configure.py \
+                       CFLAGS+="%{CFLAGS}" \
+                       CXXFLAGS+="%{CXXFLAGS}"
+
+               make %{PARALLELISMFLAGS}
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               files += /usr/bin/sip
+       
+               requires = sip
+       end
+end
index d37b669f38a5f82512514f933962352487b8517b..819431e3f559c9d0d1921b49ad92b80326ee55ea 100644 (file)
@@ -1,56 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = slang
-PKG_VER        = 2.1.4
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.jedsoft.org/slang/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Shared library for the S-Lang extension language.
+name       = slang
+version    = 2.1.4
+major_ver  = 2.1
+release    = 1
 
-PKG_BUILD_DEPS+= ncurses-devel pcre-devel
+groups     = System/Libraries
+url        = http://www.jedsoft.org/slang/
+license    = GPLv2+
+summary    = Shared library for the S-Lang extension language.
 
-define PKG_DESCRIPTION
-       S-Lang is an interpreted language and a programming library. \
-       The S-Lang language was designed so that it can be easily embedded \
-       into a program to provide the program with a powerful extension \
+description
+       S-Lang is an interpreted language and a programming library.
+       The S-Lang language was designed so that it can be easily embedded
+       into a program to provide the program with a powerful extension
        language.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += --sysconfdir=/etc
-
-PARALLELISMFLAGS = # off
-
-define STAGE_INSTALL_CMDS
-       rm -rvf $(BUILDROOT)/usr/share/slsh
-endef
+end
+
+source_dl  = ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v{major_ver}/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               ncurses-devel
+               pcre-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc
+
+       PARALLELISMFLAGS = # off
+
+       install_cmds
+               rm -rvf %{BUILDROOT}/usr/share/slsh
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index e965a0e7a3c72e4c84e039be003df4abf00d6a48..c35d048e18e866bc628eb07cb81b806f2d6a2fe6 100644 (file)
@@ -1,57 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = smartmontools
-PKG_VER        = 5.40
-PKG_REL        = 0
+name       = smartmontools
+version    = 5.40
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Statistics
-PKG_URL        = http://flex.sourceforge.net/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A set of tools that watches HDD S.M.A.R.T status.
+groups     = System/Statistics
+url        = http://smartmontools.sourceforge.net/
+license    = GPLv2
+summary    = A set of tools that watches HDD S.M.A.R.T status.
 
-PKG_BUILD_DEPS+= gcc-c++ libselinux-devel
-
-define PKG_DESCRIPTION
+description
        The smartmontools package contains two utility programs (smartctl \
        and smartd) to control and monitor storage systems using the \
        Self-Monitoring, Analysis and Reporting Technology System (SMART) \
        built into most modern ATA and SCSI harddisks. In many cases, \
        these utilities will provide advanced warning of disk degradation \
        and failure.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --sysconfdir=/etc \
-       --with-selinux
-
-define STAGE_INSTALL_CMDS
-       rm -rvf $(BUILDROOT)/etc/rc.d
-endef
+end
+
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+
+build
+       requires
+               gcc-c++
+               libselinux-devel
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man \
+               --sysconfdir=/etc \
+               --with-selinux
+
+       install_cmds
+               rm -rvf %{BUILDROOT}/etc/rc.d
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index b9875285ea989015b20b6dae4a870d9fe1f12e97..76d5effb53873cdd3fd792f6b0b603e7a4652fd1 100644 (file)
@@ -1,67 +1,68 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-# XXX need to fix rpath
-QUALITY_AGENT_WHITELIST_RPATH = /usr/lib
-
-PKG_NAME       = sqlite
-PKG_VER        = 3.7.3
-PKG_REL        = 0
+name       = sqlite
+version    = 3.7.3
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Databases
-PKG_URL        = http://www.sqlite.org/
-PKG_LICENSE    = PublicDomain
-PKG_SUMMARY    = A small an versative Database, that uses simple text files.
+groups     = System/Databases
+url        = http://www.sqlite.org/
+license    = PublicDomain
+summary    = A small an versative Database, that uses simple text files.
 
-PKG_BUILD_DEPS+= autoconf automake libtool ncurses-devel readline-devel tcl
-
-define PKG_DESCRIPTION
+description
        SQLite is a in-process library that implements a self-contained, \
        serverless, zero-configuration, transactional SQL database engine. \
        The code for SQLite is in the public domain and is thus free for \
        use for any purpose, commercial or private. SQLite is currently \
        found in more applications than we can count, including several \
        high-profile projects.
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               autoconf
+               automake
+               libtool
+               ncurses-devel
+               readline-devel
+               tcl
+       end
+
+       CFLAGS += \
+               -DSQLITE_ENABLE_COLUMN_METADATA=1 \
+               -DSQLITE_DISABLE_DIRSYNC=1 \
+               -DSQLITE_ENABLE_FTS3=3 \
+               -DSQLITE_ENABLE_RTREE=1 \
+               -DSQLITE_SECURE_DELETE=1 \
+               -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
+               -fno-strict-aliasing
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --enable-threadsafe \
+               --enable-threads-override-locks \
+               --enable-load-extension \
+               --disable-tcl
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       prepare_cmds
+               autoreconf -vfi
+       end
+end
 
-CFLAGS += -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 \
-       -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 \
-       -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -fno-strict-aliasing
+quality-agent
+       whitelist_rpath
+               /usr/lib
+       end
+end
 
-CONFIGURE_OPTIONS += \
-       --enable-threadsafe \
-       --enable-threads-override-locks \
-       --enable-load-extension \
-       --disable-tcl
+packages
+       package %{name}
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -vfi
-endef
+       package %{name}-devel
+               template DEVEL
+       end
+end
index dc75ab71cd5890937588af3eecff0a8bb4cf48dd..ac328e21644872a5fb563489ce148e4dabdb3b5b 100644 (file)
@@ -1,59 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = squashfs-tools
+version    = 4.1
+release    = 1
 
-PKG_NAME       = squashfs-tools
-PKG_VER        = 4.1
-PKG_REL        = 1
+groups     = System/Filesystem
+url        = http://squashfs.sf.net/
+license    = GPLv2+
+summary    = Utility for the creation of squashfs filesystems.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystem
-PKG_URL        = http://squashfs.sf.net/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Utility for the creation of squashfs filesystems.
-
-PKG_BUILD_DEPS+= libattr-devel xz-devel zlib-devel
+description
+       Squashfs is a highly compressed read-only filesystem for Linux.
+end
 
-# XXX This package has a very weird dependency to libgcc_s.so.1.
-# Can we fix this in a non-hacky way?
-PKG_DEPS      += libgcc_s.so.1
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+sources    = squashfs-%{version}.tar.gz
 
-define PKG_DESCRIPTION
-       Squashfs is a highly compressed read-only filesystem for Linux.
-endef
+build
+       requires
+               libattr-devel
+               xz-devel
+               zlib-devel
+       end
 
-PKG_TARBALL    = squashfs-$(PKG_VER).tar.gz
+       DIR_APP = %{DIR_SRC}/squashfs/squashfs-tools
 
-DIR_APP        = $(DIR_SRC)/squashfs/squashfs-tools
+       make_build_targets = RPM_OPT_FLAGS="%{CFLAGS}"
 
-define STAGE_BUILD
-               cd $(DIR_APP) && make $(PARALLELISMFLAGS) RPM_OPT_FLAGS="$(CFLAGS)"
-endef
+       install
+               mkdir -pv %{BUILDROOT}/usr/bin
+               install -m 755 mksquashfs %{BUILDROOT}/usr/bin
+               install -m 755 unsquashfs %{BUILDROOT}/usr/bin
+       end
+end
 
-define STAGE_INSTALL
-               -mkdir -pv $(BUILDROOT)/usr/bin
-               cd $(DIR_APP) && install -m 755 mksquashfs $(BUILDROOT)/usr/bin
-               cd $(DIR_APP) && install -m 755 unsquashfs $(BUILDROOT)/usr/bin
-endef
+# XXX This package has a very weird dependency to libgcc_s.so.1.
+# Can we fix this in a non-hacky way?
+packages
+       package %{name}
+               requires = libgcc_s.so.1
+       end
+end
index 4a311b17b755e501c7b55da75de955cba5296f0b..20d542dfb6ef299751e5608b6db4592e9f3e5ee3 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = squid
+version    = 3.1.12
+major_ver  = 3.1
+release    = 1
 
-PKG_NAME       = squid
-PKG_VER        = 3.1.12
-PKG_REL        = 1
+maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
+groups     = Networking/Daemons
+url        = http://www.squid-cache.org/
+license    = GPLv2+
+summary    = The Squid proxy caching server.
 
-PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://www.squid-cache.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = The Squid proxy caching server.
-
-PKG_BUILD_DEPS+= gcc-c++ libxml2-devel openssl-devel openldap-devel samba-devel \
-       iptables-devel $(PKG_DEPS) pam-devel libcap-devel
-PKG_DEPS      += /usr/bin/smbclient
+description
+       Squid is a high-performance proxy caching server for Web clients,
+       supporting FTP, gopher, and HTTP data objects. Unlike traditional
+       caching software, Squid handles all requests in a single,
+       non-blocking, I/O-driven process. Squid keeps meta data and especially
+       hot objects cached in RAM, caches DNS lookups, supports non-blocking
+       DNS lookups, and implements negative caching of failed requests.
+end
 
-PKG_REQUIRES_FILTER = perl\(Authen::Smb\)
+source_dl  = http://www.squid-cache.org/Versions/v3/%{major_ver}/
 
-define PKG_DESCRIPTION
-       Squid is a high-performance proxy caching server for Web clients, \
-       supporting FTP, gopher, and HTTP data objects. Unlike traditional \
-       caching software, Squid handles all requests in a single, \
-       non-blocking, I/O-driven process. Squid keeps meta data and especially \
-       hot objects cached in RAM, caches DNS lookups, supports non-blocking \
-       DNS lookups, and implements negative caching of failed requests.
+build
+       requires
+               gcc-c++
+               libxml2-devel
+               openssl-devel
+               openldap-devel
+               samba-devel
+               iptables-devel
+               pam-devel
+               libcap-devel
+               /usr/bin/smbclient
+       end
 
-endef
+       export PKG_REQUIRES_FILTER = perl\(Authen::Smb\)
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --datadir=/usr/lib/squid \
+               --libexecdir=/usr/lib/squid \
+               --localstatedir=/var \
+               --sysconfdir=/etc/squid \
+               --enable-storeio="aufs,diskd,ufs" \
+               --enable-removal-policies="heap,lru" \
+               --enable-icmp \
+               --enable-delay-pools \
+               --disable-esi \
+               --disable-icap-client \
+               --enable-useragent-log \
+               --enable-referrer-log \
+               --disable-wccp \
+               --disable-wccpv2 \
+               --enable-kill-parent-hack \
+               --enable-snmp \
+               --enable-arp-acl \
+               --enable-ipf-transparent \
+               --enable-htcp \
+               --enable-ssl \
+               --enable-forw-via-db \
+               --disable-cache-digests \
+               --enable-poll \
+               --enable-select \
+               --disable-kqueue \
+               --enable-epoll \
+               --enable-http-violations \
+               --enable-linux-netfilter \
+               --disable-ident-lookups \
+               --enable-internal-dns \
+               --enable-auth=basic,ntlm \
+               --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
+               --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \
+               --enable-ntlm-fail-open \
+               --with-filedescriptors=16384 \
+               --enable-unlinkd \
+               --with-pthreads \
+               --with-aio \
+               --with-dl \
+               --with-large-files
 
-CONFIGURE_OPTIONS += \
-       --datadir=/usr/lib/squid \
-       --libexecdir=/usr/lib/squid \
-       --localstatedir=/var \
-       --sysconfdir=/etc/squid \
-       --enable-storeio="aufs,diskd,ufs" \
-       --enable-removal-policies="heap,lru" \
-       --enable-icmp \
-       --enable-delay-pools \
-       --disable-esi \
-       --disable-icap-client \
-       --enable-useragent-log \
-       --enable-referrer-log \
-       --disable-wccp \
-       --disable-wccpv2 \
-       --enable-kill-parent-hack \
-       --enable-snmp \
-       --enable-arp-acl \
-       --enable-ipf-transparent \
-       --enable-htcp \
-       --enable-ssl \
-       --enable-forw-via-db \
-       --disable-cache-digests \
-       --enable-poll \
-       --enable-select \
-       --disable-kqueue \
-       --enable-epoll \
-       --enable-http-violations \
-       --enable-linux-netfilter \
-       --disable-ident-lookups \
-       --enable-internal-dns \
-       --enable-auth=basic,ntlm \
-       --enable-basic-auth-helpers="LDAP,MSNT,multi-domain-NTLM,PAM,NCSA,SMB,squid_radius_auth" \
-       --enable-ntlm-auth-helpers="smb_lm,no_check,fakeauth" \
-       --enable-ntlm-fail-open \
-       --with-filedescriptors=16384 \
-       --enable-unlinkd \
-       --with-pthreads \
-       --with-aio \
-       --with-dl \
-       --with-large-files
+       install_cmds
+               rm -vf %{BUILDROOT}/etc/squid/errors
+               rmdir  %{BUILDROOT}/var/logs
 
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/etc/squid/errors
-       rmdir  $(BUILDROOT)/var/logs
+               mkdir -pv %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/log/squid
+               touch %{BUILDROOT}/var/log/squid/access.log
+               mkdir -pv %{BUILDROOT}/var/cache/squid
 
-       -mkdir -pv $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/log/squid
-       touch $(BUILDROOT)/var/log/squid/access.log
-       -mkdir -pv $(BUILDROOT)/var/cache/squid
+               # What is this?????
+               #groupadd -r squid && useradd -r -g squid -d %{BUILDROOT}/var/cache/squid -s /bin/false -p '*' squid
+               #chown -Rv squid:squid %{BUILDROOT}/var/log/squid %{BUILDROOT}/var/log/cache %{BUILDROOT}/var/cache/squid
+               #chmod 600 %{BUILDROOT}/var/cache/squid
+               #chown squid:squid %{BUILDROOT}/var/log/squid
+       end
+end
 
-       # What is this?????
-       #groupadd -r squid && useradd -r -g squid -d $(BUILDROOT)/var/cache/squid -s /bin/false -p '*' squid
-       #chown -Rv squid:squid $(BUILDROOT)/var/log/squid $(BUILDROOT)/var/log/cache $(BUILDROOT)/var/cache/squid
-       #chmod 600 $(BUILDROOT)/var/cache/squid
-       #chown squid:squid $(BUILDROOT)/var/log/squid
-endef
+packages
+       package %{name}
+               requires = /usr/bin/smbclient
+       end
+end
index 0c0a9dfb82710a69fdc91241a909fc63e2044547..ce0e4199ae7d28370e93bf94f5b0f3660bf661df 100644 (file)
@@ -1,64 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = squidGuard
-PKG_VER        = 1.4.1
-PKG_REL        = 1
+name       = squidGuard
+version    = 1.4.1
+release    = 1
 
-PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://www.squidguard.org
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Filter, redirector and access controller plugin for squid.
+maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
+groups     = Networking/Daemons
+url        = http://www.squidguard.org
+license    = GPLv2
+summary    = Filter, redirector and access controller plugin for squid.
 
-PKG_BUILD_DEPS+= bison openldap-devel flex db4-devel shadow
-
-define PKG_DESCRIPTION
-       SquidGuard is a URL redirector used to use blacklists with the \
+description
+       SquidGuard is a URL redirector used to use blacklists with the
        proxysoftware Squid.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --datadir=/usr/share \
-       --sysconfdir=/etc \
-       --localstatedir=/var \
-       --infodir=/usr/share/info \
-       --mandir=/usr/share/man  \
-       --with-sg-config=/etc/squidGuard/squidGuard.conf \
-       --with-sg-logdir=/var/log/squidGuard \
-       --with-sg-dbhome=/var/lib/squidguard \
-       --with-db=/usr \
-       --with-db-inc=/usr/include \
-       --with-db-lib=/usr/lib \
-       --with-ldap
-
-define STAGE_PREPARE_CMDS
-       groupadd -g 23 -r squid
-       useradd -u 23 -r -s /sbin/nologin -d /var/spool/squid -M \
-               -c 'Squid proxy user' -g squid squid
-endef
+end
+
+source_dl  = http://www.squidguard.org/Downloads/
+
+build
+       requires
+               bison
+               openldap-devel
+               flex
+               db4-devel
+               shadow
+       end
+
+       configure_options += \
+               --datadir=/usr/share \
+               --sysconfdir=/etc \
+               --localstatedir=/var \
+               --infodir=/usr/share/info \
+               --mandir=/usr/share/man  \
+               --with-sg-config=/etc/squidGuard/squidGuard.conf \
+               --with-sg-logdir=/var/log/squidGuard \
+               --with-sg-dbhome=/var/lib/squidguard \
+               --with-db=/usr \
+               --with-db-inc=/usr/include \
+               --with-db-lib=/usr/lib \
+               --with-ldap
+
+       prepare_cmds
+               groupadd -g 23 -r squid
+               useradd -u 23 -r -s /sbin/nologin -d /var/spool/squid -M \
+                       -c 'Squid proxy user' -g squid squid
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 12f635174d14782f0ecba2ee80424c3a86b25b95..5497a556c6c15894c3fdd198602b8701a3569692 100644 (file)
@@ -1,47 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = strace
+version    = 4.5.19
+release    = 1
 
-PKG_NAME       = strace
-PKG_VER        = 4.5.19
-PKG_REL        = 0
+groups     = Development/Debuggers
+url        = http://sourceforge.net/projects/strace/
+license    = BSD
+summary    = Tracks and displays system calls associated with a running process.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Debuggers
-PKG_URL        = http://sourceforge.net/projects/strace/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Tracks and displays system calls associated with a running process.
-
-define PKG_DESCRIPTION
+description
        The strace program intercepts and records the system calls called and \
        received by a running process.  Strace can print a record of each \
        system call, its arguments and its return value. Strace is useful \
        for diagnosing problems and debugging, as well as for instructional \
        purposes.
-endef
+end
+
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       configure_options += \
+               --mandir=/usr/share/man
+end
 
-CONFIGURE_OPTIONS += --mandir=/usr/share/man
+packages
+       package %{name}
+       end
+end
index f6dedbec846733f6b867e7ac5106b9cbfe6c965e..17361fa9a11d22374c7d067983907dbee9b09f6f 100644 (file)
@@ -1,68 +1,67 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = strongswan
+version    = 4.5.3
+release    = 1
 
-PKG_NAME       = strongswan
-PKG_VER        = 4.5.3
-PKG_REL        = 1
+groups     = Networking/VPN
+url        = http://www.strongswan.org/
+license    = GPL
+summary    = IPsec and IKEv1 implementation for Linux 2.4 and 2.6 kernels.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/VPN
-PKG_URL        = http://www.strongswan.org/
-PKG_LICENSE    = GPL
-PKG_SUMMARY    = IPsec and IKEv1 implementation for Linux 2.4 and 2.6 kernels.
-
-PKG_BUILD_DEPS+= bison flex gmp-devel gperf libcap-devel libcurl-devel \
-       libgcrypt-devel openldap-devel perl sqlite-devel
-
-define PKG_DESCRIPTION
+description
        StrongSwan is a complete IPsec and IKEv1 implementation for \
        Linux 2.4 and 2.6 kernels. It also fully supports the new IKEv2 \
        protocol with Linux 2.6 kernels. It interoperates in both IKEv1 \
        and IKEv2 mode with most other IPsec-based VPN products.
-endef
+end
 
-# Plugins and many other files are installed in /usr/lib/ipsec
-# and loaded by using a RPATH.
-QUALITY_AGENT_WHITELIST_RPATH = /usr/lib/ipsec
+source_dl  = http://download.strongswan.org/
+
+build
+       requires
+               bison
+               flex
+               gmp-devel
+               gperf
+               libcap-devel
+               libcurl-devel
+               libgcrypt-devel
+               openldap-devel
+               perl
+               sqlite-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libexecdir=/usr/lib \
+               --with-user=nobody \
+               --with-group=nobody \
+               --enable-curl \
+               --enable-ldap \
+               --enable-sqlite \
+               --enable-gcrypt \
+               --enable-padlock \
+               --enable-cisco-quirks \
+               --with-capabilities=libcap
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       test
+               make check
+       end
+end
 
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libexecdir=/usr/lib \
-       --with-user=nobody \
-       --with-group=nobody \
-       --enable-curl \
-       --enable-ldap \
-       --enable-sqlite \
-       --enable-gcrypt \
-       --enable-padlock \
-       --enable-cisco-quirks \
-       --with-capabilities=libcap
+# Plugins and many other files are installed in /usr/lib/ipsec
+# and loaded by using a RPATH.
+quality-agent
+       whitelist_rpath
+               /usr/lib/ipsec
+       end
+end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+packages
+       package %{name}
+       end
+end
index a10bea6a3d0b577d9b8b3a9bfbc5896953b9bf54..a85f6119d4ffb6642cb4fa93dab4fc01037a93f6 100644 (file)
@@ -1,72 +1,62 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = sudo
-PKG_VER        = 1.7.4p3
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://www.sudo.ws/sudo/download.html
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Allows restricted root access for specified users.
-
-PKG_BUILD_DEPS+= audit-devel cyrus-sasl-devel libselinux-devel openldap-devel\
-       pam-devel
-
-define PKG_DESCRIPTION
-       Sudo (superuser do) allows a system administrator to give certain \
-       users (or groups of users) the ability to run some (or all) commands \
-       as root while logging all commands and arguments. Sudo operates on a \
-       per-command basis.  It is not a replacement for the shell.  Features \
-       include: the ability to restrict what commands a user may run on a \
-       per-host basis, copious logging of each command (providing a clear \
-       audit trail of who did what), a configurable timeout of the sudo \
-       command, and the ability to use the same configuration file (sudoers) \
+name       = sudo
+version    = 1.7.4p3
+release    = 1
+
+groups     = Base Applications/System
+url        = http://www.sudo.ws/sudo/download.html
+license    = BSD
+summary    = Allows restricted root access for specified users.
+
+description
+       Sudo (superuser do) allows a system administrator to give certain
+       users (or groups of users) the ability to run some (or all) commands
+       as root while logging all commands and arguments. Sudo operates on a
+       per-command basis.  It is not a replacement for the shell.  Features
+       include: the ability to restrict what commands a user may run on a
+       per-host basis, copious logging of each command (providing a clear
+       audit trail of who did what), a configurable timeout of the sudo
+       command, and the ability to use the same configuration file (sudoers)
        on many different machines.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --libexecdir=/usr/lib \
-       --with-logging=syslog \
-       --with-logfac=authpriv \
-       --with-pam \
-       --with-pam-login \
-       --with-editor=/usr/bin/vi \
-       --with-env-editor \
-       --with-ignore-dot \
-       --with-tty-tickets \
-       --with-ldap \
-       --with-passprompt="[sudo] password for %p: " \
-       --with-selinux \
-       --with-linux-audit
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/sudoers $(BUILDROOT)/etc/sudoers
-endef
+end
+
+source_dl  = http://www.sudo.ws/sudo/dist/
+
+build
+       requires
+               audit-devel
+               cyrus-sasl-devel
+               libselinux-devel
+               openldap-devel
+               pam-devel
+       end
+
+       configure_options += \
+               --libexecdir=/usr/lib \
+               --with-logging=syslog \
+               --with-logfac=authpriv \
+               --with-pam \
+               --with-pam-login \
+               --with-editor=/usr/bin/vi \
+               --with-env-editor \
+               --with-ignore-dot \
+               --with-tty-tickets \
+               --with-ldap \
+               --with-passprompt="[sudo] password for %p: " \
+               --with-selinux \
+               --with-linux-audit
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/sudoers %{BUILDROOT}/etc/sudoers
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 468258bff0b4e5474e1f01531dfa7535645d6996..56becaa405d840f893a556eb0a4b48d3611bda46 100644 (file)
@@ -1,59 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = suricata
-PKG_VER        = 1.0.5
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/IDS
-PKG_URL        = http://www.openinfosecfoundation.org/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Open Source Next Generation Intrusion Detection and Prevention Engine.
-
-PKG_BUILD_DEPS+= libcap-ng-devel libnfnetlink-devel libnetfilter_queue-devel \
-       libnet-devel libpcap-devel libyaml-devel pcre-devel pkg-config zlib-devel
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
-       The suricata engine is not intended to just replace or emulate the \
-       existing tools in the industry, but provides new ideas and \
-       technologies. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --enable-gccprotect \
-       --enable-nfqueue \
-       --disable-static
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/logrotate.d/
-       cp -vf $(DIR_SOURCE)/suricata.logrotate $(BUILDROOT)/etc/logrotate.d/$(PKG_NAME)
-endef
-
+name       = suricata
+version    = 1.0.5
+release    = 1
+
+groups     = Networking/IDS
+url        = http://www.openinfosecfoundation.org/
+license    = GPLv2
+summary    = Open Source Next Generation Intrusion Detection and Prevention Engine.
+
+description
+       The suricata engine is not intended to just replace or emulate the
+       existing tools in the industry, but provides new ideas and
+       technologies.
+end
+
+source_dl  = http://www.openinfosecfoundation.org/download/
+
+build
+       requires
+               libcap-ng-devel
+               libnfnetlink-devel
+               libnetfilter_queue-devel
+               libnet-devel
+               libpcap-devel
+               libyaml-devel
+               pcre-devel
+               pkg-config
+               zlib-devel
+       end
+
+       configure_options += \
+               --enable-gccprotect \
+               --enable-nfqueue \
+               --disable-static
+end
+
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 7c9a0f7d3ab789b69b2bccc4cd4962b553209961..2ce14b632a7f2ac90e0ae66645d3e65ddfd93074 100644 (file)
@@ -1,57 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = swig
-PKG_VER        = 2.0.1
-PKG_REL        = 0
+name       = swig
+version    = 2.0.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Tools
-PKG_URL        = http://swig.sourceforge.net/
-PKG_LICENSE    = GPLv3+ and BSD
-PKG_SUMMARY    = Connects C/C++/Objective C to some high-level programming \
+groups     = Development/Tools
+url        = http://swig.sourceforge.net/
+license    = GPLv3+ and BSD
+summary    = Connects C/C++/Objective C to some high-level programming \
        languages.
 
-PKG_BUILD_DEPS+= autoconf automake gcc-c++ pcre-devel perl python-devel
-
-define PKG_DESCRIPTION
-       Simplified Wrapper and Interface Generator (SWIG) is a software \
-       development tool for connecting C, C++ and Objective C programs with a \
-       variety of high-level programming languages.  SWIG is primarily used \
-       with Perl, Python and Tcl/TK, but it has also been extended to Java, \
-       Eiffel and Guile.  SWIG is normally used to create high-level \
-       interpreted programming environments, systems integration, and as a \
+description
+       Simplified Wrapper and Interface Generator (SWIG) is a software
+       development tool for connecting C, C++ and Objective C programs with a
+       variety of high-level programming languages.  SWIG is primarily used
+       with Perl, Python and Tcl/TK, but it has also been extended to Java,
+       Eiffel and Guile.  SWIG is normally used to create high-level
+       interpreted programming environments, systems integration, and as a
        tool for building user interfaces.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --sbindir=/sbin
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && ./autogen.sh
-endef
+end
+
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+
+build
+       requires
+               autoconf
+               automake
+               gcc-c++
+               pcre-devel
+               perl
+               python-devel
+       end
+
+       configure_options += \
+               --sbindir=/sbin
+
+       prepare_cmds
+               ./autogen.sh
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 126137a74fb9953dae0ceedac7063908e4316656..909e005ec4f570c62b54e1e4de2800d86724d499 100644 (file)
@@ -1,46 +1,34 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = sysfsutils
-PKG_VER        = 2.1.0
-PKG_REL        = 0
+name       = sysfsutils
+version    = 2.1.0
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://sourceforge.net/projects/linux-diag/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Utilities for interfacing with sysfs.
+groups     = System/Libraries
+url        = http://sourceforge.net/projects/linux-diag/
+license    = GPLv2
+summary    = Utilities for interfacing with sysfs.
 
-define PKG_DESCRIPTION
-       This package's purpose is to provide a set of utilities for interfacing \
+description
+       This package's purpose is to provide a set of utilities for interfacing
        with sysfs.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += --mandir=/usr/share/man
+end
+
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+
+build
+       configure_options += \
+               --mandir=/usr/share/man
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 2ca02e6f574e0e9fab4ef10c8b94693b60a42332..db8ff61002adf7abfe5c8b9b085f8c001bd6140e 100644 (file)
@@ -1,66 +1,66 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = syslinux
+version    = 4.02
+release    = 1
 
-PKG_NAME       = syslinux
-PKG_VER        = 4.02
-PKG_REL        = 0
+groups     = System/Boot
+url        = http://syslinux.zytor.com/
+license    = GPLv2+
+summary    = Simple kernel loader which boots from a FAT filesystem.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Boot
-PKG_URL        = http://syslinux.zytor.com/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Simple kernel loader which boots from a FAT filesystem.
-
-PKG_BUILD_DEPS+= nasm python-devel
-
-define PKG_DESCRIPTION
+description
        SYSLINUX is a suite of bootloaders, currently supporting DOS FAT \
        filesystems, Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots \
        (PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX).  It also includes a tool, \
        MEMDISK, which loads legacy operating systems from these media.
-endef
+end
+
+source_dl  = http://www.kernel.org/pub/linux/utils/boot/syslinux/
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               nasm
+               python-devel
+       end
+       
+       CFLAGS = -Werror -Wno-unused -finline-limit=2000
 
-CFLAGS         = -Werror -Wno-unused -finline-limit=2000
+       prepare_cmds
+               cd %{DIR_APP} && make clean
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && make clean
-endef
+       build
+               make installer \
+                       %{PARALLELISMFLAGS} \
+                       CC="gcc \
+                       -std=gnu99 \
+                       -fgnu89-inline \
+                       -fno-pic \
+                       -fno-pie \
+                       -nopie"
+               make -C sample tidy
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make installer $(PARALLELISMFLAGS) \
-               CC="gcc -std=gnu99 -fgnu89-inline -fno-pic -fno-pie -nopie"
-       cd $(DIR_APP) && make -C sample tidy
-endef
+       install
+               make install-all \
+                       INSTALLROOT=%{BUILDROOT} \
+                       CC="gcc \
+                       -std=gnu99 \
+                       -fgnu89-inline \
+                       -fno-pic \
+                       -fno-pie \
+                       -nopie" \
+                       MANDIR=/usr/share/man
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install-all INSTALLROOT=$(BUILDROOT) \
-               CC="gcc -std=gnu99 -fgnu89-inline -fno-pic -fno-pie -nopie" \
-               MANDIR=/usr/share/man
+               rm -rvf %{BUILDROOT}/{boot,tftpboot}
+       end
+end
 
-       rm -rvf $(BUILDROOT)/{boot,tftpboot}
-endef
+packages
+       package %{name}
+       end
+end
index 8e6cfa8b2bb43ecbae1766ec29b8f5d73916849a..24f0a56acb089796f3a9df057bb1f4b985400374 100644 (file)
@@ -1,29 +1,8 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
 # Make the configuration of your distribution right here.
 DISTRO_NAME    = IPFire
 DISTRO_SNAME   = ipfire
@@ -32,55 +11,59 @@ DISTRO_RELEASE = 3
 DISTRO_SLOGAN  = Gluttony
 DISTRO_COLOR   = 0;31
 
-PKG_NAME       = $(DISTRO_SNAME)-release
-PKG_VER        = $(DISTRO_VERSION)
-PKG_REL        = 1
-PKG_EPOCH      = 3
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
-PKG_GROUPS     = Base System/Base
-PKG_URL        = http://www.ipfire.org
-PKG_LICENSE    =
-PKG_SUMMARY    = $(DISTRO_NAME) release files.
+name       = %{DISTRO_SNAME}-release
+version    = %{DISTRO_VERSION}
+release    = 1
+epoch      = 3
+arch       = noarch
 
-# In general to this package is referred as "system-release".
-PKG_PROVIDES  += system-release
-PKG_OBSOLETES  = system-release
+maintainer = Michael Tremer <michael.tremer@ipfire.org>
+groups     = Base Build System/Base
+url        = http://www.ipfire.org
+license    =
+summary    = %{DISTRO_NAME} release files.
 
-define PKG_DESCRIPTION
-       $(DISTRO_NAME) release files such as pakfire configs and various /etc/ \
+description
+       %{DISTRO_NAME} release files such as pakfire configs and various /etc/ \
        files that define the release.
-endef
+end
 
-PKG_TARBALL    =
+# No tarball.
+sources    =
 
-PKG_PACKAGES   = $(PKG_NAME)
+build
+       prepare = # Do nothing
+       build = # Do nothing
 
-STAGE_PREPARE = # Do nothing
-STAGE_BUILD = # Do nothing
+       install
+               mkdir -pv %{BUILDROOT}/etc
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/etc
+               echo "%{DISTRO_NAME} v%{DISTRO_VERSION} for %{DISTRO_ARCH} - %{DISTRO_SLOGAN} (\l)" \
+                       > %{BUILDROOT}/etc/issue
+               echo "===============================" >> %{BUILDROOT}/etc/issue
+               echo "\n running on \s \r \m"          >> %{BUILDROOT}/etc/issue
 
-       echo "$(DISTRO_NAME) v$(DISTRO_VERSION) for $(DISTRO_ARCH) - $(DISTRO_SLOGAN) (\l)" \
-               > $(BUILDROOT)/etc/issue
-       echo "===============================" >> $(BUILDROOT)/etc/issue
-       echo "\n running on \s \r \m"          >> $(BUILDROOT)/etc/issue
+               echo "%{DISTRO_NAME} release %{DISTRO_VERSION} (%{DISTRO_SLOGAN})" \
+                       > %{BUILDROOT}/etc/%{DISTRO_SNAME}-release
+               ln -svf %{DISTRO_SNAME}-release %{BUILDROOT}/etc/system-release
 
-       echo "$(DISTRO_NAME) release $(DISTRO_VERSION) ($(DISTRO_SLOGAN))" \
-               > $(BUILDROOT)/etc/$(DISTRO_SNAME)-release
-       ln -svf $(DISTRO_SNAME)-release $(BUILDROOT)/etc/system-release
+               # Set a default hostname that is set until the user customizes that.
+               echo "%{DISTRO_SNAME}.localdomain" > %{BUILDROOT}/etc/hostname
 
-       # Set a default hostname that is set until the user customizes that.
-       echo "$(DISTRO_SNAME).localdomain" > $(BUILDROOT)/etc/hostname
+               # Create /etc/os-release.
+               echo "NAME=\"%{DISTRO_NAME}\"" >> %{BUILDROOT}/etc/os-release
+               echo "VERSION=\"%{DISTRO_VERSION}\"" >> %{BUILDROOT}/etc/os-release
+               echo "ID=%{DISTRO_SNAME}" >> %{BUILDROOT}/etc/os-release
+               echo "VERSION_ID=%{DISTRO_RELEASE}" >> %{BUILDROOT}/etc/os-release
+               echo "PRETTY_NAME=\"%{DISTRO_NAME} %{DISTRO_VERSION} (%{DISTRO_SLOGAN})\"" \
+                       >> %{BUILDROOT}/etc/os-release
+               echo "ANSI_COLOR=%{DISTRO_COLOR}" >> %{BUILDROOT}/etc/os-release
+       end
+end
 
-       # Create /etc/os-release.
-       echo "NAME=\"$(DISTRO_NAME)\"" >> $(BUILDROOT)/etc/os-release
-       echo "VERSION=\"$(DISTRO_VERSION)\"" >> $(BUILDROOT)/etc/os-release
-       echo "ID=$(DISTRO_SNAME)" >> $(BUILDROOT)/etc/os-release
-       echo "VERSION_ID=$(DISTRO_RELEASE)" >> $(BUILDROOT)/etc/os-release
-       echo "PRETTY_NAME=\"$(DISTRO_NAME) $(DISTRO_VERSION) ($(DISTRO_SLOGAN))\"" \
-               >> $(BUILDROOT)/etc/os-release
-       echo "ANSI_COLOR=$(DISTRO_COLOR)" >> $(BUILDROOT)/etc/os-release
-endef
+packages
+       package %{name}
+               provides = system-release
+               obsoletes = system-release
+       end
+end
index a19df4086f564c478b83e264f1e6a18b35da4f0b..51aa583c606fd4e66596f69a6c2ab8c2ef1974c1 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = systemd
-PKG_VER        = 33
-PKG_REL        = 1
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.freedesktop.org/wiki/Software/systemd
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A System and Service Manager.
+name       = systemd
+version    = 33
+release    = 1
 
-PKG_BUILD_DEPS+= audit-devel automake autoconf cryptsetup-luks-devel dbus-devel \
-       gperf intltool libcap-devel libselinux-devel libtool libudev-devel>=172 \
-       pam-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = System/Base
+url        = http://www.freedesktop.org/wiki/Software/systemd
+license    = GPLv2+
+summary    = A System and Service Manager.
 
-# systemd-analyze requires python-cairo + python-dbus
-PKG_DEPS-systemd = dbus python-cairo python-dbus udev>=172
-
-define PKG_DESCRIPTION
-       systemd is a system and service manager for Linux, compatible with \
+description
+       systemd is a system and service manager for Linux, compatible with
        SysV and LSB init scripts.
-endef
-
-PKG_CONFLICTS += upstart
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-units $(PKG_NAME)-devel
-
-# Package information for systemd-units
-PKG_SUMMARY-systemd-units =  Configuration files, directories and installation tool for systemd.
-PKG_DESCRIPTION-systemd-units = This package contains all needed configuration files, directories \
-       and installation / configuration tool for systemd.
-
-define PKG_FILES-systemd-units
-       /etc/systemd/system
-       /etc/tmpfiles.d
-       /etc/bash_completion.d/systemctl-bash-completion.sh
-       /lib/systemd/system
-       /bin/systemctl
-       /bin/systemd-tmpfiles
-       /usr/share/man/man1/systemctl.*
-endef
-
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libexecdir=/usr/lib \
-       --with-rootdir= \
-       --with-distro=other \
-       --with-sysvinit-path= \
-       --with-sysvrcd-path= \
-       --with-udevrulesdir=/lib/udev/rules.d/ \
-       --with-pamlibdir=/lib/security
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && ./autogen.sh ac
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
-
-define STAGE_INSTALL_CMDS
-       # Create sysv compatible symlinks.
-       -mkdir -pv $(BUILDROOT)/sbin
-       ln -svf ../bin/systemd   $(BUILDROOT)/sbin/init
-       ln -svf ../bin/systemctl $(BUILDROOT)/sbin/reboot
-       ln -svf ../bin/systemctl $(BUILDROOT)/sbin/halt
-       ln -svf ../bin/systemctl $(BUILDROOT)/sbin/poweroff
-       ln -svf ../bin/systemctl $(BUILDROOT)/sbin/shutdown
-
-       # Create empty machine-id file.
-       touch $(BUILDROOT)/etc/machine-id
-
-       # Copy locale and console settings
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/locale.conf $(BUILDROOT)/etc/
-       cp -vf $(DIR_SOURCE)/vconsole.conf $(BUILDROOT)/etc/
-
-       # Recreate all targets
-       rm -rfv $(BUILDROOT)/etc/systemd/system/*.target.wants
-       -mkdir -pv $(BUILDROOT)/lib/systemd/system/basic.target.wants
-       -mkdir -pv $(BUILDROOT)/lib/systemd/system/default.target.wants
-        -mkdir -pv $(BUILDROOT)/lib/systemd/system/dbus.target.wants
-        -mkdir -pv $(BUILDROOT)/lib/systemd/system/syslog.target.wants
+end
+
+conflicts += upstart
+
+source_dl  = http://cgit.freedesktop.org/systemd/snapshot/
+
+build
+       requires
+               audit-devel
+               automake
+               autoconf
+               cryptsetup-luks-devel
+               dbus-devel
+               gperf
+               intltool
+               libcap-devel
+               libselinux-devel
+               libtool
+               libudev-devel>=172
+               pam-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libexecdir=/usr/lib \
+               --with-rootdir= \
+               --with-distro=other \
+               --with-sysvinit-path= \
+               --with-sysvrcd-path= \
+               --with-udevrulesdir=/lib/udev/rules.d/ \
+               --with-pamlibdir=/lib/security
+
+       prepare_cmds
+               ./autogen.sh ac
+       end
+
+       test
+               make check
+       end
+
+       install_cmds
+               # Create sysv compatible symlinks.
+               mkdir -pv %{BUILDROOT}/sbin
+               ln -svf ../bin/systemd   %{BUILDROOT}/sbin/init
+               ln -svf ../bin/systemctl %{BUILDROOT}/sbin/reboot
+               ln -svf ../bin/systemctl %{BUILDROOT}/sbin/halt
+               ln -svf ../bin/systemctl %{BUILDROOT}/sbin/poweroff
+               ln -svf ../bin/systemctl %{BUILDROOT}/sbin/shutdown
+
+               # Create empty machine-id file.
+               touch %{BUILDROOT}/etc/machine-id
+
+               # Copy locale and console settings
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/locale.conf %{BUILDROOT}/etc/
+               cp -vf %{DIR_SOURCE}/vconsole.conf %{BUILDROOT}/etc/
+
+               # Recreate all targets
+               rm -rfv %{BUILDROOT}/etc/systemd/system/*.target.wants
+               mkdir -pv %{BUILDROOT}/lib/systemd/system/basic.target.wants
+               mkdir -pv %{BUILDROOT}/lib/systemd/system/default.target.wants
+               mkdir -pv %{BUILDROOT}/lib/systemd/system/dbus.target.wants
+               mkdir -pv %{BUILDROOT}/lib/systemd/system/syslog.target.wants
+
+               # Remove runlevel targets and graphical.target
+               rm -rfv %{BUILDROOT}/lib/systemd/system/runlevel*
+               rm -rfv %{BUILDROOT}/lib/systemd/system/graphical.target
+
+               # Set default target to multi-user
+               cd %{BUILDROOT}/lib/systemd/system && ln -svf multi-user.target default.target
+
+               # Replace absolute symlinks by relative ones.
+               cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/bluetooth.target bluetooth.target
+               cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/local-fs.target local-fs.target
+               cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/printer.target printer.target
+               cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/shutdown.target shutdown.target
+               cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/sockets.target sockets.target
+               cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/sound.target sound.target
+               cd %{BUILDROOT}/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/swap.target swap.target
+
+               # Remove tmpfile for X11
+               rm -rfv %{BUILDROOT}/usr/lib/tmpfiles.d/x11.conf
+
+               # Remove unneeded symlink for xdg
+               rm -rfv %{BUILDROOT}/etc/xdg/systemd
+       end
+end
+
+packages
+       package %{name}
+               requires = dbus python-cairo python-dbus udev>=172
+       end
        
-       # Remove runlevel targets and graphical.target
-       rm -rfv $(BUILDROOT)/lib/systemd/system/runlevel*
-       rm -rfv $(BUILDROOT)/lib/systemd/system/graphical.target
-
-       # Set default target to multi-user
-       cd $(BUILDROOT)/lib/systemd/system && ln -svf multi-user.target default.target
-
-       # Replace absolute symlinks by relative ones.
-       cd $(BUILDROOT)/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/bluetooth.target bluetooth.target
-       cd $(BUILDROOT)/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/local-fs.target local-fs.target
-       cd $(BUILDROOT)/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/printer.target printer.target
-       cd $(BUILDROOT)/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/shutdown.target shutdown.target
-       cd $(BUILDROOT)/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/sockets.target sockets.target
-       cd $(BUILDROOT)/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/sound.target sound.target
-       cd $(BUILDROOT)/usr/lib/systemd/user/ && ln -svf ../../../../lib/systemd/system/swap.target swap.target
+       # Package information for systemd-units
+       package %{name}-units
+               summary =  Configuration files, directories and installation tool for systemd.
+               description
+                       This package contains all needed configuration files, directories
+                       and installation / configuration tool for systemd.
+               end
        
-       # Remove tmpfile for X11
-       rm -rfv $(BUILDROOT)/usr/lib/tmpfiles.d/x11.conf
-
-       # Remove unneeded symlink for xdg
-       rm -rfv $(BUILDROOT)/etc/xdg/systemd
-endef
-
+               files
+                       /etc/systemd/system
+                       /etc/tmpfiles.d
+                       /etc/bash_completion.d/systemctl-bash-completion.sh
+                       /lib/systemd/system
+                       /bin/systemctl
+                       /bin/systemd-tmpfiles
+                       /usr/share/man/man1/systemctl.*
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 18b5679faf57186bbeb20b54c978135aa57b5dcb..31f82c2d58f17404d799a27db4d7e2aba0e8c679 100644 (file)
@@ -1,57 +1,44 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = sysvinit
-PKG_VER        = 2.86
-PKG_REL        = 1
+name       = sysvinit
+version    = 2.86
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = https://alioth.debian.org/projects/pkg-sysvinit/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Programs which control basic system processes.
+groups     = System/Base
+url        = https://alioth.debian.org/projects/pkg-sysvinit/
+license    = GPLv2+
+summary    = Programs which control basic system processes.
 
-PKG_BUILD_DEPS+= libselinux-devel
-
-define PKG_DESCRIPTION
+description
        The sysvinit package contains a group of processes that control \
        the very basic functions of your system.
-endef
+end
+
+sources    = %{thisapp}.tar.gz
+
+CFLAGS    += -D_GNU_SOURCE
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               libselinux-devel
+       end
 
-CFLAGS        += -D_GNU_SOURCE
+       make_build_targets += \
+               -C src CFLAGS="%{CFLAGS}" \
+               LDFLAGS="" \
+               LCRYPT="-lcrypt"
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make -C src CFLAGS="$(CFLAGS)" LDFLAGS="" \
-               LCRYPT="-lcrypt" $(PARALLELISMFLAGS)
-endef
+       install
+               mkdir -pv %{BUILDROOT}/{bin,sbin,usr/{bin,include}}
+               mkdir -pv %{BUILDROOT}/usr/share/man/man{1,5,8}
+               make -C src install ROOT=%{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/{bin,sbin,usr/{bin,include}}
-       -mkdir -pv $(BUILDROOT)/usr/share/man/man{1,5,8}
-       cd $(DIR_APP) && make -C src install ROOT=$(BUILDROOT)
-endef
+packages
+       package %{name}
+       end
+end
index e357cf53b7b4279dd0dab88cbfca6c5f36b2f3c8..74bd88e6d2511e595bc0000bdb90b63136b77c15 100644 (file)
@@ -1,65 +1,58 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = tar
-PKG_VER        = 1.26
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Packaging
-PKG_URL        = http://www.gnu.org/software/tar/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A GNU file archiving program.
-
-PKG_BUILD_DEPS+= autoconf automake gettext libacl-devel libattr-devel \
-       libselinux-devel
-
-define PKG_DESCRIPTION
-       The GNU tar program saves many files together in one archive \
-       and can restore individual files (or all of the files) from  \
-       that archive. Tar can also be used to add supplemental files \
-       to an archive and to update or list files in the archive. Tar \
-       includes multivolume support,automatic archive \
-       compression/decompression, the ability to perform remote archives, \
+name       = tar
+version    = 1.26
+release    = 1
+
+groups     = Base Build System/Packaging
+url        = http://www.gnu.org/software/tar/
+license    = GPLv3+
+summary    = A GNU file archiving program.
+
+description
+       The GNU tar program saves many files together in one archive
+       and can restore individual files (or all of the files) from
+       that archive. Tar can also be used to add supplemental files
+       to an archive and to update or list files in the archive. Tar
+       includes multivolume support,automatic archive
+       compression/decompression, the ability to perform remote archives,
        and the ability to perform incremental and full backups.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.xz
+source_dl  = http://ftp.gnu.org/gnu/tar/
+sources    = %{thisapp}.tar.xz
 
 CONFIGURE_ENVIRONMENT = FORCE_UNSAFE_CONFIGURE=1
 
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --libexecdir=/usr/sbin \
-       --enable-selinux
-
-define STAGE_PREPARE_CMDS
-       cd  $(DIR_APP) && autoreconf -vfi
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+build
+       requires
+               autoconf
+               automake
+               gettext
+               libacl-devel
+               libattr-devel
+               libselinux-devel
+       end
+
+       configure_options += \
+               --bindir=/bin \
+               --libexecdir=/usr/sbin \
+               --enable-selinux \
+               FORCE_UNSAFE_CONFIGURE=1
+
+       prepare_cmds
+               autoreconf -vfi
+       end
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 20deaa004a958e2db5cb9e4d7270ba0170f789fd..17815c5e357a043072f20116bdb531993cab7f7e 100644 (file)
@@ -1,70 +1,60 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = tcl
-PKG_VER        = 8.5.8
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://tcl.sourceforge.net/
-PKG_LICENSE    = TCL
-PKG_SUMMARY    = Tool Command Language, pronounced tickle.
+name       = tcl
+version    = 8.5.8
+release    = 1
 
-PKG_BUILD_DEPS+= autoconf automake 
+groups     = Development/Languages
+url        = http://tcl.sourceforge.net/
+license    = TCL
+summary    = Tool Command Language, pronounced tickle.
 
-define PKG_DESCRIPTION
+description
        The Tcl (Tool Command Language) provides a powerful platform for\
        creating integration applications that tie together diverse \
        applications, protocols, devices, and frameworks.
-endef
+end
 
-PKG_TARBALL    = tcl$(PKG_VER)-src.tar.gz
-
-CONFIGURE_OPTIONS += \
-       --enable-shared
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+sources    = tcl%{version}-src.tar.gz
 
 CFLAGS        += -DTCL_NO_STACK_CHECK=1
 
-DIR_APP = $(DIR_SRC)/tcl$(PKG_VER)/unix
+build
+       requires
+               autoconf
+               automake
+       end
+
+
+       DIR_APP = %{DIR_SRC}/tcl%{version}/unix
+
+       configure_options +=\
+               --enable-shared
+
+       prepare
+               cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/${source}/%{sources}
+               cd %{DIR_APP} && cd ..
 
-define STAGE_PREPARE
-       cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
+               %{MACRO_PATCHES}
 
-       cd $(DIR_APP) && cd .. && $(BUILD_TOOLS)/patch \
-               $(foreach patch,$(PKG_PATCHES),$(DIR_PATCHES)/$(patch))
+               cd %{DIR_APP} && autoconf
+       end
 
-       cd $(DIR_APP) && autoconf
-endef
+       test
+               make test
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make test
-endef
+       install_cmds
+               cd %{DIR_APP} && make install-private-headers DESTDIR=%{BUILDROOT}
+               ln -sf tclsh8.5 %{BUILDROOT}/usr/bin/tclsh
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       cd $(DIR_APP) && make install-private-headers DESTDIR=$(BUILDROOT)
-       ln -sf tclsh8.5 $(BUILDROOT)/usr/bin/tclsh      
-endef
+packages
+       package %{name}
+       end
+end
index 2703f8dcfe1c186cd7e2f2ae2459194ee89ba4d6..849b84f534dc6f74ab002d997064f127f0542770 100644 (file)
@@ -1,52 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = tcpdump
+version    = 4.1.1
+release    = 1
 
-PKG_NAME       = tcpdump
-PKG_VER        = 4.1.1
-PKG_REL        = 0
+groups     = Networking/Sniffer
+url        = http://www.tcpdump.org/
+license    = BSD with advertising
+summary    = A network traffic monitoring tool.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Sniffer
-PKG_URL        = http://www.tcpdump.org/
-PKG_LICENSE    = BSD with advertising
-PKG_SUMMARY    = A network traffic monitoring tool.
+description
+       Tcpdump is a command-line tool for monitoring network traffic.
+       Tcpdump can capture and display the packet headers on a particular
+       network interface or on all interfaces.  Tcpdump can display all of
+       the packet headers, or just the ones that match particular criteria.
+end
 
-PKG_BUILD_DEPS+= libpcap-devel openssl-devel
+source_dl  = http://www.tcpdump.org/release/
 
-define PKG_DESCRIPTION
-       Tcpdump is a command-line tool for monitoring network traffic. \
-       Tcpdump can capture and display the packet headers on a particular \
-       network interface or on all interfaces.  Tcpdump can display all of \
-       the packet headers, or just the ones that match particular criteria.
-endef
+CFLAGS    += -fno-strict-aliasing
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               libpcap-devel
+               openssl-devel
+       end
 
-CFLAGS        += -fno-strict-aliasing
+       configure_options += \
+               --with-crypto \
+               --without-smi
+end
 
-CONFIGURE_OPTIONS += \
-       --with-crypto \
-       --without-smi
+packages
+       package %{name}
+       end
+end
index 64d2e7a4a4b01b1f9fb6ea59d7a12b75a221660f..38da6f194b005a3de8c060d500097dd6b9a0b74e 100644 (file)
@@ -1,59 +1,30 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = telnet
+version    = 0.17
+release    = 2
 
-PKG_NAME       = telnet
-PKG_VER        = 0.17
-PKG_REL        = 2
+groups     = Applications/Internet
+url        = http://www.ibiblio.org/pub/Linux/system/network/netkit/
+license    = BSD
+summary    = Telnet is a popular protocol for logging into remote systems over the Internet.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Internet
-PKG_URL        = http://www.ibiblio.org/pub/Linux/system/network/netkit/ 
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = Telnet is a popular protocol for logging into remote systems over the Internet.
-
-PKG_BUILD_DEPS+= gcc-c++ ncurses-devel 
-
-define PKG_DESCRIPTION
+description
        Telnet is a popular protocol for logging into remote systems over the
        Internet. The package includes a daemon that supports Telnet remote
        logins into the host machine.
-endef
-
-PKG_TARBALL    = netkit-$(THISAPP).tar.gz
-PKG_OBJECTS   += telnet-client.tar.gz
+end
 
-DIR_APP = $(DIR_SRC)/netkit-$(THISAPP)
-
-# Overwite configure options, because configure script 
-# doesn't accept flags for used compiler or host definition
-CONFIGURE_OPTIONS = \
-       --prefix=/usr
+source_dl  = http://www.ibiblio.org/pub/Linux/system/network/netkit/
+sources    = netkit-%{thisapp}.tar.gz
+sources   += telnet-client.tar.gz
 
 # Apply patches in a special order
-PKG_PATCHES    = telnet-client-cvs.patch0 \
+patches    = \
+       telnet-client-cvs.patch0 \
        telnetd-0.17.patch0 \
        telnet-0.17-env.patch \
        telnet-0.17-pek.patch0 \
@@ -71,27 +42,49 @@ PKG_PATCHES    = telnet-client-cvs.patch0 \
        telnet-0.17-errno_test_sys_bsd.patch \
        netkit-telnet-0.17-reallynodns.patch
 
-define STAGE_PREPARE 
-       cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
-       cd $(DIR_APP) && mv telnet telnet-netkit
-       cd $(DIR_APP) && $(DO_EXTRACT) $(DIR_DL)/telnet-client.tar.gz
+build
+       requires
+               gcc-c++
+               ncurses-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/netkit-%{thisapp}
+
+       # Overwite configure options, because configure script
+       # doesn't accept flags for used compiler or host definition
+       configure_options = \
+               --prefix=/usr
+
+
+       # For the telnet client we have to extract a second tarball into the source
+       # directory of the main tarball.
+       prepare
+               cd %{DIR_SRC} && %{MACRO_EXTRACT} %{DIR_DL}/netkit-%{thisapp}.tar.gz
+               cd %{DIR_APP} && mv telnet telnet-netkit
+               cd %{DIR_APP} && %{MACRO_EXTRACT} %{DIR_DL}/telnet-client.tar.gz
+
+               %{MACRO_PATCHES}
+       end
 
-       $(DO_PATCHES)
-endef
+       install
+               # We have to create the directories on our own
+               mkdir -pv %{BUILDROOT}/usr/man/man{1,5,8}
+               mkdir -pv %{BUILDROOT}/usr/{,s}bin
 
-define STAGE_INSTALL
-       # We have to create the directories on our own
-       -mkdir -pv $(BUILDROOT)/usr/man/man{1,5,8}
-       -mkdir -pv $(BUILDROOT)/usr/{,s}bin 
+               make install INSTALLROOT=%{BUILDROOT}
 
-       cd $(DIR_APP) && make install INSTALLROOT=$(BUILDROOT)
+               # Move manpages to correct place
+               mkdir -pv %{BUILDROOT}/usr/share
+               mv %{BUILDROOT}/usr/man %{BUILDROOT}/usr/share/man
 
-       # Move manpages to correct place
-       -mkdir -pv $(BUILDROOT)/usr/share
-       mv $(BUILDROOT)/usr/man $(BUILDROOT)/usr/share/man
+               # Remove telnetd, we don't want it
+               rm -rf %{BUILDROOT}/usr/sbin
+               rm -rf %{BUILDROOT}/usr/share/man/man8
+               rm -rf %{BUILDROOT}/usr/share/man/man5
+       end
+end
 
-       # Remove telnetd, we don't want it
-       rm -rf $(BUILDROOT)/usr/sbin
-       rm -rf $(BUILDROOT)/usr/share/man/man8
-       rm -rf $(BUILDROOT)/usr/share/man/man5
-endef
+packages
+       package %{name}
+       end
+end
index 04ea3eb293e9be0f7a699fcf69ef7dd77cc1aa59..733bc2147fdff81303940a8d69ea36dd22d36a9a 100644 (file)
@@ -1,51 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = texinfo
+version    = 4.13a
+release    = 2
 
-PKG_NAME       = texinfo
-PKG_VER        = 4.13a
-PKG_REL        = 2
+groups     = Applications/Publishing
+url        = http://www.gnu.org/software/texinfo/
+license    = GPLv3
+summary    = Tools needed to create Texinfo format documentation files.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Publishing
-PKG_URL        = http://www.gnu.org/software/texinfo/
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = Tools needed to create Texinfo format documentation files.
+description
+       Texinfo is a documentation system that can produce both online
+       information and printed output from a single source file. The GNU
+       Project uses the Texinfo file format for most of its documentation.
+end
 
-PKG_BUILD_DEPS+= help2man ncurses-devel zlib-devel
+source_dl  = http://ftp.gnu.org/gnu/texinfo/
 
-define PKG_DESCRIPTION
-       Texinfo is a documentation system that can produce both online \
-       information and printed output from a single source file. The GNU \
-       Project uses the Texinfo file format for most of its documentation.
-endef
+build
+       requires
+               help2man
+               ncurses-devel
+               zlib-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       DIR_APP = %{DIR_SRC}/%{name}-4.13
 
-DIR_APP        = $(DIR_SRC)/$(PKG_NAME)-4.13
+       test
+               make check
+       end
+end
 
-define STAGE_TEST
-        cd $(DIR_APP) && make check
-endef
+packages
+       package %{name}
+       end
+end
index b350a077c67836f7f2dd98d6971846edfcdd0c64..6ad56184ed449815ef9c2468d1bff80ba0019160 100644 (file)
@@ -1,42 +1,18 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = tinc
-PKG_VER        = 1.0.14
-PKG_REL        = 1
+name       = tinc
+version    = 1.0.14
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://www.tinc-vpn.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A virtual private network daemon.
+groups     = Networking/Tools
+url        = http://www.tinc-vpn.org/
+license    = GPLv2+
+summary    = A virtual private network daemon.
 
-PKG_BUILD_DEPS+= lzo-devel openssl-devel zlib-devel
-
-define PKG_DESCRIPTION
+description
        tinc is a Virtual Private Network (VPN) daemon that uses tunnelling
        and encryption to create a secure private network between hosts on
        the Internet. Because the tunnel appears to the IP level network
@@ -44,6 +20,19 @@ define PKG_DESCRIPTION
        existing software. This tunnelling allows VPN sites to share
        information with each other over the Internet without exposing any
        information to others.
-endef
+end
+
+source_dl  = http://www.tinc-vpn.org/packages/
+
+build
+       requires
+               lzo-devel
+               openssl-devel
+               zlib-devel
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+       end
+end
index 77312ccb2477a09a0716cbbb23c2692cf143d253..9197cb24cf1c99d75b0c9a06c23f018efe26dbf1 100644 (file)
@@ -1,57 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = traceroute
-PKG_VER        = 2.0.12
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Application/Internet
-PKG_URL        = http://traceroute.sourceforge.net
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Traces the route taken by packets over an IPv4/IPv6 network.
-
-define PKG_DESCRIPTION
-       The traceroute utility displays the route used by IP packets \
-       on their way to a specified network (or Internet) host. \
-       Traceroute displays the IP number and host name (if possible) \
-       of the machines along the route taken by the packets. \
-       Traceroute is used as a network debugging tool. If you're \
-       having network connectivity problems, traceroute will show you \
+name       = traceroute
+version    = 2.0.12
+release    = 1
+
+groups     = Application/Internet
+url        = http://traceroute.sourceforge.net
+license    = GPLv2+
+summary    = Traces the route taken by packets over an IPv4/IPv6 network.
+
+description
+       The traceroute utility displays the route used by IP packets
+       on their way to a specified network (or Internet) host.
+       Traceroute displays the IP number and host name (if possible)
+       of the machines along the route taken by the packets.
+       Traceroute is used as a network debugging tool. If you're
+       having network connectivity problems, traceroute will show you
        where the trouble is coming from along the route.
-endef
+end
+
+source_dl  = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}/
+
+build
+       prepare_cmds
+               echo "CFLAGS += %{CFLAGS}" >> Make.defines
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       install
+               make install prefix=%{BUILDROOT}/usr
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && echo "CFLAGS += $(CFLAGS)" >> Make.defines
-endef
+               chmod 755 %{BUILDROOT}/usr/bin/traceroute
+               ln -svf traceroute %{BUILDROOT}/usr/bin/traceroute6
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install prefix=$(BUILDROOT)/usr
-       chmod 755 $(BUILDROOT)/usr/bin/traceroute
-       ln -svf traceroute $(BUILDROOT)/usr/bin/traceroute6
-endef
+packages
+       package %{name}
+       end
+end
index e15e40a5046b20ce826130e41afcb08733095da7..dbca120e21ce3797da87b65abe17038879287791 100644 (file)
@@ -1,45 +1,35 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = transmission
-PKG_VER        = 2.22
-PKG_REL        = 1
+name       = transmission
+version    = 2.22
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Internet/P2P
-PKG_URL        = https://trac.transmissionbt.com
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = A BitTorrent client.
+groups     = Internet/P2P
+url        = https://trac.transmissionbt.com
+license    = GPLv3
+summary    = A BitTorrent client.
 
-PKG_BUILD_DEPS+= intltool libcurl-devel libevent-devel openssl-devel
-
-define PKG_DESCRIPTION
+description
        Transmission is a BitTorrent client which features a simple
        interface on top of a cross-platform back-end.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
+end
+
+source_dl  = http://download.transmissionbt.com/files/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               intltool
+               libcurl-devel
+               libevent-devel
+               openssl-devel
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index cd5a668f23e44dfae77f2803f891ff77caaa6e95..a57f1a387381457c110b5147efc16bb22e30c40c 100644 (file)
@@ -1,60 +1,43 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = tunctl
+version    = 1.5
+release    = 1
 
-PKG_NAME       = tunctl
-PKG_VER        = 1.5
-PKG_REL        = 0
+groups     = Networking/Tools
+url        = http://tunctl.sourceforge.net/
+license    = GPL+
+summary    = Create and remove virtual network interfaces.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://tunctl.sourceforge.net/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Create and remove virtual network interfaces.
-
-define PKG_DESCRIPTION
-       tunctl is a tool to set up and maintain persistent TUN/TAP network \
-       interfaces, enabling user applications access to the wire side of a \
-       virtual nework interface. Such interfaces is useful for connecting VPN \
-       software, virtualization, emulation and a number of other similar \
+description
+       tunctl is a tool to set up and maintain persistent TUN/TAP network
+       interfaces, enabling user applications access to the wire side of a
+       virtual nework interface. Such interfaces is useful for connecting VPN
+       software, virtualization, emulation and a number of other similar
        applications to the network stack.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  = http://sourceforge.net/projects/tunctl/files/tunctl/%{version}/%{sources}/download
 
 # XXX needs docbook for man page
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e "s/^CFLAGS.*/CFLAGS = $(CFLAGS)/" -i Makefile
-endef
+build
+       prepare_cmds
+               sed -e "s/^CFLAGS.*/CFLAGS = %{CFLAGS}/" -i Makefile
+       end
+
+       make_build_targets = tunctl CC=gcc
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make tunctl CC=gcc
-endef
+       install
+               mkdir -pv %{BUILDROOT}/usr/sbin
+               install -m 755 tunctl %{BUILDROOT}/usr/sbin
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       cd $(DIR_APP) && install -m 755 tunctl $(BUILDROOT)/usr/sbin
-endef
+packages
+       package %{name}
+       end
+end
index 272d1fede592864ef0f90b722bc766345fb251a4..d7176ff324f21834eefaf359c3365ca85aa5f7ea 100644 (file)
@@ -1,79 +1,80 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = udev
+version    = 172
+release    = 2
 
-PKG_NAME       = udev
-PKG_VER        = 172
-PKG_REL        = 2
+groups     = Base System/Base
+url        = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
+license    = GPLv2+
+summary    = A userspace implementation of devfs.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Base
-PKG_URL        = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = A userspace implementation of devfs.
-
-PKG_BUILD_DEPS+= glib2-devel gperf kbd libacl-devel libselinux-devel \
-       libsepol-devel libuuid-devel libusb-compat-devel pciutils pkg-config \
-       usbutils
-
-define PKG_DESCRIPTION
+description
        The udev package contains an implementation of devfs in userspace using \
        sysfs and netlink.
-endef
+end
+
+source_dl  = ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       requires
+               glib2-devel
+               gperf
+               kbd
+               libacl-devel
+               libselinux-devel
+               libsepol-devel
+               libuuid-devel
+               libusb-compat-devel
+               pciutils
+               pkg-config
+               usbutils
+       end
 
-PKG_PACKAGES  += libudev libudev-devel
+       configure_options += \
+               --exec-prefix="" \
+               --sbindir=/sbin \
+               --sysconfdir=/etc \
+               --libexecdir=/lib/udev \
+               --with-rootlibdir=/lib \
+               --with-selinux \
+               --disable-introspection \
+               --with-systemdsystemunitdir=/lib/systemd/system
 
-CONFIGURE_OPTIONS += \
-       --exec-prefix="" \
-       --sbindir=/sbin \
-       --sysconfdir=/etc \
-       --libexecdir=/lib/udev \
-       --with-rootlibdir=/lib \
-       --with-selinux \
-       --disable-introspection \
-       --with-systemdsystemunitdir=/lib/systemd/system
+       install_cmds
+               # Install rules
+               mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
+               install -m644 -v %{DIR_SOURCE}/rules/*.rules %{BUILDROOT}/lib/udev/rules.d/
 
-define STAGE_INSTALL_CMDS
-       # Install rules
-       -mkdir -pv $(BUILDROOT)/lib/udev/rules.d/
-       install -m644 -v $(DIR_SOURCE)/rules/*.rules $(BUILDROOT)/lib/udev/rules.d/
+               # Install pkg-config files correctly
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib
 
-       # Install pkg-config files correctly
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib
+               rm -vf %{BUILDROOT}/lib/lib{udev,gudev-1.0}.so
+               ln -svf ../../lib/libudev.so.0 %{BUILDROOT}/usr/lib/libudev.so
+               ln -svf ../../lib/libgudev-1.0.so.0 %{BUILDROOT}/usr/lib/libgudev-1.0.so
 
-       rm -vf $(BUILDROOT)/lib/lib{udev,gudev-1.0}.so
-       ln -svf ../../lib/libudev.so.0 $(BUILDROOT)/usr/lib/libudev.so
-       ln -svf ../../lib/libgudev-1.0.so.0 $(BUILDROOT)/usr/lib/libgudev-1.0.so
+               ln -svf ../../../../lib/udev/udev-acl \
+                       %{BUILDROOT}/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
 
-       ln -svf ../../../../lib/udev/udev-acl \
-               $(BUILDROOT)/usr/lib/ConsoleKit/run-seat.d/udev-acl.ck
+               install -m 755 %{DIR_SOURCE}/console_init %{BUILDROOT}/lib/udev/
 
-       install -m 755 $(DIR_SOURCE)/console_init $(BUILDROOT)/lib/udev/
+               # Remove network rules. We have our own in the network package.
+               rm -v %{BUILDROOT}/lib/udev/{write_net_rules,rules.d/75-persistent-net-generator.rules}
+       end
+end
 
-       # Remove network rules. We have our own in the network package.
-       rm -v $(BUILDROOT)/lib/udev/{write_net_rules,rules.d/75-persistent-net-generator.rules}
-endef
+packages
+       package %{name}
+       end
+       
+       package lib%{name}
+               template LIBS
+       end
+       
+       package lib%{name}-devel
+               template DEVEL
+       end
+end
index 5e9c3fd4506efd3051c3fab000e8cbf14ab8ad29..188edc50ec12f6d7f735db604df2d06ad085f941 100644 (file)
@@ -1,52 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = udisks
-PKG_VER        = 1.0.1
-PKG_REL        = 1
+name       = udisks
+version    = 1.0.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.freedesktop.org/wiki/Software/udisks
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Storage Management Service.
+groups     = System/Libraries
+url        = http://www.freedesktop.org/wiki/Software/udisks
+license    = GPLv2+
+summary    = Storage Management Service.
 
-PKG_BUILD_DEPS+= dbus-devel dbus-glib-devel e2fsprogs-devel glib2-devel \
-       intltool libatasmart-devel libdevmapper-devel libudev-devel \
-       parted-devel polkit-devel pkg-config sg3-utils-devel
-PKG_DEPS      += dosfstools e2fsprogs mdadm parted udev util-linux xfsprogs
-
-define PKG_DESCRIPTION
-       udisks provides a daemon, D-Bus API and command line tools \
+description
+       udisks provides a daemon, D-Bus API and command line tools
        for managing disks and storage devices.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libexecdir=/usr/lib \
-       --localstatedir=/var
+end
+
+source_dl  = http://hal.freedesktop.org/releases/
+
+build
+       requires
+               dbus-devel
+               dbus-glib-devel
+               e2fsprogs-devel
+               glib2-devel
+               intltool
+               libatasmart-devel
+               libdevmapper-devel
+               libudev-devel
+               parted-devel
+               polkit-devel
+               pkg-config
+               sg3-utils-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libexecdir=/usr/lib \
+               --localstatedir=/var
+end
+
+packages
+       package %{name}
+               requires
+                       dosfstools
+                       e2fsprogs
+                       mdadm
+                       parted
+                       udev
+                       util-linux
+                       xfsprogs
+               end
+       end
+end
index 9531f34e111831c2a79aecfa74e7e40188c6ec20..c383406d5895eafe59e85d995052e053045cd4d0 100644 (file)
@@ -1,58 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = ulogd
-PKG_VER        = 2.0.0beta3
-PKG_REL        = 2
+name       = ulogd
+version    = 2.0.0beta3
+release    = 2
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Statistics
-PKG_URL        = http://netfilter.org/projects/ulogd/index.html
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = The userspace logging daemon for netfilter.
+groups     = Networking/Statistics
+url        = http://netfilter.org/projects/ulogd/index.html
+license    = GPLv2
+summary    = The userspace logging daemon for netfilter.
 
-PKG_BUILD_DEPS+= libnfnetlink-devel libnetfilter_conntrack-devel \
-       libnetfilter_log-devel libpcap-devel pkg-config sqlite-devel
-
-define PKG_DESCRIPTION
-       This package contains utilities for configuring the linux ethernet \
-       bridge. The linux ethernet bridge can be used for connecting multiple \
-       ethernet devices together. The connecting is fully transparent: hosts \
-       connected to one ethernet device see hosts connected to the other \
+description
+       This package contains utilities for configuring the linux ethernet
+       bridge. The linux ethernet bridge can be used for connecting multiple
+       ethernet devices together. The connecting is fully transparent: hosts
+       connected to one ethernet device see hosts connected to the other
        ethernet devices directly.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += --sysconfdir=/etc
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/ulogd.conf $(BUILDROOT)/etc/ulogd.conf
-       
-       -mkdir -pv $(BUILDROOT)/var/log/ulogd
-       sqlite3 -echo $(BUILDROOT)/var/log/ulogd/ulogd.db < $(DIR_SOURCE)/sqlite3.table
-endef
+end
+
+source_dl += http://ftp.netfilter.org/pub/ulogd/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libnfnetlink-devel
+               libnetfilter_conntrack-devel
+               libnetfilter_log-devel
+               libpcap-devel
+               pkg-config
+               sqlite-devel
+       end
+
+       configure_options+= \
+               --sysconfdir=/etc
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/ulogd.conf %{BUILDROOT}/etc/ulogd.conf
+
+               mkdir -pv %{BUILDROOT}/var/log/ulogd
+               sqlite3 -echo %{BUILDROOT}/var/log/ulogd/ulogd.db < %{DIR_SOURCE}/sqlite3.table
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 34ed6ea461d776e4283cc1531cbef401b1e2fd10..faf915d8a84ba6252bf55934e2e2aba9f5d4112e 100644 (file)
@@ -1,67 +1,52 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = unzip
-PKG_VER        = 6.0
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Archiving
-PKG_URL        = ftp://ftp.info-zip.org/pub/infozip/src
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = A utility for unpacking zip files.
-
-define PKG_DESCRIPTION
-       The unzip utility is used to list, test, or extract files from a zip \
-       archive. Zip archives are commonly found on MS-DOS systems. The zip \
-       utility, included in the zip package, creates zip archives. Zip and \
-       unzip are both compatible with archives created by PKWARE(R)'s PKZIP \
-       for MS-DOS, but the programs' options and default behaviors do differ \
+name       = unzip
+version    = 6.0
+release    = 1
+
+groups     = Applications/Archiving
+url        = ftp://ftp.info-zip.org/pub/infozip/src/
+license    = BSD
+summary    = A utility for unpacking zip files.
+
+description
+       The unzip utility is used to list, test, or extract files from a zip
+       archive. Zip archives are commonly found on MS-DOS systems. The zip
+       utility, included in the zip package, creates zip archives. Zip and
+       unzip are both compatible with archives created by PKWARE(R)'s PKZIP
+       for MS-DOS, but the programs' options and default behaviors do differ
        in some respects.
-endef
+end
 
+thisapp    = %{name}60
 
-THISAPP    = $(PKG_NAME)60
-PKG_TARBALL= $(THISAPP).tgz
+source_dl += ftp://ftp.info-zip.org/pub/infozip/src/
+sources    = %{thisapp}.tgz
 
-CFLAGS   += -D_LARGEFILE64_SOURCE
+CFLAGS    += -D_LARGEFILE64_SOURCE
 
+build
+       DIR_APP = %{DIR_SRC}/%{thisapp}
 
-define STAGE_PREPARE
-       cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$(PKG_TARBALL)
+       prepare_cmds
+               ln -svf unix/Makefile Makefile
+       end
 
-       $(DO_PATCHES)
-endef
+       make_build_targets += \
+               generic \
+               CC="gcc %{CFLAGS}" \
+               LD=gcc
 
-define STAGE_BUILD
-       cd $(DIR_SRC)/$(THISAPP) && ln -svf unix/Makefile Makefile
-       cd $(DIR_SRC)/$(THISAPP) && make generic CC="gcc $(CFLAGS)" LD=gcc $(PARALLELISMFLAGS)
-endef
+       make_install_targetsi += \
+               prefix=%{BUILDROOT}/usr \
+               MANDIR=/usr/share/man/man1 \
+               INSTALL="cp -p"
+end
 
-define STAGE_INSTALL
-       cd $(DIR_SRC)/$(THISAPP) && make install prefix=$(BUILDROOT)/usr \
-               MANDIR=/usr/share/man/man1 INSTALL="cp -p"
-endef
+packages
+       package %{name}
+       end
+end
index b4fc020b6802039b0c6fe23fd37811b8a22185bf..a3fdc088de0202ba419ec2993e566f4700ed510d 100644 (file)
@@ -1,53 +1,52 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = upower
-PKG_VER        = 0.9.2
-PKG_REL        = 0
+name       = upower
+version    = 0.9.2
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://hal.freedesktop.org/releases/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Power Management Service.
+groups     = System/Libraries
+url        = http://upower.freedesktop.org/
+license    = GPLv2+
+summary    = Power Management Service.
 
-PKG_BUILD_DEPS+= bison dbus-devel dbus-glib-devel glib2-devel gettext intltool \
-       perl-XML-Parser pkg-config polkit-devel
-PKG_DEPS      += udev util-linux
-
-define PKG_DESCRIPTION
-       udisks provides a daemon, D-Bus API and command line tools \
+description
+       udisks provides a daemon, D-Bus API and command line tools
        for managing disks and storage devices.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --libexecdir=/usr/lib \
-       --localstatedir=/var
+end
+
+source_dl  = http://upower.freedesktop.org/releases/
+
+build
+       requires
+               bison
+               dbus-devel
+               dbus-glib-devel
+               glib2-devel
+               gettext intltool
+               perl-XML-Parser
+               pkg-config
+               polkit-devel
+       end
+
+       configure_options += \
+               --sysconfdir=/etc \
+               --libexecdir=/usr/lib \
+               --localstatedir=/var
+end
+
+packages
+       package %{name}
+               requires = udev util-linux
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 1c40fdd1a9124640ff88d32ae6929d378b7630ac..7b50d3a319b91869b6261c5c4026b090396bd54b 100644 (file)
@@ -1,44 +1,31 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = usb-modeswitch
-PKG_VER        = 1.1.9
-PKG_REL        = 0
+name       = usb-modeswitch
+version    = 1.1.9
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://www.draisberghof.de/usb_modeswitch
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = A USB mode switching tool.
+groups     = Applications/System
+url        = http://www.draisberghof.de/usb_modeswitch
+license    = GPLv2
+summary    = A USB mode switching tool.
 
-PKG_BUILD_DEPS+= libusb-compat-devel
-
-define PKG_DESCRIPTION
+description
        USB_ModeSwitch is (surprise!) a mode switching tool for controlling
        "flip flop" (multiple device) USB gear.
-endef
+end
+
+source_dl  = http://www.draisberghof.de/usb_modeswitch/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               libusb-compat-devel
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+packages
+       package %{name}
+end
index 60d059651bae591341821e181fa724d881c0e8db..7319cae5dde487ca7bc32d3aec964adc48f95f02 100644 (file)
@@ -1,51 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = usbutils
+epoch      = 1
+version    = 003
+release    = 1
 
-PKG_NAME       = usbutils
-PKG_EPOCH      = 1
-PKG_VER        = 003
-PKG_REL        = 1
+groups     = System/Tools
+url        = http://www.linux-usb.org/
+license    = GPLv2
+summary    = Tool to provide and enhance USB support in Linux.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Tools
-PKG_URL        = http://www.linux-usb.org/
-PKG_LICENSE    = GPLv2
-PKG_SUMMARY    = Tool to provide and enhance USB support in Linux.
+description
+       A set of tools to configure list USB Devices.
+end
 
-PKG_BUILD_DEPS+= libusb-devel pkg-config zlib-devel
+source_dl  = http://www.kernel.org/pub/linux/utils/usb/usbutils/
 
-define PKG_DESCRIPTION
-       A set of tools to configure list USB Devices.
-endef
+build
+       requires
+               libusb-devel
+               pkg-config
+               zlib-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       install_cmds
+               rm -fv %{BUILDROOT}/usr/share/usb.ids.gz
 
-define STAGE_INSTALL_CMDS
-       rm -fv $(BUILDROOT)/usr/share/usb.ids.gz
+               # Removing lsusb.py.
+               rm -rfv %{BUILDROOT}/usr/bin/lsusb.py
+       end
+end
 
-       # Removing lsusb.py.
-       rm -rfv $(BUILDROOT)/usr/bin/lsusb.py
-endef
+packages
+       package %{name}
+       end
+end
index 9b944d3432b1381226d4654c9e1d504155415635..bbf76ca2ebe762b108846c9ec37ba1711643753d 100644 (file)
@@ -1,68 +1,53 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = ustr
-PKG_VER        = 1.0.4
-PKG_REL        = 0
+name       = ustr
+version    = 1.0.4
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.and.org/ustr/
-PKG_LICENSE    = MIT or LGPLv2+ or BSD
-PKG_SUMMARY    = String library, very low memory overhead, simple to import.
+groups     = System/Libraries
+url        = http://www.and.org/ustr/
+license    = MIT or LGPLv2+ or BSD
+summary    = String library, very low memory overhead, simple to import.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        Micro string library, with very low overhead.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-define PKG_FILES-$(PKG_NAME_REAL)-devel
-       /usr/bin
-       /usr/include
-       /usr/lib/pkgconfig
-       */lib/*.so
-endef
-
-
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make all-shared CFLAGS="$(CFLAGS)" $(PARALELLISMFLAGS)
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
-
-define STAGE_INSTALL_CMDS
-       rm -rf $(BUILDROOT)/usr/share
-       rm -rf $(BUILDROOT)/usr/lib/pkgconfig/*debug*
-       rm -rf $(BUILDROOT)/lib/*debug*
-       rm -rf $(BUILDROOT)/usr/lib/*debug*
-endef
+end
+
+source_dl  = http://www.and.org/ustr/%{version}/
+sources    = %{thisapp}.tar.bz2
+
+build
+       make_build_targets += \
+               all-shared \
+               CFLAGS="%{CFLAGS}"
+
+       test
+               make check
+       end
+
+       install_cmds
+               rm -rf %{BUILDROOT}/usr/share
+               rm -rf %{BUILDROOT}/usr/lib/pkgconfig/*debug*
+               rm -rf %{BUILDROOT}/lib/*debug*
+               rm -rf %{BUILDROOT}/usr/lib/*debug*
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
        
+               files
+                       /usr/bin/
+                       /usr/include/
+                       /usr/lib/pkgconfig/
+                       */lib/*.so
+               end
+       end
+end
index 458a3ff4b890924069dd5d56b7253ea7939fb5d9..f15a6fe0c4ea8ff1a9cc6378e06d69ea16c0dcae 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = util-linux
-PKG_VER        = 2.19
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_GROUPS-$(PKG_NAME) = Base $(PKG_GROUPS)
-PKG_URL        = http://kernel.org/~kzak/util-linux/
-PKG_LICENSE    = GPLv2 and GPLv2+ and BSD with advertising and Public Domain
-PKG_SUMMARY    = A collection of basic system utilities.
-
-PKG_BUILD_DEPS+= audit-devel gettext libcap-devel libselinux-devel \
-       libsepol-devel ncurses-devel pam-devel zlib-devel
-PKG_DEPS      += /etc/pam.d/system-auth
-
-define PKG_DESCRIPTION
-       The util-linux package contains a large variety of low-level system \
-       utilities that are necessary for a Linux system to function. Among \
-       others, Util-linux contains the fdisk configuration tool and the login \
+name       = util-linux
+version    = 2.19
+major_ver  = 2.19
+release    = 2
+
+groups     = System/Base
+#groups-%{name} = Base %{groups}
+url        = http://kernel.org/~kzak/util-linux/
+license    = GPLv2 and GPLv2+ and BSD with advertising and Public Domain
+summary    = A collection of basic system utilities.
+
+description
+       The util-linux package contains a large variety of low-level system
+       utilities that are necessary for a Linux system to function. Among
+       others, Util-linux contains the fdisk configuration tool and the login
        program.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += libblkid libblkid-devel libuuid libuuid-devel \
-       libmount libmount-devel
+end
+
+source_dl  = ftp://ftp.kernel.org/pub/linux/utils/util-linux/v%{major_ver}/
+
+build
+       requires
+               audit-devel
+               gettext
+               libcap-devel
+               libselinux-devel
+               libsepol-devel
+               ncurses-devel
+               pam-devel
+               zlib-devel
+       end
+
+       CFLAGS += \
+               -D_LARGEFILE_SOURCE \
+               -D_LARGEFILE64_SOURCE \
+               -D_FILE_OFFSET_BITS=64
+
+       configure_options += \
+               --bindir=/bin \
+               --sbindir=/sbin \
+               --disable-wall \
+               --enable-arch \
+               --enable-kill \
+               --enable-login-utils \
+               --enable-partx \
+               --enable-write \
+               --enable-libmount-mount \
+               --with-selinux \
+               --with-audit \
+               --disable-makeinstall-chown \
+               --disable-static
+
+       prepare_cmds
+               sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
+                       -i $(grep -rl '/etc/adjtime' .)
+       end
+
+       # Build nolodin
+       build_cmds
+               gcc %{CFLAGS} -o nologin %{DIR_SOURCE}/nologin.c
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/sbin \
+                       %{BUILDROOT}/var/lib/hwclock \
+                       %{BUILDROOT}/usr/share/man/man8 \
+                       %{BUILDROOT}/var/log
+
+               install -m 755 %{DIR_APP}/nologin %{BUILDROOT}/sbin
+               install -m 644 %{DIR_SOURCE}/nologin.8 %{BUILDROOT}/usr/share/man/man8/
+
+               touch %{BUILDROOT}/var/log/lastlog
+
+               # Remove deprecated commands
+               rm -fv %{BUILDROOT}/{sbin,usr/share/man/man*}/{fsck,mkfs}.{bfs,minix}* \
+                       %{BUILDROOT}/usr/bin/chkdupexe %{BUILDROOT}/usr/bin/vi{gr,pw} \
+                       %{BUILDROOT}/sbin/{sln,shutdown} %{BUILDROOT}/bin/{line,newgrp,pg}
+               rm -fv %{BUILDROOT}/usr/share/getopt/*.tcsh
+
+               # Create /etc/mtab symlink
+               mkdir -pv %{BUILDROOT}/etc
+               ln -svf /proc/mounts %{BUILDROOT}/etc/mtab
+       end
+
+       export PKG_REQUIRES_FILTER = /proc/.*/mounts
+end
 
 # This symlink is allowed to be absolute.
-QUALITY_AGENT_WHITELIST_SYMLINK = /etc/mtab
-PKG_REQUIRES_FILTER = /proc/.*/mounts
-
-# Package information for libblkid
-PKG_SUMMARY-libblkid =  Block device ID library.
-PKG_DESCRIPTION-libblkid = This is the block device identification library, \
-       part of util-linux.
-
-define PKG_FILES-libblkid
-       /lib/libblkid.*
-endef
-
-# Package information for libblkid-devel
-PKG_SUMMARY-libblkid-devel =  Development library and header of libblkid.
-PKG_DESCRIPTION-libblkid-devel = $(PKG_SUMMARY-libblkid-devel)
-
-define PKG_FILES-libblkid-devel
-       /usr/include/blkid/ \
-       /usr/lib/libblkid.* \
-       /usr/lib/pkgconfig/blkid.pc \
-       /usr/share/man/man3/*blkid* 
-endef
-
-# Package information for libuuid
-PKG_SUMMARY-libuuid =  Universally unique ID library.
-PKG_DESCRIPTION-libuuid = This is the universally unique ID library, \
-       part of util-linux.
-
-define PKG_FILES-libuuid
-       /lib/libuuid.*
-endef
-
-# Package information for libuuid-devel
-PKG_SUMMARY-libuuid-devel =  Development library and header of libuuid.
-PKG_DESCRIPTION-libuuid-devel = $(PKG_SUMMARY-libuuid-devel)
-
-define PKG_FILES-libuuid-devel
-       /usr/include/uuid/ \
-       /usr/lib/libuuid.* \
-       /usr/lib/pkgconfig/uuid.pc \
-       /usr/share/man/man3/*uuid*
-endef
-
-# Package information for libmount
-PKG_SUMMARY-libmount =  Device mounting library.
-PKG_DESCRIPTION-libmount = This is the device mounting library, \
-       part of util-linux.
-
-define PKG_FILES-libmount
-       /lib/libmount.*
-endef
-
-# Package information for libmount-devel
-PKG_SUMMARY-libmount-devel =  Development library and header of libmount.
-PKG_DESCRIPTION-libmount-devel = $(PKG_SUMMARY-libmount-devel)
-
-define PKG_FILES-libmount-devel
-       /usr/include/mount/ \
-       /usr/lib/libmount.* \
-       /usr/lib/pkgconfig/mount.pc \
-       /usr/share/man/man3/*mount*
-endef
-
-
-CFLAGS        += -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-
-CONFIGURE_OPTIONS += \
-       --bindir=/bin \
-       --sbindir=/sbin \
-       --disable-wall \
-       --enable-arch \
-       --enable-kill \
-       --enable-login-utils \
-       --enable-partx \
-       --enable-write \
-       --enable-libmount-mount \
-       --with-selinux \
-       --with-audit \
-       --disable-makeinstall-chown \
-       --disable-static
+quality-agent
+       whitelist_symlink
+               /etc/mtab
+       end
+end
+
+packages
+       package %{name}
+               requires = /etc/pam.d/system-auth
+       end
        
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && sed -e 's@etc/adjtime@var/lib/hwclock/adjtime@g' \
-               -i $$(grep -rl '/etc/adjtime' .)
-endef
-
-define STAGE_BUILD_CMDS
-       # Build nologin
-       cd $(DIR_APP) && gcc $(CFLAGS) -o nologin $(DIR_SOURCE)/nologin.c
-endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/sbin \
-               $(BUILDROOT)/var/lib/hwclock \
-               $(BUILDROOT)/usr/share/man/man8 \
-               $(BUILDROOT)/var/log
-
-       install -m 755 $(DIR_APP)/nologin $(BUILDROOT)/sbin
-       install -m 644 $(DIR_SOURCE)/nologin.8 $(BUILDROOT)/usr/share/man/man8/
-
-       touch $(BUILDROOT)/var/log/lastlog
-
-       # Remove deprecated commands
-       rm -fv $(BUILDROOT)/{sbin,usr/share/man/man*}/{fsck,mkfs}.{bfs,minix}* \
-               $(BUILDROOT)/usr/bin/chkdupexe $(BUILDROOT)/usr/bin/vi{gr,pw} \
-               $(BUILDROOT)/sbin/{sln,shutdown} $(BUILDROOT)/bin/{line,newgrp,pg}
-       rm -fv $(BUILDROOT)/usr/share/getopt/*.tcsh
-
-       # Create /etc/mtab symlink
-       -mkdir -pv $(BUILDROOT)/etc
-       ln -svf /proc/mounts $(BUILDROOT)/etc/mtab
-endef
-
-define STAGE_INSTALL_POST
-       # Set capabilities
-       chmod -v -s $(BUILDROOT)/bin/mount
-       setcap CAP_DAC_OVERRIDE,CAP_SYS_ADMIN=ep $(BUILDROOT)/bin/mount
-       chmod -v -s $(BUILDROOT)/bin/umount
-       setcap CAP_DAC_OVERRIDE,CAP_SYS_ADMIN=ep $(BUILDROOT)/bin/umount
-endef
+       # Package information for libblkid
+       package libblkid
+               summary =  Block device ID library.
+               description
+                       This is the block device identification library,
+                       part of util-linux.
+               end
+       
+               files
+                       /lib/libblkid.*
+               end
+       end
+       
+       # Package information for libblkid-devel
+       package libblikid-devel
+               summary =  Development library and header of libblkid.
+               description = %{summary}
+       
+               files
+                       /usr/include/blkid/
+                       /usr/lib/libblkid.*
+                       /usr/lib/pkgconfig/blkid.pc
+                       /usr/share/man/man3/*blkid*
+               end
+       end
+       
+       # Package information for libuuid
+       package libuuid
+               summary =  Universally unique ID library.
+               description
+                       This is the universally unique ID library,
+                       part of util-linux.
+               end
+       
+               files
+                       /lib/libuuid.*
+               end
+       end
+       
+       # Package information for libuuid-devel
+       package libuuid-devel
+               summary =  Development library and header of libuuid.
+               description = %{summary}
+       
+               files
+                       /usr/include/uuid/
+                       /usr/lib/libuuid.*
+                       /usr/lib/pkgconfig/uuid.pc
+                       /usr/share/man/man3/*uuid*
+               end
+       end
+       
+       # Package information for libmount
+       package libmount
+               summary =  Device mounting library.
+               description
+                       This is the device mounting library,
+                       part of util-linux.
+               end
+       
+               files
+                       /lib/libmount.*
+               end
+       end
+       
+       # Package information for libmount-devel
+       package libmount-devel
+               summary =  Development library and header of libmount.
+               description = %{summary}
+       
+               files
+                       /usr/include/mount/
+                       /usr/lib/libmount.*
+                       /usr/lib/pkgconfig/mount.pc
+                       /usr/share/man/man3/*mount*
+               end
+       end
+end
index f75c4f44ff04e582d2e747dd38ae593b32f9287c..84b2f028e9c57ba81c8bdc95396b44269c3d878f 100644 (file)
@@ -1,55 +1,49 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = vala
-PKG_VER        = 0.11.2
-PKG_REL        = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://live.gnome.org/Vala 
-PKG_LICENSE    = LGPLv2+ and BSD 
-PKG_SUMMARY    = A modern programming language.
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-PKG_BUILD_DEPS+= bison dbus dbus-glib-devel flex pkg-config
-PKG_DEPS      += glib2
-
-define PKG_DESCRIPTION
-       Vala is a new programming language that aims to bring modern \
-       programming language features to GNOME developers without imposing \
-       any additional runtime requirements and without using a different \
-       ABI compared to applications and libraries written in C. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-# Disabled as it does total rubbish.
-#define STAGE_TEST
-#      cd $(DIR_APP) && make check
-#endef
-
+name       = vala
+version    = 0.11.2
+major_ver  = 0.11
+release    = 1
+
+groups     = Development/Languages
+url        = http://live.gnome.org/Vala
+license    = LGPLv2+ and BSD
+summary    = A modern programming language.
+
+description
+       Vala is a new programming language that aims to bring modern
+       programming language features to GNOME developers without imposing
+       any additional runtime requirements and without using a different
+       ABI compared to applications and libraries written in C.
+end
+
+source_dl  = http://download.gnome.org/sources/vala/%{major_ver}/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               bison
+               dbus
+               dbus-glib-devel
+               flex
+               pkg-config
+       end
+
+       # Disabled as it does total rubbish.
+       #def test
+       #       make check
+       #end
+end
+
+packages
+       package %{name}
+               requires = glib2
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 598b6a4421e65551469029c607b796ba4c49debe..20ba02658feec4cd91060b0e624625201b06d3a2 100644 (file)
@@ -1,66 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = vim
-PKG_VER        = 7.3
-PKG_REL        = 1
+name       = vim
+version    = 7.3
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/Editors
-PKG_URL        = http://www.vim.org
-PKG_LICENSE    = PublicDomain/Charityware
-PKG_SUMMARY    = Very feature- and powerful editor.
+groups     = Base Applications/Editors
+url        = http://www.vim.org
+license    = PublicDomain/Charityware
+summary    = Very feature- and powerful editor.
 
-PKG_BUILD_DEPS+= libacl-devel libselinux-devel ncurses-devel
-
-define PKG_DESCRIPTION
+description
        Vim is a highly configurable text editor built to enable efficient \
        text editing. It is an improved version of the vi editor \
-       distributed with most UNIX systems. 
-endef
+       distributed with most UNIX systems.
+end
+
+source_dl  = ftp://ftp.vim.org/pub/vim/unix/
+sources    = %{thisapp}.tar.bz2
+
+DIR_APP        = %{DIR_SRC}/%{name}73
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               libacl-devel
+               libselinux-devel
+               ncurses-devel
+       end
 
-DIR_APP        = $(DIR_SRC)/$(PKG_NAME)73
+       configure_options += \
+               --enable-multibyte \
+               --enable-selinux
 
-CONFIGURE_OPTIONS += \
-       --enable-multibyte \
-       --enable-selinux
+       configure_cmds
+               echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
+       end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h
-endef
+       install_cmds
+               ln -sfv vim %{BUILDROOT}/usr/bin/vi
 
-define STAGE_INSTALL_CMDS
-       ln -sfv vim $(BUILDROOT)/usr/bin/vi
+               # Install configuration
+               mkdir -pv %{BUILDROOT}/etc
+               cp -vf %{DIR_SOURCE}/vimrc %{BUILDROOT}/etc/vimrc
 
-       # Install configuration
-       -mkdir -pv $(BUILDROOT)/etc
-       cp -vf $(DIR_SOURCE)/vimrc $(BUILDROOT)/etc/vimrc
+               # Remove script for c-shell
+               rm -rf %{BUILDROOT}/usr/share/vim/vim73/tools/vim132
+       end
+end
 
-       # Remove script for c-shell
-       rm -rf $(BUILDROOT)/usr/share/vim/vim73/tools/vim132
-endef
+packages
+       package %{name}
+       end
+end
index f867632f4406524b8820ba46a18293fc8d1f033a..18f4d7cab7e6ede06159fb4f484b7e983d21806d 100644 (file)
@@ -1,52 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = vlan
+version    = 1.9
+release    = 1
 
-include $(PKGROOT)/Include
+groups     = Networking/Tools
+url        = http://www.candelatech.com/~greear/vlan.html
+license    = GPLv2+
+summary    = Linux 802.1q VLAN configuration utility.
 
-PKG_NAME       = vlan
-PKG_VER        = 1.9
-PKG_REL        = 0
+description
+       The vconfig program configures and adjusts 802.1q VLAN parameters.
+end
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Tools
-PKG_URL        = http://www.candelatech.com/~greear/vlan.html
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Linux 802.1q VLAN configuration utility.
+source_dl  = http://www.candelatech.com/~greear/vlan/
 
-define PKG_DESCRIPTION
-       The vconfig program configures and adjusts 802.1q VLAN parameters.
-endef
+DIR_APP    = %{DIR_SRC}/%{name}
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+build
+       # Parallelism cannot be used here.
+       PARALLELISMFLAGS = -j1
 
-DIR_APP        = $(DIR_SRC)/$(PKG_NAME)
+       make_build_targets += \
+               purge \
+               vconfig \
+               CCFLAGS="%{CFLAGS}"
 
-define STAGE_BUILD
-       cd $(DIR_APP) && make purge vconfig CCFLAGS="$(CFLAGS)"
-endef
+       install
+               mkdir -pv %{BUILDROOT}/sbin
+               install -c -p -m 0755 vconfig %{BUILDROOT}/sbin
+       end
+end
 
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/sbin
-       cd $(DIR_APP) && install -c -p -m 0755 vconfig $(BUILDROOT)/sbin
-endef
+packages
+       package %{name}
+       end
+end
index c93c8367f38ee6dad1cee2daaa5b8ff0f76bd5a1..f34c677dacac99d68a9306ef992d37d1a63e7fdd 100644 (file)
@@ -1,66 +1,56 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = vsftpd
-PKG_VER        = 2.3.4
-PKG_REL        = 3
+name       = vsftpd
+version    = 2.3.4
+release    = 3
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = ftp://vsftpd.beasts.org/users/cevans/
-PKG_LICENSE    = GPLv2 with exceptions
-PKG_SUMMARY    = Very Secure Ftp Daemon.
+groups     = Networking/Daemons
+url        = https://security.appspot.com/vsftpd.html
+license    = GPLv2 with exceptions
+summary    = Very Secure Ftp Daemon.
 
-PKG_BUILD_DEPS+= libcap-devel openssl-devel pam-devel
-
-define PKG_DESCRIPTION
-       vsftpd is a Very Secure FTP daemon. It was written completely \
+description
+       vsftpd is a Very Secure FTP daemon. It was written completely
        from scratch.
-endef
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+source_dl  = https://security.appspot.com/downloads/
 
 CFLAGS += -Wall -W -Wshadow -fstack-protector -fpie -Wextra -Werror
 
-define STAGE_PREPARE_CMDS
-       # Fix an issue with DSO
-       cd $(DIR_APP) && sed -e "s/-lssl/& -lcrypto/" -i Makefile
-endef
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make CFLAGS='$(CFLAGS)' $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/bin
-       cd $(DIR_APP) && install -v -m 755 vsftpd $(BUILDROOT)/usr/bin
-       -mkdir -pv $(BUILDROOT)/usr/share/man/man8
-       cd $(DIR_APP) && install -v -m 644 vsftpd.8 $(BUILDROOT)/usr/share/man/man8
-       -mkdir -pv $(BUILDROOT)/usr/share/man/man5
-       cd $(DIR_APP) && install -v -m 644 vsftpd.conf.5 $(BUILDROOT)/usr/share/man/man5
-       -mkdir -pv $(BUILDROOT)/etc/$(PKG_NAME)
-       cp -vf $(DIR_SOURCE)/$(PKG_NAME).{conf,user_list} $(BUILDROOT)/etc/$(PKG_NAME)
-endef
+build
+       requires
+               libcap-devel
+               openssl-devel
+               pam-devel
+       end
+
+       prepare_cmds
+               # Fix an issue with DSO
+               sed -e "s/-lssl/& -lcrypto/" -i Makefile
+       end
+
+       make_build_targets = CFLAGS='%{CFLAGS}'
+
+       install
+               # Create directory layout.
+               mkdir -pv %{BUILDROOT}/usr/bin
+               mkdir -pv %{BUILDROOT}/etc/%{name}
+               mkdir -pv %{BUILDROOT}/usr/share/man/man5
+               mkdir -pv %{BUILDROOT}/usr/share/man/man8
+
+               # Install files.
+               install -v -m 755 vsftpd %{BUILDROOT}/usr/bin
+               install -v -m 644 vsftpd.conf.5 %{BUILDROOT}/usr/share/man/man5
+               install -v -m 644 vsftpd.8 %{BUILDROOT}/usr/share/man/man8
+               cp -vf %{DIR_SOURCE}/%{name}.{conf,user_list} %{BUILDROOT}/etc/%{name}
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index b1ed74205888024061e3bc3abe8b72b02fa57f44..e86f903b5dd894b0872d9d78cffa3e46e32d3404 100644 (file)
@@ -1,51 +1,39 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = wavemon
-PKG_VER        = 0.7.2
-PKG_REL        = 1
+name       = wavemon
+version    = 0.7.2
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Internet
-PKG_URL        = http://eden-feed.erg.abdn.ac.uk/wavemon/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = Ncurses-based monitoring application for wireless network devices.
+groups     = Applications/Internet
+url        = http://eden-feed.erg.abdn.ac.uk/wavemon/
+license    = GPLv2+
+summary    = Ncurses-based monitoring application for wireless network devices.
 
-PKG_BUILD_DEPS+= ncurses-devel
-PKG_DEPS      += wireless-tools
-
-define PKG_DESCRIPTION
+description
        wavemon is a wireless device monitoring application that allows you to
        watch all important information like device configuration, encryption,
        and power management parameters and network information at once.
        Adaptive level bargraphs for link quality, signal/noise strength and
-       signal-to-noise ratio.  The customizeable "level alarm" feature that 
+       signal-to-noise ratio.  The customizeable "level alarm" feature that
        notices the user of changes in signal level strength audibly and/or
        visually. wavemon is able to list of access points in range and shows
        full-screen level histogram displaying signal/noise levels and SNR.
-endef
+end
+
+source_dl  = http://eden-feed.erg.abdn.ac.uk/wavemon/stable-releases/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               ncurses-devel
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+packages
+       package %{name}
+               requires = wireless-tools
+       end
+end
index 6683771679da586b4348e4f35541201a45339c84..29d21c90696e1b518f16131fc82ae65d80678745 100644 (file)
@@ -1,50 +1,41 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2011  IPFire Team  <info@ipfire.org>                     #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = wget
+version    = 1.12
+release    = 1
 
-PKG_NAME       = wget
-PKG_VER        = 1.12
-PKG_REL        = 1
+groups     = Applications/Internet
+url        = http://www.gnu.org/software/wget/
+license    = GPLv3+
+summary    = Commandline tool to download files.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Internet
-PKG_URL        = http://www.gnu.org/software/wget/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = Commandline tool to download files.
-
-define PKG_DESCRIPTION
-       GNU Wget is a free software package for retrieving files using \
-       HTTP, HTTPS and FTP, the most widely-used Internet protocols. \
-       It is a non-interactive commandline tool, so it may easily be \
-       called from scripts, cron jobs, terminals without X-Windows \
+description
+       GNU Wget is a free software package for retrieving files using
+       HTTP, HTTPS and FTP, the most widely-used Internet protocols.
+       It is a non-interactive commandline tool, so it may easily be
+       called from scripts, cron jobs, terminals without X-Windows
        support, etc.
-endef
+end
 
 PKG_BUILD_DEPS+= libidn-devel openssl-devel
 
-PKG_TARBALL    = $(THISAPP).tar.lzma
+source_dl  = http://ftp.gnu.org/gnu/wget/
+sources    = %{thisapp}.tar.lzma
+
+build
+       requires
+               libidn-devel
+               openssl-devel
+       end
 
-CONFIGURE_OPTIONS+= \
+       configure_options+= \
                --sysconfdir=/etc
+end
+
+packages
+       package %{name}
+       end
+end
index 3565d38444a7240f0f19c0fa83df31eef80fd72f..aab6f00678f43bbdbcfa9843a67e122deecfd655 100644 (file)
@@ -1,42 +1,24 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = which
+version    = 2.20
+release    = 1
 
-PKG_NAME       = which
-PKG_VER        = 2.20
-PKG_REL        = 0
+groups     = Base Build Applications/System
+url        = http://www.xs4all.nl/~carlo17/which/
+license    = GPLv3
+summary    = Displays where a particular program in your path is located.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Applications/System
-PKG_URL        = http://www.xs4all.nl/~carlo17/which/
-PKG_LICENSE    = GPLv3
-PKG_SUMMARY    = Displays where a particular program in your path is located.
-
-define PKG_DESCRIPTION
-       The which command shows the full pathname of a specified program, if \
+description
+       The which command shows the full pathname of a specified program, if
        the specified program is in your PATH.
-endef
+end
+
+source_dl  = http://carlo17.home.xs4all.nl/which/
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+end
index 11987e80024504c0b0293daf37190ed9c06b9b82..9f6d78dc0fd43afef13827363acee4b340159c67 100644 (file)
@@ -1,48 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = wireless-regdb
-PKG_VER        = 2011.04.28
-PKG_REL        = 2
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
-PKG_GROUPS     = Network/Wireless
-PKG_URL        = http://wireless.kernel.org/en/developers/Regulatory/
-PKG_LICENSE    = ISC
-PKG_SUMMARY    = Linux wireless regulatory database.
-
-PKG_BUILD_DEPS+= python python-m2crypto
-
-define PKG_DESCRIPTION
-       This package contains the wireless regulatory database used by all \
-       cfg80211 based Linux wireless drivers. The wireless database being \
-       used is maintained by John Linville, the Linux wireless kernel maintainer \
+name       = wireless-regdb
+version    = 2011.04.28
+release    = 2
+arch       = noarch
+
+maintainer = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
+groups     = Network/Wireless
+url        = http://wireless.kernel.org/en/developers/Regulatory/
+license    = ISC
+summary    = Linux wireless regulatory database.
+
+description
+       This package contains the wireless regulatory database used by all
+       cfg80211 based Linux wireless drivers. The wireless database being
+       used is maintained by John Linville, the Linux wireless kernel maintainer
        http://wireless.kernel.org/en/develop.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
+end
+
+source_dl  = http://wireless.kernel.org/download/wireless-regdb/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               python
+               python-m2crypto
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 5337add4d5b76c5f2e9d2ff768b9371c5602f0f9..c7faadaa52ee6bd73bff963be06d21f7b9bbece6 100644 (file)
@@ -1,63 +1,52 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = wireless_tools
+version    = 29
+release    = 1
 
-PKG_NAME       = wireless_tools
-PKG_VER        = 29
-PKG_REL        = 0
+groups     = Networking/Wireless
+url        = http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
+license    = GPL+
+summary    = Wireless ethernet configuration tools.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Wireless
-PKG_URL        = http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Wireless ethernet configuration tools.
-
-define PKG_DESCRIPTION
-       This package contain the Wireless tools, used to manipulate \
-       the Wireless Extensions. The Wireless Extension is an interface \
-       allowing you to set Wireless LAN specific parameters and get the \
+description
+       This package contain the Wireless tools, used to manipulate
+       the Wireless Extensions. The Wireless Extension is an interface
+       allowing you to set Wireless LAN specific parameters and get the
        specific stats for wireless networking equipment.
-endef
-
-THISAPP        = $(PKG_NAME).$(PKG_VER)
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) BUILD_SHARED=1 \
-               FORCE_WEXT_VERSION=16 OPT_FLAGS="$(CFLAGS)"
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install PREFIX=$(BUILDROOT)/usr \
-               INSTALL_DIR=$(BUILDROOT)/sbin INSTALL_LIB=$(BUILDROOT)/lib \
-               INSTALL_MAN=$(BUILDROOT)/usr/share/man
-
-       rm -vf $(BUILDROOT)/lib/libiw.{a,so}
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libiw.so.$(PKG_VER) $(BUILDROOT)/usr/lib/libiw.so
-endef
+end
+
+thisapp    = %{name}.%{version}
+
+source_dl  = http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/
+
+build
+       make_build_targets += \
+               BUILD_SHARED=1 \
+               FORCE_WEXT_VERSION=16 \
+               OPT_FLAGS="%{CFLAGS}"
+
+       make_install_targets += \
+               PREFIX=%{BUILDROOT}/usr \
+               INSTALL_DIR=%{BUILDROOT}/sbin \
+               INSTALL_LIB=%{BUILDROOT}/lib \
+               INSTALL_MAN=%{BUILDROOT}/usr/share/man
+
+       install_cmds
+               rm -vf %{BUILDROOT}/lib/libiw.{a,so}
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libiw.so.%{version} %{BUILDROOT}/usr/lib/libiw.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 44735842c0b4f4dfd5e896bcd16f17aa78da6274..05730fd2cbc6c3a538642f86d6b9fe62ea01aa67 100644 (file)
@@ -1,72 +1,57 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = wpa_supplicant
+version    = 0.7.3
+release    = 1
 
-PKG_NAME       = wpa_supplicant
-PKG_VER        = 0.7.3
-PKG_REL        = 0
+groups     = Sytem/Base
+url        = http://hostap.epitest.fi/releases/
+license    = BSD
+summary    = WPA/WPA2/IEEE 802.1X Supplicant.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Sytem/Base
-PKG_URL        = http://hostap.epitest.fi/releases/
-PKG_LICENSE    = BSD
-PKG_SUMMARY    = WPA/WPA2/IEEE 802.1X Supplicant.
-
-PKG_BUILD_DEPS+= dbus-devel openssl-devel pkg-config
-
-define PKG_DESCRIPTION
-       wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support \
-       for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA \
-       component that is used in the client stations. It implements key negotiation \
-       with a WPA Authenticator and it controls the roaming and IEEE 802.11 \
+description
+       wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support
+       for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA
+       component that is used in the client stations. It implements key negotiation
+       with a WPA Authenticator and it controls the roaming and IEEE 802.11
        authentication/association of the wlan driver.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       # Copy our config file for build
-       cp $(DIR_SOURCE)/wpa_supplicant.config $(DIR_APP)/wpa_supplicant/.config
-
-       # Build wpa_supplicant
-       cd $(DIR_APP)/wpa_supplicant && make $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/etc/logrotate.d
-       -mkdir -pv $(BUILDROOT)/etc/wpa_supplicant
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-
-       # Install config file
-       install -D -m 0600 $(DIR_SOURCE)/wpa_supplicant.conf $(BUILDROOT)/etc/wpa_supplicant
-
-       # Install binaries
-       install -m 0755 $(DIR_APP)/wpa_supplicant/wpa_passphrase $(BUILDROOT)/usr/sbin
-       install -m 0755 $(DIR_APP)/wpa_supplicant/wpa_cli $(BUILDROOT)/usr/sbin
-       install -m 0755 $(DIR_APP)/wpa_supplicant/wpa_supplicant $(BUILDROOT)/usr/sbin
-
-       # Install logrotate file
-       install -D -m 0644 $(DIR_SOURCE)/wpa_supplicant.logrotate $(BUILDROOT)/etc/logrotate.d/wpa_supplicant
-endef
+end
+
+source_dl  = http://hostap.epitest.fi/releases/
+
+build
+       requires
+               dbus-devel
+               openssl-devel
+               pkg-config
+       end
+
+       build
+               # Copy our config file for build
+               cp %{DIR_SOURCE}/wpa_supplicant.config %{DIR_APP}/wpa_supplicant/.config
+
+               # Build wpa_supplicant
+               cd %{DIR_APP}/wpa_supplicant && make %{PARALLELISMFLAGS}
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/etc/wpa_supplicant
+               mkdir -pv %{BUILDROOT}/usr/sbin
+
+               # Install config file
+               install -D -m 0600 %{DIR_SOURCE}/wpa_supplicant.conf %{BUILDROOT}/etc/wpa_supplicant
+
+               # Install binaries
+               install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_passphrase %{BUILDROOT}/usr/sbin
+               install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_cli %{BUILDROOT}/usr/sbin
+               install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_supplicant %{BUILDROOT}/usr/sbin
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 2d05e07b5bbaf263c9429840e62863e739c04d14..5eb1485490c040f18d01f420e4369bc01543c281 100644 (file)
@@ -1,47 +1,37 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xcb-proto
-PKG_VER        = 1.6
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = xcb-proto
+version    = 1.6
+release    = 1
+arch       = noarch
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Headers
-PKG_URL        = http://xcb.freedesktop.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = XCB protocol descriptions.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Headers
+url        = http://xcb.freedesktop.org/
+license    = MIT
+summary    = XCB protocol descriptions.
 
-PKG_BUILD_DEPS+= pkg-config python-devel
-
-define PKG_DESCRIPTION
+description
        XCB is a project to enable efficient language bindings to the X11 \
        protocol. This package contains the protocol descriptions themselves. \
        Language bindings use these protocol descriptions to generate code for \
        marshalling the protocol.
-endef
+end
+
+source_dl  = http://xcb.freedesktop.org/dist/
+sources    = %{thisapp}.tar.gz
+
+build
+       requires
+               pkg-config
+               python-devel
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+       end
+end
index 4ec54088db705d910dcedddc78c22cbea0af3998..4d7b580a5156a33b9e2acd26fda371095a192263 100644 (file)
@@ -1,56 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xcb-util
-PKG_VER        = 0.3.6
-PKG_REL        = 0
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://xcb.freedesktop.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Convenience libraries sitting on top of libxcb.
+name       = xcb-util
+version    = 0.3.6
+release    = 1
 
-PKG_BUILD_DEPS+= gperf libxcb-devel m4 pkg-config xorg-x11-proto-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://xcb.freedesktop.org/
+license    = MIT
+summary    = Convenience libraries sitting on top of libxcb.
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-define PKG_DESCRIPTION
+description
        The xcb-util module provides a number of libraries which sit on top of \
        libxcb, the core X protocol library, and some of the extension \
        libraries. These experimental libraries provide convenience functions \
        and interfaces which make the raw X protocol more usable.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --with-pic \
-       --disable-static
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+end
+
+source_dl  = http://xcb.freedesktop.org/dist/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               gperf
+               libxcb-devel
+               m4
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       configure_options += \
+               --with-pic \
+               --disable-static
+
+       test
+               make check
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 1869d923261e7d7739aa9129b1385b43fee9586f..07bf2a1b9682377e35297e7c19b48c8cb2103e43 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xen
-PKG_VER        = 4.1.1
-PKG_REL        = 3
-
-PKG_MAINTAINER = Ben Schweikert <ben.schweikert@ipfire.org>
-PKG_GROUPS     = Applications/Virtualization
-PKG_URL        = http://www.xen.org/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = The Xen tools.
-
-define PKG_DESCRIPTION
-       The Xen hypervisor, the powerful open source industry standard \
-       for virtualization, offers a powerful, efficient, and secure \
-       feature set for virtualization.
-endef
-
-PKG_BUILD_DEPS+= gettext-devel kernel-headers libuuid-devel ncurses-devel \
-       openssl-devel python python-devel sdl-devel xorg-x11-proto-devel \
-       zlib-devel
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs $(PKG_NAME)-hypervisor \
-       $(PKG_NAME)-runtime
-
-PKG_SUMMARY-$(PKG_NAME)-hypervisor = This package contains the Xen hypervisor
-PKG_SUMMARY-$(PKG_NAME)-devel = This package contains what's needed to \
-       develop applications which manage Xen virtual machines.
-PKG_SUMMARY-$(PKG_NAME)-libs = This package contains the libraries needed to \
-       run applications which manage Xen virtual machines
-PKG_SUMMARY-$(PKG_NAME)-runtime = This package contains the runtime programs \
-       and daemons which form the core Xen userspace environment.
-
-define PKG_FILES-$(PKG_NAME)-hypervisor
-       /boot/*
-endef
-
-define PKG_FILES-$(PKG_NAME)-runtime
-       /usr/bin/*
-endef
-
-# libs: Use files from template and add /usr/lib/fs.
-PKG_FILES-$(PKG_NAME)-libs += /usr/lib/fs
-
-define QUALITY_AGENT_WHITELIST_EXECSTACK
-       /boot/*
-endef
-
-define STAGE_BUILD
-       # Following two lines are disabling HVM. HVM does not work because \
-       # of some PIE errors we get when we try to build the firmware part \
-       # needed for different architektures.
-       cd $(DIR_APP) && sed -i -e '/^CONFIG_IOEMU := y$$/d' config/*.mk
-       cd $(DIR_APP) && sed -i -e '/SUBDIRS-$$(CONFIG_X86) += firmware/d' tools/Makefile
-
-       cd $(DIR_APP) && rm -f Config.mk~
-
-       cd $(DIR_APP) && make xen tools $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make xen install-tools DESTDIR=$(BUILDROOT)
-       rm -R $(BUILDROOT)/etc/init.d
-endef
+name       = xen
+version    = 4.1.1
+release    = 3
+
+maintainer = Ben Schweikert <ben.schweikert@ipfire.org>
+groups     = Applications/Virtualization
+url        = http://www.xen.org/
+license    = GPLv2+
+summary    = The Xen tools.
+
+description
+       The Xen hypervisor, the powerful open source industry standard
+       for virtualization, offers a powerful, efficient, and secure
+       feature set for virtualization.
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.gz
+
+build
+       requires
+               gettext-devel
+               kernel-headers
+               libuuid-devel
+               ncurses-devel
+               openssl-devel
+               python
+               python-devel
+               sdl-devel
+               xorg-x11-proto-devel
+               zlib-devel
+       end
+
+       prepare_cmds
+               # Following two lines are disabling HVM. HVM does not work because \
+               # of some PIE errors we get when we try to build the firmware part \
+               # needed for different architektures.
+               sed -i -e '/^CONFIG_IOEMU := y$$/d' config/*.mk
+               sed -i -e '/SUBDIRS-$%{CONFIG_X86} += firmware/d' tools/Makefile
+
+               rm -f Config.mk~
+       end
+
+       make_build_targets += \
+               xen tools
+
+       make_install_targets +=\
+               xen install-tools
+
+       install_cmds
+               rm -R %{BUILDROOT}/etc/init.d
+       end
+end
+
+quality-agent
+       whitelist_execstack
+               /boot/*
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+
+               description
+                       This package contains the libraries needed to
+                       run applications which manage Xen virtual machines
+               end
+       
+               files += /usr/lib/fs
+       end
+       
+       package %{name}-hypervisor
+               summary = The Xen hypervisor.
+               description
+                       This package contains the Xen hypervisor.
+               end
+       
+               files
+                       /boot/*
+               end
+       end
+       
+       package %{name}-runtime
+               summary = Runtime programms and daemons for Xen environments.
+               description
+                       This package contains the runtime programs
+                       and daemons which form the core Xen userspace environment.
+               end
+       
+               files
+                       /usr/bin/*
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+
+               description
+                       This package contains what's needed to
+                       develop applications which manage Xen virtual machines.
+               end
+       end
+end
index 865992bc966881138eb7e6db068a076dd7c017ec..24dfbc0ac32837c7b3b19188e6a8a9e4ff39368e 100644 (file)
@@ -1,76 +1,70 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = xfsprogs
+version    = 3.1.2
+release    = 1
 
-PKG_NAME       = xfsprogs
-PKG_VER        = 3.1.2
-PKG_REL        = 0
+groups     = System/Filesystems
+url        = http://oss.sgi.com/projects/xfs/
+license    = GPL+ and LGPLv2+
+summary    = Utilities for managing the XFS filesystem
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Filesystems
-PKG_URL        = http://oss.sgi.com/projects/xfs/
-PKG_LICENSE    = GPL+ and LGPLv2+
-PKG_SUMMARY    = Utilities for managing the XFS filesystem
+description
+       A set of commands to use the XFS filesystem, including mkfs.xfs.
+end
 
-PKG_BUILD_DEPS+= e2fsprogs-devel gettext libacl-devel libblkid-devel libtool \
-       libuuid-devel readline-devel
+source_dl  = ftp://oss.sgi.com/projects/xfs/cmd_tars/
 
-define PKG_DESCRIPTION
-       A set of commands to use the XFS filesystem, including mkfs.xfs.
-endef
+build
+       requires
+               e2fsprogs-devel
+               gettext
+               libacl-devel
+               libblkid-devel
+               libtool
+               libuuid-devel
+               readline-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --mandir=/usr/share/man \
+               --bindir=/sbin \
+               --sbindir=/sbin \
+               --libdir=/lib \
+               --libexecdir=/usr/lib \
+               --enable-readline=yes \
+               --enable-blkid=yes \
+               --disable-static
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+       configure_cmds
+               # Kill rpaths
+               sed -i libtool \
+                       -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
+                       -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && \
-               ./configure \
-                       --prefix=/usr \
-                       --mandir=/usr/share/man \
-                       --bindir=/sbin \
-                       --sbindir=/sbin \
-                       --libdir=/lib \
-                       --libexecdir=/usr/lib \
-                       --enable-readline=yes \
-                       --enable-blkid=yes \
-                       --disable-static
+       make_build_targets +=\
+               V=1 DEBUG=-DNDEBUG
 
-       # Kill rpaths
-       cd $(DIR_APP) && sed -i libtool \
-               -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-               -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'
 
-       cd $(DIR_APP) && make V=1 DEBUG=-DNDEBUG
-endef
+       install
+               make install install-dev install-qa DIST_ROOT=%{BUILDROOT}
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install install-dev install-qa DIST_ROOT=$(BUILDROOT)
+               chmod -v 755 %{BUILDROOT}/lib/libhandle.so*
+               rm -vf %{BUILDROOT}/lib/libhandle.so
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libhandle.so.1 %{BUILDROOT}/usr/lib/libhandle.so
+       end
+end
 
-       chmod -v 755 $(BUILDROOT)/lib/libhandle.so*
-       rm -vf $(BUILDROOT)/lib/libhandle.so
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libhandle.so.1 $(BUILDROOT)/usr/lib/libhandle.so
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 6959ce093e49bf18546ea9e87d7c89bbc88f79a1..504b7e8f7b8d6fe32c35ce75e8432a428f744976 100644 (file)
@@ -1,56 +1,48 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xkeyboard-config
-PKG_VER        = 1.9
-PKG_REL        = 1
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Utils
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X Keyboard Extension configuration data.
-
-PKG_BUILD_DEPS+= gettext intltool pkg-config perl-XML-Parser xorg-x11-util-macros \
-       xorg-x11-xkb-utils
-
-define PKG_DESCRIPTION
-       This package contains configuration data used by the X Keyboard \
-       Extension (XKB), which allows selection of keyboard layouts when \
-       using a graphical interface. 
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-CONFIGURE_OPTIONS += \
-       --disable-static \
-       --with-xkb-base=/usr/share/X11/xkb \
-       --disable-xkbcomp-symlink \
-       --with-xkb-rules-symlink=xorg
-
-STAGE_INSTALL_TARGETS += \
-       INSTALL="install -p"
+name       = xkeyboard-config
+version    = 1.9
+release    = 1
+arch       = noarch
+
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Utils
+url        = http://www.x.org/
+license    = MIT
+summary    = X Keyboard Extension configuration data.
+
+description
+       This package contains configuration data used by the X Keyboard
+       Extension (XKB), which allows selection of keyboard layouts when
+       using a graphical interface.
+end
+
+source_dl  = http://ftp.x.org/pub/individual/data/
+sources    = %{thisapp}.tar.bz2
+
+build
+       requires
+               gettext
+               intltool
+               pkg-config
+               perl-XML-Parser
+               xorg-x11-util-macros
+               xorg-x11-xkb-utils
+       end
+
+       configure_options += \
+               --disable-static \
+               --with-xkb-base=/usr/share/X11/xkb \
+               --disable-xkbcomp-symlink \
+               --with-xkb-rules-symlink=xorg
+
+       make_install_targets += INSTALL="install -p"
+end
+
+packages
+       package %{name}
+       end
+end
index e5883b9f6068baefe7066cc84ff656d36858c7d3..ce5358a096af70f18e243f8c9c19a29f254d8abd 100644 (file)
@@ -1,54 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-x11-drv-ati
-PKG_VER        = 6.13.1
-PKG_REL        = 0
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 ati video driver.
+name       = xorg-x11-drv-ati
+version    = 6.13.1
+release    = 1
 
-PKG_BUILD_DEPS += libdrm-devel libpciaccess-devel libX11-devel mesa-devel \
-       pkg-config xorg-x11-proto-devel xorg-x11-server-devel xorg-x11-util-macros
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 ati video driver.
 
-define PKG_DESCRIPTION
+description
        X.Org X11 ati video driver.
-endef
-
-PKG_TARBALL    = xf86-video-ati-$(PKG_VER).tar.bz2
-
-DIR_APP = $(DIR_SRC)/xf86-video-ati-$(PKG_VER)
-
-CFLAGS        += -Wl,-z,lazy
-
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
-
-CONFIGURE_OPTIONS += \
-       --enable-dri \
-       --disable-static
+end
+
+source_dl  = http://ftp.x.org/pub/individual/driver/
+sources    = xf86-video-ati-%{version}.tar.bz2
+
+build
+       requires
+               libdrm-devel
+               libpciaccess-devel
+               libX11-devel
+               mesa-devel
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-server-devel
+               xorg-x11-util-macros
+       end
+
+       DIR_APP = %{DIR_SRC}/xf86-video-ati-%{version}
+
+       CFLAGS += -Wl,-z,lazy
+
+       configure_options += \
+               --enable-dri \
+               --disable-static
+end
+
+quality-agent
+       permit_not_full_relro = yes
+end
+
+packages
+       package %{name}
+       end
+end
index 7cabb00da2a645cedafdbc41a59d5cb04d548abf..b85e2428e7489111e6dc36b048c19241c54daaec 100644 (file)
@@ -1,55 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = xorg-x11-drv-evdev
+version    = 2.4.99.901
+release    = 1
 
-PKG_NAME       = xorg-x11-drv-evdev
-PKG_VER        = 2.4.99.901
-PKG_REL        = 0
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 evdev input driver.
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 evdev input driver.
+description
+       X.Org X11 evdev input driver.
+end
 
-PKG_BUILD_DEPS+= libxkbfile-devel pkg-config xorg-x11-proto-devel \
-       xorg-x11-server-devel xorg-x11-util-macros
+source_dl  = http://ftp.x.org/pub/individual/driver/
+sources    = xf86-input-evdev-%{version}.tar.bz2
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+build
+       requires
+               libxkbfile-devel
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-server-devel
+               xorg-x11-util-macros
+       end
 
-define PKG_DESCRIPTION
-       X.Org X11 evdev input driver.
-endef
+       DIR_APP        = %{DIR_SRC}/xf86-input-evdev-%{version}
 
-PKG_TARBALL    = xf86-input-evdev-$(PKG_VER).tar.bz2
+       CFLAGS       += -Wl,-z,lazy
 
-DIR_APP        = $(DIR_SRC)/xf86-input-evdev-$(PKG_VER)
+       configure_options += \
+               --disable-static
+end
 
-CFLAGS       += -Wl,-z,lazy
+quality-agent
+       permit_not_full_relro = yes
+end
 
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
+packages
+       package %{name}
+       end
 
-CONFIGURE_OPTIONS += \
-       --disable-static
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 00683251e33ba3aa812897b5e685442d1842f67c..c72bddca5d45c4d65790bd8c95e3790acb96dd64 100644 (file)
@@ -1,65 +1,66 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = xorg-x11-drv-intel
+version    = 2.12.0
+release    = 1
 
-PKG_NAME       = xorg-x11-drv-intel
-PKG_VER        = 2.12.0
-PKG_REL        = 1
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 intel video driver.
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 intel video driver.
+description
+       X.Org X11 intel video driver.
+end
 
-PKG_BUILD_DEPS += autoconf automake libdrm-devel libudev-devel libX11-devel \
-       libXvMC-devel libxcb-devel libtool mesa-devel pkg-config \
-       xcb-util-devel xorg-x11-proto-devel xorg-x11-server-devel \
-       xorg-x11-util-macros
+source_dl  = http://ftp.x.org/pub/individual/driver/
+sources    = xf86-video-intel-%{version}.tar.bz2
 
-define PKG_DESCRIPTION
-       X.Org X11 intel video driver.
-endef
+build
+       requires
+               autoconf
+               automake
+               libdrm-devel
+               libudev-devel
+               libX11-devel
+               libXvMC-devel
+               libxcb-devel
+               libtool
+               mesa-devel
+               pkg-config
+               xcb-util-devel
+               xorg-x11-proto-devel
+               xorg-x11-server-devel
+               xorg-x11-util-macros
+       end
 
-PKG_TARBALL    = xf86-video-intel-$(PKG_VER).tar.bz2
+       DIR_APP = %{DIR_SRC}/xf86-video-intel-%{version}
 
-DIR_APP = $(DIR_SRC)/xf86-video-intel-$(PKG_VER)
+       CFLAGS += -Wl,-z,lazy
 
-CFLAGS        += -Wl,-z,lazy
+       configure_options += \
+               --enable-dri \
+               --enable-xvmc \
+               --disable-static
 
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
+       prepare_cmds
+               autoreconf -vi
+       end
 
-CONFIGURE_OPTIONS += \
-       --enable-dri \
-       --enable-xvmc \
-       --disable-static
+       install_cmds
+               install -Dm 0644 %{DIR_SOURCE}/intel.xinf %{BUILDROOT}/usr/share/hwdata/videoaliases/intel.xinf
+       end
+end
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -vi
-endef
+quality-agent
+       permit_not_full_relro = yes
+end
 
-define STAGE_INSTALL_CMDS
-       install -Dm 0644 $(DIR_SOURCE)/intel.xinf $(BUILDROOT)/usr/share/hwdata/videoaliases/intel.xinf
-endef
+packages
+       package %{name}
+       end
+end
index 0578c4b1c9005d09c4c01c5577a9bfc9c5c2fd0f..03f6f9a0ce7a24cfc9bb08e540c70a5858d12dad 100644 (file)
@@ -1,53 +1,45 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = xorg-x11-drv-keyboard
+version    = 1.4.0
+release    = 1
 
-PKG_NAME       = xorg-x11-drv-keyboard
-PKG_VER        = 1.4.0
-PKG_REL        = 0
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 keyboard input driver.
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 keyboard input driver.
+description
+       X.Org X11 keyboard input driver.
+end
 
-PKG_BUILD_DEPS += pkg-config xorg-x11-server-devel xorg-x11-proto-devel \
-       xorg-x11-util-macros
+source_dl  = http://ftp.x.org/pub/individual/driver/
+sources    = xf86-input-keyboard-%{version}.tar.bz2
 
-define PKG_DESCRIPTION
-       X.Org X11 keyboard input driver.
-endef
+build
+       requires
+               pkg-config
+               xorg-x11-server-devel
+               xorg-x11-proto-devel
+               xorg-x11-util-macros
+       end
 
-PKG_TARBALL    = xf86-input-keyboard-$(PKG_VER).tar.bz2
+       DIR_APP = %{DIR_SRC}/xf86-input-keyboard-%{version}
 
-DIR_APP = $(DIR_SRC)/xf86-input-keyboard-$(PKG_VER)
+       CFLAGS += -Wl,-z,lazy
 
-CFLAGS        += -Wl,-z,lazy
+       configure_options += \
+               --disable-static
+end
 
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
+quality-agent
+       permit_not_full_relro = yes
+end
 
-CONFIGURE_OPTIONS += \
-       --disable-static
+packages
+       package %{name}
+end
index 0499985fffb33c3ce88cd67765c06e6fc1d41bbb..8badb77a22f852a0e61adaf5db67bcc36c8839ea 100644 (file)
@@ -1,53 +1,46 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = xorg-x11-drv-mouse
+version    = 1.5.0
+release    = 1
 
-PKG_NAME       = xorg-x11-drv-mouse
-PKG_VER        = 1.5.0
-PKG_REL        = 0
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 mouse input driver.
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 mouse input driver.
+description
+       X.Org X11 mouse input driver.
+end
 
-PKG_BUILD_DEPS += pkg-config xorg-x11-proto-devel xorg-x11-server-devel\
-       xorg-x11-util-macros
+source_dl  = http://ftp.x.org/pub/individual/driver/
+sources    = xf86-input-mouse-%{version}.tar.bz2
 
-define PKG_DESCRIPTION
-       X.Org X11 mouse input driver.
-endef
+build
+       requires
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-server-devel
+               xorg-x11-util-macros
+       end
 
-PKG_TARBALL    = xf86-input-mouse-$(PKG_VER).tar.bz2
+       DIR_APP = %{DIR_SRC}/xf86-input-mouse-%{version}
 
-DIR_APP = $(DIR_SRC)/xf86-input-mouse-$(PKG_VER)
+       CFLAGS   += -Wl,-z,lazy
 
-CFLAGS        += -Wl,-z,lazy
+       configure_options += \
+               --disable-static
+end
 
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
+quality-agent
+       permit_not_full_relro = yes
+end
 
-CONFIGURE_OPTIONS += \
-       --disable-static
+packages
+       package %{name}
+       end
+end
index e0568372dac56d90fa43fc5ae15ce24d7f0ec3e2..91fd257a973d363ee1765a501e3b99d48fb9a716 100644 (file)
@@ -1,58 +1,55 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = xorg-x11-drv-nv
+version    = 2.1.18
+release    = 1
 
-PKG_NAME       = xorg-x11-drv-nv
-PKG_VER        = 2.1.18
-PKG_REL        = 0
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 nv video driver.
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 nv video driver.
-
-PKG_BUILD_DEPS += autoconf automake libX11-devel libdrm-devel libtool \
-       pkg-config xorg-x11-proto-devel xorg-x11-server-devel \
-       xorg-x11-util-macros
-
-define PKG_DESCRIPTION
+description
        X.Org X11 nv video driver.
-endef
-
-PKG_TARBALL    = xf86-video-nv-$(PKG_VER).tar.bz2
-
-DIR_APP = $(DIR_SRC)/xf86-video-nv-$(PKG_VER)
-
-CFLAGS        += -Wl,-z,lazy
-
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
-
-CONFIGURE_OPTIONS += \
-       --disable-static
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -vi
-endef
+end
+
+source_dl = http://ftp.x.org/pub/individual/driver/
+sources   = xf86-video-nv-%{version}.tar.bz2
+
+build
+       requires
+               autoconf
+               automake
+               libX11-devel
+               libdrm-devel
+               libtool
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-server-devel
+               xorg-x11-util-macros
+       end
+
+       DIR_APP = %{DIR_SRC}/xf86-video-nv-%{version}
+
+       CFLAGS        += -Wl,-z,lazy
+
+       configure_options += \
+               --disable-static
+
+       prepare_cmds
+               autoreconf -vi
+       end
+end
+
+quality-agent
+       permit_not_full_relro = yes
+end
+
+packages
+       package %{name}
+       end
+end
index d31f5a6aaa6eb0d85715190b2cf724e88fb7cf29..e3d57f0d040ab3f8fa5faa0c0b7de105f6d498b7 100644 (file)
@@ -1,63 +1,60 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-x11-drv-synaptics
-PKG_VER        = 1.3.0
-PKG_REL        = 0
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 synaptics input driver.
-
-PKG_BUILD_DEPS += libX11-devel libXi-devel pkg-config xorg-x11-proto-devel \
-       xorg-x11-server-devel xorg-x11-util-macros
+name       = xorg-x11-drv-synaptics
+version    = 1.3.0
+release    = 1
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 synaptics input driver.
 
-define PKG_DESCRIPTION
+description
        This is the Synaptics touchpad driver for the X.Org X server.
-endef
-
-PKG_TARBALL    = xf86-input-synaptics-$(PKG_VER).tar.bz2
-
-DIR_APP = $(DIR_SRC)/xf86-input-synaptics-$(PKG_VER)
-
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
-
-CONFIGURE_OPTIONS += \
-       --disable-static
-
-# Disable BIND_NOW for the X server module
-define STAGE_CONFIGURE_CMDS
-       cd $(DIR_APP) && sed -e "s/^CFLAGS.*/& -Wl,-z,lazy/" -i src/Makefile
-endef
-
-define STAGE_INSTALL_CMDS
-       install -Dm 0664 $(DIR_SOURCE)/50-synaptics.conf $(BUILDROOT)/etc/X11/xorg.conf.d/50-synaptics.conf
-       install -Dm 0664 $(DIR_SOURCE)/70-touchpad-quirks.rules $(BUILDROOT)/lib/udev/rules.d/70-touchpad-quirks.rules
-endef
+end
+
+source_dl = http://ftp.x.org/pub/individual/driver/
+sources   = xf86-input-synaptics-%{version}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXi-devel
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-server-devel
+               xorg-x11-util-macros
+       end
+
+       DIR_APP = %{DIR_SRC}/xf86-input-synaptics-%{version}
+
+       configure_options += \
+               --disable-static
+
+       configure_cmds
+               # Disable BIND_NOW for the X server module
+               sed -e "s/^CFLAGS.*/& -Wl,-z,lazy/" -i src/Makefile
+       end
+
+       install_cmds
+               install -Dm 0664 %{DIR_SOURCE}/50-synaptics.conf %{BUILDROOT}/etc/X11/xorg.conf.d/50-synaptics.conf
+               install -Dm 0664 %{DIR_SOURCE}/70-touchpad-quirks.rules %{BUILDROOT}/lib/udev/rules.d/70-touchpad-quirks.rules
+       end
+end
+
+quality-agent
+       permit_not_full_relro = yes
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end
index 93cf37f6dc88d3fd04548b0626003b6b4f398626..66fc404ce5d18a88bb60e5e274602b8dc02346e3 100644 (file)
@@ -1,53 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = xorg-x11-drv-vesa
+version    = 2.3.0
+release    = 1
 
-include $(PKGROOT)/Include
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 vesa video driver.
 
-PKG_NAME       = xorg-x11-drv-vesa
-PKG_VER        = 2.3.0
-PKG_REL        = 0
+description
+       X.Org X11 vesa video driver.
+end
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 vesa video driver.
+source_dl = http://ftp.x.org/pub/individual/driver/
+sources   = xf86-video-vesa-%{version}.tar.bz2
 
-PKG_BUILD_DEPS += libX11-devel libpciaccess-devel pkg-config xorg-x11-proto-devel \
-       xorg-x11-server-devel xorg-x11-util-macros
+DIR_APP = $(DIR_SRC)/xf86-video-vesa-$(PKG_VER)
 
-define PKG_DESCRIPTION
-       X.Org X11 vesa video driver.
-endef
+build
+       requires
+               libX11-devel
+               libpciaccess-devel
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-server-devel
+               xorg-x11-util-macros
+       end
 
-PKG_TARBALL    = xf86-video-vesa-$(PKG_VER).tar.bz2
+       DIR_APP = %{DIR_SRC}/xf86-video-vesa-%{version}
 
-DIR_APP = $(DIR_SRC)/xf86-video-vesa-$(PKG_VER)
+       CFLAGS        += -Wl,-z,lazy
 
-CFLAGS        += -Wl,-z,lazy
+       configure_options += \
+               --disable-static
+end
 
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
+quality-agent
+       permit_not_full_relro = yes
+end
 
-CONFIGURE_OPTIONS += \
-       --disable-static
+packages
+       package %{name}
+       end
+end
index 5b2aac425466aec1515930a79ac6ecf5b62ef5b8..a24655faefbca1ee17ac4d7990906d0dca2ebc3c 100644 (file)
@@ -1,53 +1,50 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = xorg-x11-drv-vmware
+version    = 11.0.2
+release    = 1
 
-include $(PKGROOT)/Include
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Driver
+url        = http://www.x.org/
+license    = MIT
+summary    = Xorg X11 vmware video driver.
 
-PKG_NAME       = xorg-x11-drv-vmware
-PKG_VER        = 11.0.2
-PKG_REL        = 0
+description
+       X.Org X11 vmware video driver.
+end
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Driver
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Xorg X11 vmware video driver.
+source_dl = http://ftp.x.org/pub/individual/driver/
+sources   = xf86-video-vmware-%{version}.tar.bz2
 
-PKG_BUILD_DEPS += libX11-devel libdrm-devel libpciaccess-devel pkg-config\
-        xorg-x11-proto-devel xorg-x11-server-devel xorg-x11-util-macros
+build
+       requires
+               libX11-devel
+               libdrm-devel
+               libpciaccess-devel
+               pkg-config
+               xorg-x11-proto-devel
+               xorg-x11-server-devel
+               xorg-x11-util-macros
+       end
 
-define PKG_DESCRIPTION
-       X.Org X11 vmware video driver.
-endef
 
-PKG_TARBALL    = xf86-video-vmware-$(PKG_VER).tar.bz2
+       DIR_APP = %{DIR_SRC}/xf86-video-vmware-%{version}
 
-DIR_APP = $(DIR_SRC)/xf86-video-vmware-$(PKG_VER)
+       CFLAGS        += -Wl,-z,lazy
 
-CFLAGS        += -Wl,-z,lazy
+       configure_options += \
+               --disable-static
+end
 
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
+quality-agent
+       permit_not_full_relro = yes
+end
 
-CONFIGURE_OPTIONS += \
-       --disable-static
+packages
+       package %{name}
+       end
+end
index a4fdaa9988493522919423ccc56e4255284cae12..df9c317ab6cf23a1446cca8772b5de3d23c9a974 100644 (file)
@@ -1,84 +1,83 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-x11-font-utils
-PKG_VER        = 7.4
-PKG_REL        = 2
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Fonts
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 font utilities.
+name       = xorg-x11-font-utils
+version    = 7.4
+release    = 2
 
-PKG_BUILD_DEPS+= autoconf freetype-devel libX11-devel libXfont-devel libfontenc-devel\
-       pkg-config xorg-x11-proto-devel zlib-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Fonts
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 font utilities.
 
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-PKG_DEPS-$(PKG_NAME_REAL)-devel += freetype-devel
-define PKG_DESCRIPTION
-       X.Org X11 font utilities required for font installation, conversion, \
+description
+       X.Org X11 font utilities required for font installation, conversion,
        and generation.
-endef
-
-SRC_PACKAGES = \
-       bdftopcf-1.0.1 \
-       fonttosfnt-1.0.3 \
-       mkfontdir-1.0.5 \
-       mkfontscale-1.0.7 \
-       font-util-1.1.0
-
-PKG_OBJECTS += $(foreach package,$(SRC_PACKAGES),$(package).tar.bz2)
-
-define STAGE_PREPARE
-       for object in $(PKG_OBJECTS); do \
-               cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$${object}; \
-       done
-endef
-
-define MACRO_BUILD
-       cd $(DIR_SRC)/$(1) && autoconf
-       cd $(DIR_SRC)/$(1) && \
-               ./configure \
-                       --prefix=/usr \
-                       --with-mapdir=/usr/share/X11/fonts/util
-
-       cd $(DIR_SRC)/$(1) && make $(PARALLELISMFLAGS)
-
-endef
-
-STAGE_BUILD = $(foreach package,$(SRC_PACKAGES),$(call MACRO_BUILD,$(package)))
-
-define MACRO_INSTALL
-       cd $(DIR_SRC)/$(1) && make install DESTDIR=$(BUILDROOT)
-
-endef
-
-STAGE_INSTALL = $(foreach package,$(SRC_PACKAGES),$(call MACRO_INSTALL,$(package)))
-
-
+end
+
+source_dl  = http://ftp.x.org/pub/individual/app/
+
+sources =\
+       bdftopcf-1.0.1.tar.bz2 \
+       fonttosfnt-1.0.3.tar.bz2 \
+       mkfontdir-1.0.5.tar.bz2 \
+       mkfontscale-1.0.7.tar.bz2 \
+       font-util-1.1.0.tar.bz2
+
+build
+       requires
+               autoconf
+               freetype-devel
+               libX11-devel
+               libXfont-devel
+               libfontenc-devel
+               pkg-config
+               xorg-x11-proto-devel
+               zlib-devel              
+       end
+
+       configure_options += \
+               --with-mapdir=/usr/share/X11/fonts/util
+
+       build
+               for object in %{sources}; do
+                       dir=%{DIR_SRC}/${object%*.tar.bz2}
+
+                       if [ -d "${dir}" ]; then
+                               cd ${dir}
+                               autoconf
+                               ./configure %{configure_options}
+
+                               make %{PARALELLISMFLAGS}
+                       fi
+               done
+       end
+
+       install
+               for object in %{sources}; do
+                       dir=%{DIR_SRC}/${object%*.tar.bz2}
+
+                       if [ -d "${dir}" ]; then
+                               cd ${dir}
+
+                               make install DESTDIR=%{BUILDROOT}
+                       fi
+               done
+       end
+end
+
+packages
+       package %{name}
+       end
+
+       package %{name}-devel
+               template DEVEL
+
+               requires
+                       freetype-devel
+               end
+       end
+end
index 9b7ef9870d08d7bff5a6dfefd9fa75ff7109e67c..c9313667b9c8b4f6e9f24c19deb538578f8fca26 100644 (file)
@@ -1,96 +1,69 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-x11-fonts
-PKG_VER        = 7.2
-PKG_REL        = 2
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Fonts
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 fonts.
-
-PKG_BUILD_DEPS+= /usr/bin/mkfontscale perl pkg-config xorg-x11-font-utils-devel
-PKG_DEPS      += fontconfig
-define PKG_DESCRIPTION
-       This package contains misc bitmap Chinese, Japanese, Korean, Indic, and \
-       Arabic fonts for use with X Window System.      
-endef
-
-# Add all development headers to the package
-# Don't remove empty lines in the defined MACROS!
-
-SRC_PACKAGES = \
-       encodings-1.0.3 \
-       font-alias-1.0.2 \
-       font-adobe-100dpi-1.0.1 \
-       font-adobe-75dpi-1.0.1 \
-       font-adobe-utopia-100dpi-1.0.2 \
-       font-adobe-utopia-75dpi-1.0.2 \
-       font-adobe-utopia-type1-1.0.2 \
-       font-arabic-misc-1.0.1 \
-       font-bh-100dpi-1.0.1 \
-       font-bh-75dpi-1.0.1 \
-       font-bh-lucidatypewriter-100dpi-1.0.1 \
-       font-bh-lucidatypewriter-75dpi-1.0.1 \
-       font-bitstream-100dpi-1.0.1 \
-       font-bitstream-75dpi-1.0.1 \
-       font-bitstream-type1-1.0.1 \
-       font-cronyx-cyrillic-1.0.1 \
-       font-cursor-misc-1.0.1 \
-       font-daewoo-misc-1.0.1 \
-       font-dec-misc-1.0.1 \
-       font-isas-misc-1.0.1 \
-       font-jis-misc-1.0.1 \
-       font-micro-misc-1.0.1 \
-       font-misc-cyrillic-1.0.1 \
-       font-misc-misc-1.1.0 \
-       font-mutt-misc-1.0.1 \
-       font-schumacher-misc-1.1.0 \
-       font-screen-cyrillic-1.0.2 \
-       font-sony-misc-1.0.1 \
-       font-sun-misc-1.0.1 \
-       font-winitzki-cyrillic-1.0.1 \
-       font-xfree86-type1-1.0.2
-
-PKG_OBJECTS += $(foreach package,$(SRC_PACKAGES),$(package).tar.bz2)
-PKG_OBJECTS += unifont-5.1.20080820.pcf.gz
-
-define STAGE_PREPARE
-       for object in $(SRC_PACKAGES); do \
-               cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$${object}.tar.bz2; \
-       done
-endef
-
-define MACRO_BUILD
-       cd $(DIR_SRC)/$(1) && ./configure \
-               --prefix=/usr \
+name       = xorg-x11-fonts
+version    = 7.2
+release    = 2
+arch       = noarch
+
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Fonts
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 fonts.
+
+description
+       This package contains misc bitmap Chinese, Japanese, Korean, Indic, and
+       Arabic fonts for use with X Window System.
+end
+
+source_dl = http://ftp.x.org/pub/individual/font/ http://unifoundry.com/
+
+sources = \
+       encodings-1.0.3.tar.bz2 \
+       font-alias-1.0.2.tar.bz2 \
+       font-adobe-100dpi-1.0.1.tar.bz2 \
+       font-adobe-75dpi-1.0.1.tar.bz2 \
+       font-adobe-utopia-100dpi-1.0.2.tar.bz2 \
+       font-adobe-utopia-75dpi-1.0.2.tar.bz2 \
+       font-adobe-utopia-type1-1.0.2.tar.bz2 \
+       font-arabic-misc-1.0.1.tar.bz2 \
+       font-bh-100dpi-1.0.1.tar.bz2 \
+       font-bh-75dpi-1.0.1.tar.bz2 \
+       font-bh-lucidatypewriter-100dpi-1.0.1.tar.bz2 \
+       font-bh-lucidatypewriter-75dpi-1.0.1.tar.bz2 \
+       font-bitstream-100dpi-1.0.1.tar.bz2 \
+       font-bitstream-75dpi-1.0.1.tar.bz2 \
+       font-bitstream-type1-1.0.1.tar.bz2 \
+       font-cronyx-cyrillic-1.0.1.tar.bz2 \
+       font-cursor-misc-1.0.1.tar.bz2 \
+       font-daewoo-misc-1.0.1.tar.bz2 \
+       font-dec-misc-1.0.1.tar.bz2 \
+       font-isas-misc-1.0.1.tar.bz2 \
+       font-jis-misc-1.0.1.tar.bz2 \
+       font-micro-misc-1.0.1.tar.bz2 \
+       font-misc-cyrillic-1.0.1.tar.bz2 \
+       font-misc-misc-1.1.0.tar.bz2 \
+       font-mutt-misc-1.0.1.tar.bz2 \
+       font-schumacher-misc-1.1.0.tar.bz2 \
+       font-screen-cyrillic-1.0.2.tar.bz2 \
+       font-sony-misc-1.0.1.tar.bz2 \
+       font-sun-misc-1.0.1.tar.bz2 \
+       font-winitzki-cyrillic-1.0.1.tar.bz2 \
+       font-xfree86-type1-1.0.2.tar.bz2 \
+       unifont-5.1.20080820.pcf.gz
+
+build
+       requires
+               /usr/bin/mkfontscale
+               perl
+               pkg-config
+               xorg-x11-font-utils-devel
+       end
+
+       configure_optins += \
                --with-fontrootdir=/usr/share/X11/fonts \
                --disable-iso8859-3 \
                --disable-iso8859-4 \
@@ -101,22 +74,48 @@ define MACRO_BUILD
                --disable-iso8859-13 \
                --disable-iso8859-16
 
-       cd $(DIR_SRC)/$(1) && make $(PARALLELISMFLAGS)
-
-endef
-
-STAGE_BUILD = $(foreach package,$(SRC_PACKAGES),$(call MACRO_BUILD,$(package)))
-
-define MACRO_INSTALL
-       cd $(DIR_SRC)/$(1) && make install DESTDIR=$(BUILDROOT)
-
-endef
-
-define STAGE_INSTALL
-       $(foreach package,$(SRC_PACKAGES),$(call MACRO_INSTALL,$(package)))
-
-       # Install unifont
-       cp -vf $(DIR_DL)/unifont-5.1.20080820.pcf.gz $(BUILDROOT)/usr/share/X11/fonts/misc/unifont.pcf.gz
-endef
-
-
+       prepare
+       # Extract all source tarballs.
+               for object in %{sources}; do
+                       # Only extract tar.bz2 files
+                       object=${object//*pcf.gz/}
+                       if [ -n "${object}" ]; then
+                               %{MACRO_EXTRACT} %{DIR_DL}/${object}
+                       fi
+               done
+       end
+
+       build
+               for object in %{sources}; do
+                       dir=%{DIR_SRC}/${object%*.tar.bz2}
+
+                       if [ -d "${dir}" ]; then
+                               cd ${dir}
+                               ./configure %{configure_options}
+
+                               make %{PARALELLISMFLAGS}
+                       fi
+               done
+       end
+
+       install
+               for object in %{sources}; do
+                       dir=%{DIR_SRC}/${object%*.tar.bz2}
+
+                       if [ -d "${dir}" ]; then
+                               cd ${dir}
+
+                               make install DESTDIR=%{BUILDROOT}
+                       fi
+               done
+
+               # Install unifont
+               cp -vf %{DIR_DL}/unifont-5.1.20080820.pcf.gz %{BUILDROOT}/usr/share/fonts/X11/misc/unifont.pcf.gz
+       end
+end
+
+packages
+       package %{name}
+               requires = fontconfig
+       end
+end
index 41f549e5a0bea51e4433b057a300578e774f36cc..610c7ad38327d960d2ed80d8466bafe3172b0330 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-x11-proto-devel
-PKG_VER        = 7.4
-PKG_REL        = 2
-PKG_ARCH       = noarch
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = Development/System
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X11 potocol headers.
-
-PKG_BUILD_DEPS+= pkg-config 
-
-define PKG_DESCRIPTION
-       Development headers for X.org X11 protocol. 
-endef
-
-# Add all development headers to the package
-# Don't remove empty lines in the defined MACROS!
-
-SRC_PACKAGES = \
-       bigreqsproto-1.1.0 \
-        compositeproto-0.4.1 \
-        damageproto-1.2.0 \
-        dmxproto-2.3 \
-        dri2proto-2.3 \
-        evieext-1.1.0 \
-        fixesproto-4.1.1\
-        fontsproto-2.1.0 \
-        glproto-1.4.12 \
-        inputproto-2.0 \
-        kbproto-1.0.5 \
-        randrproto-1.3.1 \
-        recordproto-1.14 \
-        renderproto-0.11.1 \
-        resourceproto-1.1.0 \
-        scrnsaverproto-1.2.0 \
-        videoproto-2.3.1 \
-        xcmiscproto-1.2.0 \
-        xextproto-7.1.2 \
-        xf86bigfontproto-1.2.0 \
-        xf86dgaproto-2.1 \
-        xf86driproto-2.1.0 \
-        xf86miscproto-0.9.3 \
-        xf86vidmodeproto-2.3 \
-        xineramaproto-1.2 \
-        xproto-7.0.18 \
-        xproxymanagementprotocol-1.0.3
-
-PKG_OBJECTS += $(foreach package,$(SRC_PACKAGES),$(package).tar.bz2)
-
-define STAGE_PREPARE
-       for object in $(PKG_OBJECTS); do \
-               cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$${object}; \
-       done
-endef
-
-define MACRO_BUILD
-       cd $(DIR_SRC)/$(1) && [ -e configure ] || ./autogen.sh
-       cd $(DIR_SRC)/$(1) && ./configure --prefix=/usr
-       cd $(DIR_SRC)/$(1) && make $(PARALLELISMFLAGS)
-
-endef
-
-STAGE_BUILD = $(foreach package,$(SRC_PACKAGES),$(call MACRO_BUILD,$(package)))
-
-define MACRO_INSTALL
-       cd $(DIR_SRC)/$(1) && make install DESTDIR=$(BUILDROOT)
-
-endef
-
-STAGE_INSTALL = $(foreach package,$(SRC_PACKAGES),$(call MACRO_INSTALL,$(package)))
-
-
+name       = xorg-x11-proto-devel
+version    = 7.4
+release    = 2
+arch       = noarch
+
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = Development/System
+url        = http://www.x.org/
+license    = MIT
+summary    = X11 potocol headers.
+
+description
+       Development headers for X.org X11 protocol.
+end
+
+build_requires += pkg-config
+
+source_dl = http://ftp.x.org/pub/individual/proto/
+sources = \
+       bigreqsproto-1.1.0.tar.bz2 \
+        compositeproto-0.4.1.tar.bz2 \
+        damageproto-1.2.0.tar.bz2 \
+        dmxproto-2.3.tar.bz2 \
+        dri2proto-2.3.tar.bz2 \
+        evieext-1.1.0.tar.bz2 \
+        fixesproto-4.1.1.tar.bz2 \
+        fontsproto-2.1.0.tar.bz2 \
+        glproto-1.4.12.tar.bz2 \
+        inputproto-2.0.tar.bz2 \
+        kbproto-1.0.5.tar.bz2 \
+        randrproto-1.3.1.tar.bz2 \
+        recordproto-1.14.tar.bz2 \
+        renderproto-0.11.1.tar.bz2 \
+        resourceproto-1.1.0.tar.bz2 \
+        scrnsaverproto-1.2.0.tar.bz2 \
+        videoproto-2.3.1.tar.bz2 \
+        xcmiscproto-1.2.0.tar.bz2 \
+        xextproto-7.1.2.tar.bz2 \
+        xf86bigfontproto-1.2.0.tar.bz2 \
+        xf86dgaproto-2.1.tar.bz2 \
+        xf86driproto-2.1.0.tar.bz2 \
+        xf86miscproto-0.9.3.tar.bz2 \
+        xf86vidmodeproto-2.3.tar.bz2 \
+        xineramaproto-1.2.tar.bz2 \
+        xproto-7.0.18.tar.bz2 \
+        xproxymanagementprotocol-1.0.3.tar.bz2
+
+build
+       prepare
+               # Extract all source tarballs.
+               for object in %{sources}; do
+                       %{MACRO_EXTRACT} %{DIR_DL}/${object}
+               done
+       end
+
+       build
+               for object in %{sources}; do
+                       cd %{DIR_SRC}/${object%*.tar.bz2}
+                       [ -e configure ] || ./autogen.sh
+                       ./configure %{configure_options}
+
+                       make %{PARALELLISMFLAGS}
+               done
+       end
+
+       install
+               for object in %{sources}; do
+                       cd %{DIR_SRC}/${object%*.tar.bz2}
+                       make install DESTDIR=%{BUILDROOT}
+               done
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index be83fcc3ce20ce85bb1f76693375fa9ea5648646..c46aa314d5dac938bf368de7e8807dee553894c7 100644 (file)
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-x11-server
-PKG_VER        = 1.8.2
-PKG_REL        = 3
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Server
-PKG_URL        = http://www.x.org
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 X server.
+name       = xorg-x11-server
+version    = 1.8.2
+release    = 3
 
-PKG_BUILD_DEPS+= audit-devel autoconf automake libcap libX11-devel libXau-devel \
-       libXdmcp-devel libXext-devel libXfixes-devel libXfont-devel libXmu-devel \
-       libXrender-devel libXres-devel libXt-devel libdrm-devel libfontenc-devel \
-       libpciaccess-devel libselinux-devel libtool libudev-devel libxcb-devel \
-       libxkbfile-devel mesa-devel openssl-devel pixman-devel pkg-config \
-       xorg-x11-font-utils-devel xorg-x11-util-macros xorg-x11-proto-devel \
-       xorg-x11-xtrans-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Server
+url        = http://www.x.org
+license    = MIT
+summary    = X.Org X11 X server.
 
-PKG_DEPS      += mesa pixman udev xkeyboard-config xorg-x11-fonts xorg-x11-font-utils \
-       xorg-x11-xkb-utils
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-PKG_DEPS-$(PKG_NAME)-devel += libpciaccess-devel pixman-devel
-
-define PKG_DESCRIPTION
-       X.org X11 is an open source implementation of the X Window System. \
-       It provides the basic low level functionality which full fledged \
-       graphical user interfaces (GUIs) such as GNOME and KDE are designed \
+description
+       X.org X11 is an open source implementation of the X Window System.
+       It provides the basic low level functionality which full fledged
+       graphical user interfaces (GUIs) such as GNOME and KDE are designed
        upon.
-endef
-
-PKG_TARBALL    = xorg-server-$(PKG_VER).tar.bz2
-
-CFLAGS        += -Wstrict-overflow -rdynamic
-
-QUALITY_AGENT_PERMIT_NOT_FULL_RELRO = yes
-
-DIR_APP        = $(DIR_SRC)/xorg-server-$(PKG_VER)
-
-CONFIGURE_OPTIONS += \
-       --enable-xvfb \
-       --enable-xsdl \
-       --enable-xfake \
-       --enable-xfbdev \
-       --enable-xorg \
-       --disable-static \
-       --disable-xnest \
-       --disable-xdmx \
-       --disable-xephyr \
-       --with-pic \
-       --enable-maintainer-mode \
-       --enable-xselinux \
-       --with-int10=x86emu \
-       --with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \
-       --with-module-dir=/usr/lib/xorg/modules \
-       --with-builderstring="Build ID: $(PKG_NAME) $(PKG_VER)-$(PKG_REL)" \
-       --with-os-name="$(hostname -s) $(uname -r)" \
-       --with-vendor-name="$(DISTRO_NAME) Project" \
-       --with-vendor-web="http://www.ipfire.org" \
-       --with-xkb-output=/var/lib/xkb \
-       --enable-install-libxf86config \
-       --localstatedir=/var \
-       --disable-screensaver \
-       --disable-config-dbus \
-       --disable-config-hal \
-       --enable-config-udev
-
-define STAGE_PREPARE_CMDS
-       cd $(DIR_APP) && autoreconf -vfi
-endef
-
-# Remove BIND_NOW flag from server modules to provide autoloading of them if needed
-# by the server itself.
-define STAGE_CONFIGURE_CMDS
-       cd $(DIR_APP) && sed -i \
-               -e "s/^CFLAGS.*/& -Wl,-z,lazy/" \
+end
+
+sources_dl = http://ftp.x.org/pub/individual/xserver/
+sources    = xorg-server-%{version}.tar.bz2
+
+build
+       requires
+               audit-devel
+               autoconf
+               automake
+               libcap
+               libX11-devel
+               libXau-devel
+               libXdmcp-devel
+               libXext-devel
+               libXfixes-devel
+               libXfont-devel
+               libXmu-devel
+               libXrender-devel
+               libXres-devel
+               libXt-devel
+               libdrm-devel
+               libfontenc-devel
+               libpciaccess-devel
+               libselinux-devel
+               libtool
+               libudev-devel
+               libxcb-devel
+               libxkbfile-devel
+               mesa-devel
+               openssl-devel
+               pixman-devel
+               pkg-config
+               xorg-x11-font-utils-devel
+               xorg-x11-util-macros
+               xorg-x11-proto-devel
+               xorg-x11-xtrans-devel
+       end
+
+       DIR_APP = %{DIR_SRC}/xorg-server-%{version}
+
+       CFLAGS += -Wstrict-overflow -rdynamic
+
+       configure_options += \
+               --enable-xvfb \
+               --enable-xsdl \
+               --enable-xfake \
+               --enable-xfbdev \
+               --enable-xorg \
+               --disable-static \
+               --disable-xnest \
+               --disable-xdmx \
+               --disable-xephyr \
+               --with-pic \
+               --enable-maintainer-mode \
+               --enable-xselinux \
+               --with-int10=x86emu \
+               --with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \
+               --with-module-dir=/usr/lib/xorg/modules \
+               --with-builderstring="Build ID: $(PKG_NAME) $(PKG_VER)-$(PKG_REL)" \
+               --with-os-name="$(hostname -s) $(uname -r)" \
+               --with-vendor-name="$(DISTRO_NAME) Project" \
+               --with-vendor-web="http://www.ipfire.org" \
+               --with-xkb-output=/var/lib/xkb \
+               --enable-install-libxf86config \
+               --localstatedir=/var \
+               --disable-screensaver \
+               --disable-config-dbus \
+               --disable-config-hal \
+               --enable-config-udev
+
+       prepare_cmds
+               autoreconf -vfi
+       end
+
+       configure_cmds
+               # Remove BIND_NOW flag from server modules to provide autoloading of them if needed
+               # by the server itself.
+               sed -i -e "s/^CFLAGS.*/& -Wl,-z,lazy/" \
                -e "s/^CCASFLAGS.*/& -Wl,-z,lazy/" \
-               \
-               hw/xfree86/dixmods/Makefile \
-               hw/xfree86/dixmods/extmod/Makefile \
-               hw/xfree86/dri/Makefile \
-               hw/xfree86/dri2/Makefile \
-               hw/xfree86/exa/Makefile \
-               hw/xfree86/fbdevhw/Makefile \
-               hw/xfree86/i2c/Makefile \
-               hw/xfree86/int10/Makefile \
-               hw/xfree86/shadowfb/Makefile \
-               hw/xfree86/vbe/Makefile \
-               hw/xfree86/vgahw/Makefile \
-               hw/xfree86/xaa/Makefile 
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) \
+                       \
+                       hw/xfree86/dixmods/Makefile \
+                       hw/xfree86/dixmods/extmod/Makefile \
+                       hw/xfree86/dri/Makefile \
+                       hw/xfree86/dri2/Makefile \
+                       hw/xfree86/exa/Makefile \
+                       hw/xfree86/fbdevhw/Makefile \
+                       hw/xfree86/i2c/Makefile \
+                       hw/xfree86/int10/Makefile \
+                       hw/xfree86/shadowfb/Makefile \
+                       hw/xfree86/vbe/Makefile \
+                       hw/xfree86/vgahw/Makefile \
+                       hw/xfree86/xaa/Makefile
+       end
+
+       make_install_targets += \
                moduledir=/usr/lib/xorg/modules
 
-       rm -vf $(BUILDROOT)/usr/lib/xorg/modules/libxf8_16bpp.so
-       rm -vrf $(BUILDROOT)/var/log
-
-       -mkdir -pv $(BUILDROOT)/etc/X11/xorg.conf.d $(BUILDROOT)/usr/share/xorg
-       cd $(DIR_APP) && install -m 0444 hw/xfree86/common/{vesa,extra}modes \
-               $(BUILDROOT)/usr/share/xorg/
-       cd $(DIR_APP) && install -m 644 $(DIR_SOURCE)/10-quirks.conf \
-               $(BUILDROOT)/usr/share/X11/xorg.conf.d
-endef
-
-define STAGE_INSTALL_POST
-       # Capabilities
-       chmod u-s $(BUILDROOT)/usr/bin/Xorg
-       setcap cap_chown,cap_dac_override,cap_sys_rawio,cap_sys_admin+ep \
-               $(BUILDROOT)/usr/bin/Xorg
-endef
+       install_cmds
+               rm -vf $(BUILDROOT)/usr/lib/xorg/modules/libxf8_16bpp.so
+               rm -vrf $(BUILDROOT)/var/log
+
+               mkdir -pv %{BUILDROOT}/etc/X11/xorg.conf.d %{BUILDROOT}/usr/share/xorg
+               install -m 0444 hw/xfree86/common/{vesa,extra}modes %{BUILDROOT}/usr/share/xorg/
+               install -m 644 %{DIR_SOURCE}/10-quirks.conf %{BUILDROOT}/usr/share/X11/xorg.conf.d
+       end
+end
+
+quality-agent
+       permit_not_full_relro = yes
+end
+
+packages
+       package %{name}
+               requires
+                       mesa
+                       pixman
+                       udev
+                       xkeyboard-config
+                       xorg-x11-fonts
+                       xorg-x11-font-utils
+                       xorg-x11-xkb-utils
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       
+               requires
+                       libpciaccess-devel
+                       pixman-devel
+               end
+       end
+end
index ea54e2545c0ff0a7c8ddfff2b8306ad45ba45857..20f170ebc80cd21b1a63180cbd659d19af712985 100644 (file)
@@ -1,52 +1,42 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
+name       = xorg-x11-util-macros
+version    = 1.10.0
+release    = 1
+arch       = noarch
 
-include $(PKGROOT)/Include
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 Autotools macros.
 
-PKG_NAME       = xorg-x11-util-macros
-PKG_VER        = 1.10.0
-PKG_REL        = 1
-PKG_ARCH       = noarch
+description
+       X.Org X11 autotools macros required for building the various
+       packages that comprise the X Window System.
+end
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 Autotools macros. 
+source_dl = http://ftp.x.org/pub/individual/util/
 
-PKG_BUILD_DEPS+= pkg-config
+sources   = util-macros-%{version}.tar.bz2
 
-define PKG_DESCRIPTION
-       X.Org X11 autotools macros required for building the various \
-       packages that comprise the X Window System.
-endef
+build
+       requires
+               pkg-config
+       end
 
-PKG_TARBALL    = util-macros-$(PKG_VER).tar.bz2
+       DIR_APP = %{DIR_SRC}/util-macros-%{version}
 
-DIR_APP = $(DIR_SRC)/util-macros-$(PKG_VER)
+       configure_options += \
+               --disable-static
 
-CONFIGURE_OPTIONS += \
-       --disable-static
+       make_install_target += \
+               INSTALL="install -p"
+end
 
-INSTALL_TARGET += INSTALL="install -p" 
+packages
+       package %{name}
+end
index 49fa11ee4d6a4034e97b24324cb19142e6436858..b73bd2dd0957ffb92fde6aeef3219255888530e3 100644 (file)
@@ -1,43 +1,32 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name       = xinit
+version    = 1.2.1
+release    = 1
 
-PKG_NAME       = xinit
-PKG_VER        = 1.2.1
-PKG_REL        = 0
+groups     = X/Server
+url        = http://www.x.org
+license    = MIT
+summary    = X.Org X11 X Window System xinit startup scripts.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = X/Server
-PKG_URL        = http://www.x.org
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 X Window System xinit startup scripts.
+description
+       X.Org X11 X Window System xinit startup scripts.
+end
 
-PKG_BUILD_DEPS+= autoconf automake libX11-devel pkg-config
+source_dl = http://ftp.x.org/pub/individual/app/
 
-define PKG_DESCRIPTION
-       X.Org X11 X Window System xinit startup scripts.
-endef
+build
+       requires
+               autoconf
+               automake
+               libX11-devel
+               pkg-config
+       end
+end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+packages
+       package %{name}
+end
index 4063c53ff8dcaa9d23bb4ade16403cc765ddce89..25abfb7c98244e4201fe8fb54049b8795749fb72 100644 (file)
@@ -1,84 +1,68 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-x11-xkb-utils
-PKG_VER        = 7.4
-PKG_REL        = 1
-
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Fonts
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X.Org X11 xkb utilities.
+name       = xorg-x11-xkb-utils
+version    = 7.4
+release    = 1
 
-PKG_BUILD_DEPS+= bison libICE-devel libSM-devel libX11-devel libXaw-devel \
-       libXmu-devel libXt-devel libxkbfile-devel pkg-config xorg-x11-proto-devel
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Fonts
+url        = http://www.x.org/
+license    = MIT
+summary    = X.Org X11 xkb utilities.
 
-define PKG_DESCRIPTION
+description
        X.Org X11 xkb utilities.
-endef
-
-CFLAGS        += -DHAVE_STRCASECMP
-
-SRC_PACKAGES = \
-       xkbcomp-1.1.1 \
-       xkbutils-1.0.3 \
-       xkbevd-1.1.1 \
-       xkbprint-1.0.1 \
-       setxkbmap-1.2.0
-
-PKG_OBJECTS += $(foreach package,$(SRC_PACKAGES),$(package).tar.bz2)
-
-define STAGE_PREPARE
-       for object in $(PKG_OBJECTS); do \
-               cd $(DIR_SRC) && $(DO_EXTRACT) $(DIR_DL)/$${object}; \
-       done
-endef
-
-define MACRO_BUILD
-       cd $(DIR_SRC)/$(1) && rm -vf xkbparse.c # force regen
-       cd $(DIR_SRC)/$(1) && \
-               ./configure \
-                       --prefix=/usr
-
-       cd $(DIR_SRC)/$(1) && make $(PARALLELISMFLAGS)
-
-endef
-
-STAGE_BUILD = $(foreach package,$(SRC_PACKAGES),$(call MACRO_BUILD,$(package)))
-
-define MACRO_INSTALL
-       cd $(DIR_SRC)/$(1) && make install DESTDIR=$(BUILDROOT)
-
-endef
-
-define STAGE_INSTALL
-       $(foreach package,$(SRC_PACKAGES),$(call MACRO_INSTALL,$(package)))
-
-       mv $(BUILDROOT)/usr/man* $(BUILDROOT)/usr/share/man
-endef
-
-
+end
+
+configure_options += \
+       --mandir=/usr/share/man
+
+CFLAGS += -DHAVE_STRCASECMP
+
+source_dl = http://ftp.x.org/pub/individual/app/
+sources = \
+       xkbcomp-1.1.1.tar.bz2 \
+       xkbutils-1.0.3.tar.bz2 \
+       xkbevd-1.1.1.tar.bz2 \
+       xkbprint-1.0.1.tar.bz2 \
+       setxkbmap-1.2.0.tar.bz2
+
+build
+       requires
+               bison
+               libICE-devel
+               libSM-devel
+               libX11-devel
+               libXaw-devel
+               libXmu-devel
+               libXt-devel
+               libxkbfile-devel
+               pkg-config
+               xorg-x11-proto-devel
+       end
+
+       build
+               for object in %{sources}; do
+                       cd %{DIR_SRC}/${object%*.tar.bz2}
+                       rm -vf xkbparse.c # force regen
+                       ./configure %{configure_options}
+
+                       make %{PARALELLISMFLAGS}
+               done
+       end
+
+       install
+               for object in %{sources}; do
+                       cd %{DIR_SRC}/${object%*.tar.bz2}
+                       make install DESTDIR=%{BUILDROOT}
+               done
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 1cad0bfb75ef102c564560bf48c76fa2afb07b34..2d330c70271f47da00f7664e15f03e6184babe4d 100644 (file)
@@ -1,47 +1,33 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xorg-xtrans
-PKG_VER        = 1.2.5
-PKG_REL        = 1
-PKG_ARCH       = noarch
+name       = xorg-xtrans
+version    = 1.2.5
+release    = 1
+arch       = noarch
 
-PKG_MAINTAINER = Stefan Schantl <stefan.schantl@ipfire.org>
-PKG_GROUPS     = X/Libraries
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = X11 transport library.
+maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
+groups     = X/Libraries
+url        = http://www.x.org/
+license    = MIT
+summary    = X11 transport library.
 
-PKG_BUILD_DEPS+= pkg-config 
+description
+       Transprot library for X.org X11 protocol.
+end
 
-define PKG_DESCRIPTION
-       Transprot library for X.org X11 protocol. 
-endef
+sources  = xtrans-%{version}.tar.bz2
 
-PKG_TARBALL    = xtrans-$(PKG_VER).tar.bz2
+build
+       requires
+               pkg-config
+       end
 
-DIR_APP = $(DIR_SRC)/xtrans-$(PKG_VER)
+       DIR_APP = %{DIR_SRC}/xtrans-%{version}
+end
 
+packages
+       package %{name}
+end
index 651090cb524154c5abfbf4dfec7a8d31d2e079ee..1ce8c6a831cc6ebabe6b8ee62a5361c2fc28215b 100644 (file)
@@ -1,49 +1,40 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xrandr
-PKG_VER        = 1.3.3
-PKG_REL        = 0
+name       = xrandr
+version    = 1.3.3
+release    = 1
 
-PKG_MAINTAINER = 
-PKG_GROUPS     = X/Tools
-PKG_URL        = http://www.x.org/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Primitive command line interface to RandR extension.
+groups     = X/Tools
+url        = http://www.x.org/
+license    = MIT
+summary    = Primitive command line interface to RandR extension.
 
-PKG_BUILD_DEPS+= libX11-devel libXrandr-devel libXrender-devel pkg-config
-
-define PKG_DESCRIPTION
+description
        Xrandr is used to set the screen size, orientation and/or \
        reflection using the RandR extension.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.bz2
-
-# Remove xkeystone, it has a bad interpreter and we don't need it.
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/usr/bin/xkeystone
-endef
+end
+
+source_dl = http://ftp.x.org/pub/individual/app
+sources   = %{thisapp}.tar.bz2
+
+build
+       requires
+               libX11-devel
+               libXrandr-devel
+               libXrender-devel
+               pkg-config
+       end
+
+       install_cmds
+               # Remove xkeystone, it has a bad interpreter and we don't need it.
+               rm -vf %{BUILDROOT}/usr/bin/xkeystone
+       end
+end
+
+packages
+       package %{name}
+       end
+end
index 8bb516f6112228881e551bc1f58e146b9ef8367b..7ed670822948449d99c4d23306dfdf9134f5c882 100644 (file)
@@ -1,57 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xterm
-PKG_VER        = 262
-PKG_REL        = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS     = X/Application
-PKG_URL        = http://invisible-island.net/xterm/
-PKG_LICENSE    = MIT
-PKG_SUMMARY    = Terminal emulator for the X Window System.
+name       = xterm
+version    = 262
+release    = 1
 
-PKG_BUILD_DEPS+= libXft-devel libXaw-devel libXext-devel libxkbfile-devel \
-       pkg-config
-PKG_DEPS      += xorg-x11-server
+groups     = X/Application
+url        = http://invisible-island.net/xterm/
+license    = MIT
+summary    = Terminal emulator for the X Window System.
 
-define PKG_DESCRIPTION
+description
        The xterm program is a terminal emulator for the X Window System. It \
        provides DEC VT102 and Tektronix 4014 compatible terminals for \
        programs that can't use the window system directly.
-endef
-
-PKG_TARBALL    = $(THISAPP).tgz
-
-CONFIGURE_OPTIONS += \
-       --mandir=/usr/share/man \
-       --enable-256-color \
-       --enable-exec-xterm \
-       --enable-luit \
-       --enable-warnings \
-       --enable-wide-chars \
-       --with-tty-group=tty \
-       --disable-full-tgetent
+end
+
+source_dl = ftp://invisible-island.net/xterm/
+
+sources   = %{thisapp}.tgz
+
+build
+       requires
+               libSM-devel
+               libXft-devel
+               libXaw-devel
+               libXext-devel
+               libxkbfile-devel
+               ncurses-devel
+               pkg-config
+       end
+
+       configure_options += \
+               --mandir=/usr/share/man \
+               --enable-256-color \
+               --enable-exec-xterm \
+               --enable-luit \
+               --enable-warnings \
+               --enable-wide-chars \
+               --with-tty-group=tty \
+               --disable-full-tgetent
+end
+
+packages
+       package %{name}
+               requires = xorg-x11-server
+       end
+end
index bed3f2f58e9cd12726a985fe59f494a91f51b14f..83af5ad7cfbcc25e4b8f63143c0461d4feb0124d 100644 (file)
@@ -1,47 +1,36 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = xz
-PKG_VER        = 5.0.3
-PKG_REL        = 1
+name       = xz
+version    = 5.0.3
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Compression
-PKG_URL        = http://tukaani.org/xz/
-PKG_LICENSE    = GPLv2+
-PKG_SUMMARY    = LZMA Utils.
+groups     = Build Applications/Compression
+url        = http://tukaani.org/xz/
+license    = GPLv2+
+summary    = LZMA Utils.
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel $(PKG_NAME_REAL)-libs
-
-define PKG_DESCRIPTION
+description
        LZMA provides very high compression ratio and fast decompression. The \
        core of the LZMA utils is Igor Pavlov's LZMA SDK containing the actual \
        LZMA encoder/decoder. LZMA utils add a few scripts which provide \
        gzip-like command line interface and a couple of other LZMA related \
        tools.
-endef
+end
+
+source_url = http://tukaani.org/xz/
+sources    = %{thisapp}.tar.xz
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.xz
+       package %{name}-libs
+               template LIBS
+       end
+end
index a007d14066626ddfaa78a43d8487dc82da6d1d4a..dc21ca82c119b105669a1df99cd692c51b1ae310 100644 (file)
@@ -1,42 +1,19 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt                 #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = zerofree
-PKG_VER        = 1.0.1
-PKG_REL        = 1
+name       = zerofree
+version    = 1.0.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Filesystem/Tools
-PKG_URL        = http://intgat.tigress.co.uk/rmy/uml/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Utility to force unused ext2 inodes and blocks to zero.
+maintainer =
+groups     = Filesystem/Tools
+url        = http://intgat.tigress.co.uk/rmy/uml/
+license    = GPL+
+summary    = Utility to force unused ext2 inodes and blocks to zero.
 
-PKG_BUILD_DEPS+= e2fsprogs-devel
-
-define PKG_DESCRIPTION
+description
        zerofree is a utility to set unused filesystem inodes and blocks of an
        ext2 filesystem to zero.  This can improve the compressibility and
        privacy of an ext2 filesystem.
@@ -47,17 +24,27 @@ define PKG_DESCRIPTION
        WARNING: The filesystem to be processed should be unmounted or mounted
        read-only. The tool tries to check this before running, but you
        should be careful.
-endef
-
-PKG_TARBALL    = $(THISAPP).tgz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) \
-               CC="gcc $(CFLAGS)"
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       cd $(DIR_APP) && install -D -p -m 755 zerofree \
-               $(BUILDROOT)/usr/sbin
-endef
+end
+
+source_dl  = http://intgat.tigress.co.uk/rmy/uml/
+sources    = %{thisapp}.tgz
+
+build
+       requires
+               e2fsprogs-devel
+       end
+
+       build
+               make %{PARALLELISMFLAGS} CC="gcc %{CFLAGS}"
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/sbin
+               install -D -p -m 755 zerofree %{BUILDROOT}/usr/sbin
+       end
+end
+
+packages
+       package zerofree
+       end
+end
index 20688c580a9eacc2f803bfdd1716b3a0a139f058..f1611f4358224b569801510f88239cd676b56bd8 100644 (file)
@@ -1,67 +1,51 @@
 ###############################################################################
-#                                                                             #
-# IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
-#                                                                             #
-# This program is free software: you can redistribute it and/or modify        #
-# it under the terms of the GNU General Public License as published by        #
-# the Free Software Foundation, either version 3 of the License, or           #
-# (at your option) any later version.                                         #
-#                                                                             #
-# This program is distributed in the hope that it will be useful,             #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
-# GNU General Public License for more details.                                #
-#                                                                             #
-# You should have received a copy of the GNU General Public License           #
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
-#                                                                             #
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME       = zlib
-PKG_VER        = 1.2.5
-PKG_REL        = 0
+name       = zlib
+version    = 1.2.5
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://www.gzip.org/zlib/
-PKG_LICENSE    = zlib
-PKG_SUMMARY    = The zlib compression and decompression library.
+groups     = System/Libraries
+url        = http://www.gzip.org/zlib/
+license    = zlib
+summary    = The zlib compression and decompression library.
 
-define PKG_DESCRIPTION
-       Zlib is a general-purpose, patent-free, lossless data compression \
+description
+       Zlib is a general-purpose, patent-free, lossless data compression
        library which is used by many different programs.
-endef
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CFLAGS        += -fPIC -DPIC
-
-CONFIGURE_ENVIRONMENT += ac_cv_func_working_mktime=yes
-
-CONFIGURE_OPTIONS = \
-       --prefix=/usr \
-       --libdir=/lib
-
-PARALLELISMFLAGS = # No parallelism
-
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/{include,lib}
-       cd $(DIR_APP) && cp -pfv zconf.h zlib.h $(BUILDROOT)/usr/include
-       rm -vf $(BUILDROOT)/lib/libz.so
-       ln -sfv ../../lib/libz.so.$(PKG_VER) $(BUILDROOT)/usr/lib/libz.so
-
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
-endef
+end
+
+source_dl  = http://zlib.net/
+
+# Enable PIC build.
+CFLAGS    += -fPIC -DPIC
+
+build
+       configure_options = \
+               --prefix=/usr \
+               --libdir=/lib
+
+       test
+               make check
+       end
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/{include,lib}
+               cp -pfv zconf.h zlib.h %{BUILDROOT}/usr/include
+               rm -vf %{BUILDROOT}/lib/libz.so
+               ln -sfv ../../lib/libz.so.%{version} %{BUILDROOT}/usr/lib/libz.so
+
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end