From 802ea3af55e3167b6574e23b230cdbf0ed2ae0db Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 25 Sep 2011 11:41:57 +0200 Subject: [PATCH] Change file layout of the makefiles. --- config/ipfire-3-i686.conf | 3 + pkgs/X11vnc/X11vnc.nm | 102 +- pkgs/acl/acl.nm | 111 +- pkgs/acpid/acpid.nm | 83 +- pkgs/aiccu/aiccu.nm | 77 +- pkgs/attr/attr.nm | 105 +- pkgs/audit/audit.nm | 114 +- pkgs/authconfig/authconfig.nm | 125 +- pkgs/autoconf/autoconf.nm | 65 +- pkgs/autogen/autogen.nm | 60 +- pkgs/automake/automake.nm | 65 +- pkgs/avahi/avahi.nm | 106 +- pkgs/basesystem/basesystem.nm | 107 +- pkgs/bash/bash.nm | 137 +- pkgs/bc/bc.nm | 83 +- pkgs/beep/beep.nm | 73 +- pkgs/bind/bind.nm | 88 +- pkgs/binutils/binutils.nm | 152 +- pkgs/bird/bird.nm | 117 +- pkgs/bison/bison.nm | 99 +- pkgs/boost/boost.nm | 148 +- pkgs/br2684ctl/br2684ctl.nm | 89 +- pkgs/bridge-utils/bridge-utils.nm | 76 +- pkgs/btrfs-progs/btrfs-progs.nm | 92 +- pkgs/build-essentials/build-essentials.nm | 69 - .../buildsystem-tools/chroot-shell | 24 - .../buildsystem-tools/cleanup | 7 - .../buildsystem-tools/common-functions | 14 - .../buildsystem-tools/dependency-tracker | 27 - .../buildsystem-tools/functions-common | 14 - .../buildsystem-tools/functions-constants | 21 - .../buildsystem-tools/functions-directories | 32 - .../buildsystem-tools/functions-files | 195 -- .../buildsystem-tools/functions-lists | 31 - .../buildsystem-tools/functions-logging | 12 - .../buildsystem-tools/functions-packager-find | 237 -- pkgs/build-essentials/buildsystem-tools/patch | 18 - .../buildsystem-tools/perl.prov | 199 -- .../buildsystem-tools/perl.req | 249 -- .../buildsystem-tools/pkg-config.prov | 22 - .../buildsystem-tools/pkg-config.req | 11 - .../buildsystem-tools/py-compile | 48 - .../buildsystem-tools/stripper | 31 - pkgs/build-essentials/buildsystem.sh | 8 - pkgs/build-essentials/buildsystem/Constants | 174 -- pkgs/build-essentials/buildsystem/Functions | 204 -- pkgs/build-essentials/buildsystem/Include | 26 - pkgs/build-essentials/buildsystem/Targets | 62 - pkgs/build-essentials/buildsystem/Templates | 59 - pkgs/build-essentials/buildsystem/__gmsl | 854 ------ pkgs/build-essentials/buildsystem/gmsl | 89 - .../quality-agent/quality-agent | 12 - .../quality-agent.d/001-include-files | 16 - .../quality-agent.d/001-remove-info-files | 17 - .../quality-agent.d/001-remove-static-libs | 24 - .../quality-agent.d/001-unsafe-files | 33 - .../quality-agent.d/002-bad-symlinks | 39 - .../quality-agent.d/003-libs-location | 23 - .../quality-agent/quality-agent.d/050-canary | 28 - .../quality-agent.d/050-execstacks | 22 - .../quality-agent.d/050-invalid-interpreters | 44 - .../quality-agent.d/050-libs-needed | 31 - .../quality-agent.d/050-libs-soname | 35 - .../quality-agent/quality-agent.d/050-nx | 25 - .../quality-agent/quality-agent.d/050-relro | 35 - .../quality-agent.d/050-root-links-to-usr | 31 - .../quality-agent/quality-agent.d/050-rpaths | 36 - .../quality-agent.d/090-man-pages | 17 - .../quality-agent.d/090-python-hardlinks | 20 - .../quality-agent.d/090-remove-empty-dirs | 18 - .../quality-agent.d/095-directory-layout | 28 - .../quality-agent/quality-agent.d/qa-include | 90 - pkgs/bwm-ng/bwm-ng.nm | 57 +- pkgs/bzip2/bzip2.nm | 125 +- pkgs/c_icap/c_icap.nm | 94 +- pkgs/c_icap_modules/c_icap_modules.nm | 92 +- pkgs/cairo/cairo.nm | 85 +- pkgs/ccache/ccache.nm | 113 +- pkgs/chrony/chrony.nm | 140 +- pkgs/chrpath/chrpath.nm | 63 +- pkgs/clamav/clamav.nm | 131 +- pkgs/cloog-ppl/cloog-ppl.nm | 94 +- pkgs/cmake/cmake.nm | 99 +- pkgs/coreutils/coreutils.nm | 130 +- pkgs/cpio/cpio.nm | 74 +- pkgs/cpufrequtils/cpufrequtils.nm | 74 +- pkgs/cracklib/cracklib.nm | 146 +- pkgs/crda/crda.nm | 90 +- pkgs/cronie/cronie.nm | 67 +- pkgs/cryptsetup-luks/cryptsetup-luks.nm | 85 +- pkgs/cups/cups.nm | 157 +- pkgs/curl/curl.nm | 131 +- pkgs/cyrus-sasl/cyrus-sasl.nm | 103 +- pkgs/dansguardian/dansguardian.nm | 96 +- pkgs/db4/db4.nm | 103 +- pkgs/dbus-glib/dbus-glib.nm | 108 +- pkgs/dbus/dbus.nm | 111 +- pkgs/dejagnu/dejagnu.nm | 95 +- pkgs/dhcp/dhcp.nm | 105 +- pkgs/dhcping/dhcping.nm | 57 +- pkgs/diffutils/diffutils.nm | 62 +- pkgs/directfb/directfb.nm | 89 +- pkgs/dmidecode/dmidecode.nm | 62 +- pkgs/dmraid/dmraid.nm | 116 +- pkgs/dos2unix/dos2unix.nm | 73 +- pkgs/dosfstools/dosfstools.nm | 70 +- pkgs/dracut/dracut.nm | 206 +- pkgs/dvdrtools/dvdrtools.nm | 66 +- pkgs/e2fsprogs/e2fsprogs.nm | 148 +- pkgs/ebtables/ebtables.nm | 85 +- pkgs/ed/ed.nm | 71 +- pkgs/eggdbus/eggdbus.nm | 79 +- pkgs/eject/eject.nm | 66 +- pkgs/elfutils/elfutils.nm | 118 +- pkgs/elinks/elinks.nm | 75 +- pkgs/etherwake/etherwake.nm | 67 +- pkgs/ethtool/ethtool.nm | 57 +- pkgs/expat/expat.nm | 79 +- pkgs/expect/expect.nm | 104 +- pkgs/ez-ipupdate/ez-ipupdate.nm | 61 +- pkgs/fail2ban/fail2ban.nm | 81 +- pkgs/file/file.nm | 72 +- pkgs/filesystem/filesystem.nm | 181 +- pkgs/findutils/findutils.nm | 81 +- pkgs/firewall/firewall.nm | 90 +- pkgs/flex/flex.nm | 98 +- pkgs/fontconfig/fontconfig.nm | 82 +- pkgs/freeradius/freeradius.nm | 100 +- pkgs/freetype/freetype.nm | 69 +- pkgs/fuse-sshfs/fuse-sshfs.nm | 73 +- pkgs/fuse/fuse.nm | 89 +- pkgs/gawk/gawk.nm | 102 +- pkgs/gcc/gcc.nm | 500 ++-- pkgs/gdb/gdb.nm | 80 +- pkgs/gdbm/gdbm.nm | 85 +- pkgs/gettext/gettext.nm | 87 +- pkgs/ghostscript/ghostscript.nm | 57 +- pkgs/git/git.nm | 112 +- pkgs/glib2/glib2.nm | 104 +- pkgs/glibc/glibc.nm | 670 ++--- pkgs/gmp/gmp.nm | 92 +- pkgs/gnupg2/gnupg2.nm | 77 +- pkgs/gnutls/gnutls.nm | 92 +- .../gobject-introspection.nm | 96 +- pkgs/gperf/gperf.nm | 61 +- pkgs/grep/grep.nm | 70 +- pkgs/groff/groff.nm | 127 +- pkgs/grub/grub.nm | 144 +- pkgs/gssdp/gssdp.nm | 69 +- pkgs/guile/guile.nm | 83 +- pkgs/gupnp-av/gupnp-av.nm | 74 +- pkgs/gupnp-igd/gupnp-igd.nm | 75 +- pkgs/gupnp/gupnp.nm | 80 +- pkgs/gzip/gzip.nm | 80 +- pkgs/hdparm/hdparm.nm | 66 +- pkgs/help2man/help2man.nm | 61 +- pkgs/hostapd/hostapd.nm | 92 +- pkgs/hplip/hplip.nm | 78 +- pkgs/htop/htop.nm | 69 +- pkgs/hwdata/hwdata.nm | 68 +- pkgs/iana-etc/iana-etc.nm | 57 +- pkgs/icecream/icecream.nm | 105 +- pkgs/iftop/iftop.nm | 73 +- pkgs/igmpproxy/igmpproxy.nm | 57 +- pkgs/initscripts/initscripts.nm | 144 +- pkgs/intltool/intltool.nm | 74 +- pkgs/iproute2/iproute2.nm | 89 +- pkgs/iptables/iptables.nm | 147 +- pkgs/iputils/iputils.nm | 117 +- .../iscsi-initiator-utils.nm | 182 +- pkgs/iw/iw.nm | 73 +- pkgs/joe/joe.nm | 63 +- pkgs/jwhois/jwhois.nm | 90 +- pkgs/kbd/kbd.nm | 82 +- pkgs/kernel/kernel.nm | 194 +- pkgs/l7-protocols/l7-protocols.nm | 65 +- pkgs/ldapvi/ldapvi.nm | 89 +- pkgs/less/less.nm | 78 +- pkgs/libICE/libICE.nm | 77 +- pkgs/libSM/libSM.nm | 79 +- pkgs/libVNCServer/libVNCServer.nm | 81 +- pkgs/libX11/libX11.nm | 78 +- pkgs/libXau/libXau.nm | 82 +- pkgs/libXaw/libXaw.nm | 84 +- pkgs/libXdamage/libXdamage.nm | 78 +- pkgs/libXdmcp/libXdmcp.nm | 76 +- pkgs/libXext/libXext.nm | 77 +- pkgs/libXfixes/libXfixes.nm | 77 +- pkgs/libXfont/libXfont.nm | 81 +- pkgs/libXft/libXft.nm | 80 +- pkgs/libXi/libXi.nm | 80 +- pkgs/libXmu/libXmu.nm | 83 +- pkgs/libXpm/libXpm.nm | 84 +- pkgs/libXrandr/libXrandr.nm | 80 +- pkgs/libXrender/libXrender.nm | 77 +- pkgs/libXres/libXres.nm | 85 +- pkgs/libXt/libXt.nm | 84 +- pkgs/libXtst/libXtst.nm | 80 +- pkgs/libXv/libXv.nm | 78 +- pkgs/libXvMC/libXvMC.nm | 80 +- pkgs/libXxf86vm/libXxf86vm.nm | 78 +- pkgs/libaal/libaal.nm | 89 +- pkgs/libaio/libaio.nm | 92 +- pkgs/libarchive/libarchive.nm | 100 +- pkgs/libart/libart.nm | 56 +- pkgs/libassuan/libassuan.nm | 80 +- pkgs/libatasmart/libatasmart.nm | 91 +- pkgs/libcap-ng/libcap-ng.nm | 80 +- pkgs/libcap/libcap.nm | 103 +- pkgs/libcgroup/libcgroup.nm | 109 +- pkgs/libdaemon/libdaemon.nm | 69 +- pkgs/libdnet/libdnet.nm | 76 +- pkgs/libdrm/libdrm.nm | 108 +- pkgs/libedit/libedit.nm | 91 +- pkgs/libevent/libevent.nm | 71 +- pkgs/libffi/libffi.nm | 63 +- pkgs/libfontenc/libfontenc.nm | 76 +- pkgs/libgcrypt/libgcrypt.nm | 91 +- pkgs/libgpg-error/libgpg-error.nm | 86 +- pkgs/libgssglue/libgssglue.nm | 55 +- pkgs/libidn/libidn.nm | 97 +- pkgs/libjpeg/libjpeg.nm | 98 +- pkgs/libksba/libksba.nm | 68 +- pkgs/libmng/libmng.nm | 94 +- pkgs/libmpc/libmpc.nm | 84 +- pkgs/libnet/libnet.nm | 61 +- .../libnetfilter_conntrack.nm | 69 +- pkgs/libnetfilter_log/libnetfilter_log.nm | 69 +- pkgs/libnetfilter_queue/libnetfilter_queue.nm | 69 +- pkgs/libnfnetlink/libnfnetlink.nm | 56 +- pkgs/libnfsidmap/libnfsidmap.nm | 91 +- pkgs/libnl/libnl.nm | 82 +- pkgs/libpcap/libpcap.nm | 79 +- pkgs/libpciaccess/libpciaccess.nm | 69 +- pkgs/libpipeline/libpipeline.nm | 55 +- pkgs/libpng/libpng.nm | 73 +- pkgs/librpcsecgss/librpcsecgss.nm | 70 +- pkgs/libselinux/libselinux.nm | 175 +- pkgs/libsemanage/libsemanage.nm | 107 +- pkgs/libsepol/libsepol.nm | 80 +- pkgs/libsigc++/libsigc++.nm | 76 +- pkgs/libsolv/libsolv.nm | 124 +- pkgs/libsoup/libsoup.nm | 84 +- pkgs/libssh2/libssh2.nm | 84 +- pkgs/libtasn1/libtasn1.nm | 67 +- pkgs/libtiff/libtiff.nm | 81 +- pkgs/libtool/libtool.nm | 78 +- pkgs/libtorrent/libtorrent.nm | 76 +- pkgs/libusb-compat/libusb-compat.nm | 100 +- pkgs/libusb/libusb.nm | 67 +- pkgs/libuser/libuser.nm | 96 +- pkgs/libvirt/libvirt.nm | 160 +- pkgs/libxcb/libxcb.nm | 96 +- pkgs/libxkbfile/libxkbfile.nm | 70 +- pkgs/libxml2/libxml2.nm | 68 +- pkgs/libxslt/libxslt.nm | 71 +- pkgs/libyaml/libyaml.nm | 74 +- pkgs/lighttpd/lighttpd.nm | 101 +- pkgs/linux-atm/linux-atm.nm | 96 +- pkgs/linux-firmware/linux-firmware.nm | 66 +- pkgs/lldpd/lldpd.nm | 73 +- pkgs/lm-sensors/lm-sensors.nm | 86 +- pkgs/logrotate/logrotate.nm | 103 +- pkgs/lsof/lsof.nm | 85 +- pkgs/lua/lua.nm | 104 +- pkgs/lvm2/lvm2.nm | 110 +- pkgs/lzo/lzo.nm | 73 +- pkgs/m4/m4.nm | 70 +- pkgs/mailcap/mailcap.nm | 80 +- pkgs/make/make.nm | 79 +- pkgs/man-db/man-db.nm | 106 +- pkgs/man-pages/man-pages.nm | 65 +- pkgs/mc/mc.nm | 105 +- pkgs/mdadm/mdadm.nm | 96 +- pkgs/memtest86+/memtest86+.nm | 80 +- pkgs/mesa/mesa.nm | 114 +- pkgs/minicom/minicom.nm | 80 +- pkgs/module-init-tools/module-init-tools.nm | 92 +- pkgs/mpfr/mpfr.nm | 99 +- pkgs/multipath-tools/multipath-tools.nm | 85 +- pkgs/nano/nano.nm | 85 +- pkgs/nasm/nasm.nm | 65 +- pkgs/ncurses/ncurses.nm | 243 +- pkgs/net-snmp/net-snmp.nm | 113 +- pkgs/net-tools/net-tools.nm | 303 ++- pkgs/netplug/netplug.nm | 80 +- pkgs/nettle/nettle.nm | 85 +- pkgs/network/network.nm | 103 +- pkgs/newt/newt.nm | 106 +- pkgs/nfs-utils/nfs-utils.nm | 111 +- pkgs/nmap/nmap.nm | 83 +- pkgs/noip/noip.nm | 72 +- pkgs/nspr/nspr.nm | 195 +- pkgs/nss-myhostname/nss-myhostname.nm | 68 +- pkgs/nss-softokn/nss-softokn.nm | 245 +- pkgs/nss-util/nss-util.nm | 201 +- pkgs/nss/nss.nm | 426 +-- pkgs/nss_ldap/nss_ldap.nm | 158 +- pkgs/openl2tp/openl2tp.nm | 104 +- pkgs/openldap/openldap.nm | 160 +- pkgs/openssh/openssh.nm | 241 +- pkgs/openssl/openssl.nm | 151 +- pkgs/openvpn/openvpn.nm | 121 +- pkgs/os-prober/os-prober.nm | 95 +- pkgs/p11-kit/p11-kit.nm | 61 +- pkgs/pakfire/pakfire.nm | 115 +- pkgs/pam/pam.nm | 121 +- pkgs/pam_ldap/pam_ldap.nm | 156 +- pkgs/pango/pango.nm | 87 +- pkgs/parted/parted.nm | 104 +- pkgs/passwd/passwd.nm | 87 +- pkgs/patch/patch.nm | 74 +- pkgs/pax-utils/pax-utils.nm | 63 +- pkgs/paxctl/paxctl.nm | 64 +- pkgs/paxtest/paxtest.nm | 78 +- pkgs/pcapy/pcapy.nm | 78 +- pkgs/pciutils/pciutils.nm | 102 +- pkgs/pcre/pcre.nm | 101 +- pkgs/pdns-recursor/pdns-recursor.nm | 95 +- pkgs/pdns/pdns.nm | 117 +- pkgs/perl-HTML-Parser/perl-HTML-Parser.nm | 77 +- pkgs/perl-HTML-Tagset/perl-HTML-Tagset.nm | 76 +- pkgs/perl-Test-Simple/perl-Test-Simple.nm | 84 +- pkgs/perl-URI/perl-URI.nm | 72 +- pkgs/perl-XML-Parser/perl-XML-Parser.nm | 88 +- pkgs/perl-libwww-perl/perl-libwww-perl.nm | 110 +- pkgs/perl/perl.nm | 2334 +++++++++-------- pkgs/pinentry/pinentry.nm | 81 +- pkgs/pixman/pixman.nm | 68 +- pkgs/pkg-config/pkg-config.nm | 86 +- pkgs/polkit/polkit.nm | 101 +- pkgs/popt/popt.nm | 75 +- pkgs/powertop/powertop.nm | 59 +- pkgs/ppl/ppl.nm | 120 +- pkgs/ppp/ppp.nm | 129 +- pkgs/pptp/pptp.nm | 93 +- pkgs/procps/procps.nm | 75 +- pkgs/psmisc/psmisc.nm | 77 +- pkgs/pth/pth.nm | 87 +- pkgs/pyQt/pyQt.nm | 113 +- pkgs/pychecker/pychecker.nm | 74 +- pkgs/pyfire/pyfire.nm | 67 +- pkgs/pygobject2/pygobject2.nm | 103 +- pkgs/pyliblzma/pyliblzma.nm | 93 +- pkgs/pyserial/pyserial.nm | 66 +- pkgs/python-IPy/python-IPy.nm | 69 +- pkgs/python-cairo/python-cairo.nm | 79 +- pkgs/python-cryptsetup/python-cryptsetup.nm | 70 +- pkgs/python-dbus/python-dbus.nm | 75 +- pkgs/python-decorator/python-decorator.nm | 93 +- .../python-distutils-extra.nm | 87 +- pkgs/python-gudev/python-gudev.nm | 88 +- pkgs/python-m2crypto/python-m2crypto.nm | 74 +- .../python-netfilter_conntrack.nm | 86 +- pkgs/python-parted/python-parted.nm | 66 +- pkgs/python-piksemel/python-piksemel.nm | 80 +- pkgs/python-progressbar/python-progressbar.nm | 75 +- pkgs/python-pyaspects/python-pyaspects.nm | 71 +- pkgs/python-pyblock/python-pyblock.nm | 90 +- pkgs/python-pycurl/python-pycurl.nm | 97 +- pkgs/python-qtermwidget/python-qtermwidget.nm | 81 +- pkgs/python-setuptools/python-setuptools.nm | 94 +- pkgs/python-tornado/python-tornado.nm | 80 +- pkgs/python-urlgrabber/python-urlgrabber.nm | 85 +- pkgs/python/python.nm | 172 +- pkgs/pyxattr/pyxattr.nm | 72 +- pkgs/qemu/qemu.nm | 116 +- pkgs/qt/qt.nm | 235 +- pkgs/qtermwidget/qtermwidget.nm | 125 +- pkgs/quagga/quagga.nm | 93 +- pkgs/radvd/radvd.nm | 95 +- pkgs/readline/readline.nm | 123 +- pkgs/reiser4progs/reiser4progs.nm | 110 +- pkgs/reiserfsprogs/reiserfsprogs.nm | 68 +- pkgs/rrdtool/rrdtool.nm | 112 +- pkgs/rstp/rstp.nm | 75 +- pkgs/rsync/rsync.nm | 104 +- pkgs/rsyslog/rsyslog.nm | 123 +- pkgs/rtorrent/rtorrent.nm | 69 +- pkgs/samba/samba.nm | 164 +- pkgs/sane/sane.nm | 109 +- pkgs/screen/screen.nm | 98 +- pkgs/sdl/sdl.nm | 73 +- pkgs/sed/sed.nm | 73 +- pkgs/setup/setup.nm | 92 +- pkgs/sg3-utils/sg3-utils.nm | 68 +- pkgs/shadow-utils/shadow-utils.nm | 124 +- pkgs/sip/sip.nm | 94 +- pkgs/slang/slang.nm | 93 +- pkgs/smartmontools/smartmontools.nm | 80 +- pkgs/sqlite/sqlite.nm | 103 +- pkgs/squashfs-tools/squashfs-tools.nm | 83 +- pkgs/squid/squid.nm | 189 +- pkgs/squidGuard/squidGuard.nm | 108 +- pkgs/strace/strace.nm | 57 +- pkgs/strongswan/strongswan.nm | 109 +- pkgs/sudo/sudo.nm | 126 +- pkgs/suricata/suricata.nm | 103 +- pkgs/swig/swig.nm | 92 +- pkgs/sysfsutils/sysfsutils.nm | 68 +- pkgs/syslinux/syslinux.nm | 102 +- pkgs/system-release/system-release.nm | 111 +- pkgs/systemd/systemd.nm | 253 +- pkgs/sysvinit/sysvinit.nm | 79 +- pkgs/tar/tar.nm | 107 +- pkgs/tcl/tcl.nm | 96 +- pkgs/tcpdump/tcpdump.nm | 72 +- pkgs/telnet/telnet.nm | 121 +- pkgs/texinfo/texinfo.nm | 71 +- pkgs/tinc/tinc.nm | 61 +- pkgs/traceroute/traceroute.nm | 86 +- pkgs/transmission/transmission.nm | 66 +- pkgs/tunctl/tunctl.nm | 79 +- pkgs/udev/udev.nm | 127 +- pkgs/udisks/udisks.nm | 96 +- pkgs/ulogd2/ulogd2.nm | 97 +- pkgs/unzip/unzip.nm | 95 +- pkgs/upower/upower.nm | 93 +- pkgs/usb-modemswitch/usb-modeswitch.nm | 59 +- pkgs/usbutils/usbutils.nm | 71 +- pkgs/ustr/ustr.nm | 107 +- pkgs/util-linux/util-linux.nm | 343 +-- pkgs/vala/vala.nm | 98 +- pkgs/vim/vim.nm | 94 +- pkgs/vlan/vlan.nm | 71 +- pkgs/vsftpd/vsftpd.nm | 102 +- pkgs/wavemon/wavemon.nm | 64 +- pkgs/wget/wget.nm | 69 +- pkgs/which/which.nm | 52 +- pkgs/wireless-regdb/wireless-regdb.nm | 77 +- pkgs/wireless-tools/wireless-tools.nm | 103 +- pkgs/wpa_supplicant/wpa_supplicant.nm | 117 +- pkgs/xcb-proto/xcb-proto.nm | 64 +- pkgs/xcb-util/xcb-util.nm | 89 +- pkgs/xen/xen.nm | 196 +- pkgs/xfsprogs/xfsprogs.nm | 118 +- pkgs/xkeyboard-config/xkeyboard-config.nm | 98 +- pkgs/xorg-x11-drv-ati/xorg-x11-drv-ati.nm | 93 +- pkgs/xorg-x11-drv-evdev/xorg-x11-drv-evdev.nm | 80 +- pkgs/xorg-x11-drv-intel/xorg-x11-drv-intel.nm | 103 +- .../xorg-x11-drv-keyboard.nm | 74 +- pkgs/xorg-x11-drv-mouse/xorg-x11-drv-mouse.nm | 75 +- pkgs/xorg-x11-drv-nv/xorg-x11-drv-nv.nm | 101 +- .../xorg-x11-drv-synaptics.nm | 111 +- pkgs/xorg-x11-drv-vesa/xorg-x11-drv-vesa.nm | 77 +- .../xorg-x11-drv-vmware.nm | 77 +- .../xorg-x11-font-utils.nm | 155 +- pkgs/xorg-x11-fonts/xorg-x11-fonts.nm | 217 +- .../xorg-x11-proto-devel.nm | 176 +- pkgs/xorg-x11-server/xorg-x11-server.nm | 274 +- .../xorg-x11-util-macros.nm | 70 +- pkgs/xorg-x11-xinit/xorg-x11-xinit.nm | 59 +- pkgs/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm | 140 +- .../xorg-x11-xtrans-devel.nm | 62 +- pkgs/xrandr/xrandr.nm | 75 +- pkgs/xterm/xterm.nm | 92 +- pkgs/xz/xz.nm | 61 +- pkgs/zerofree/zerofree.nm | 83 +- pkgs/zlib/zlib.nm | 106 +- 459 files changed, 19554 insertions(+), 26528 deletions(-) delete mode 100644 pkgs/build-essentials/build-essentials.nm delete mode 100755 pkgs/build-essentials/buildsystem-tools/chroot-shell delete mode 100755 pkgs/build-essentials/buildsystem-tools/cleanup delete mode 100644 pkgs/build-essentials/buildsystem-tools/common-functions delete mode 100755 pkgs/build-essentials/buildsystem-tools/dependency-tracker delete mode 100644 pkgs/build-essentials/buildsystem-tools/functions-common delete mode 100644 pkgs/build-essentials/buildsystem-tools/functions-constants delete mode 100644 pkgs/build-essentials/buildsystem-tools/functions-directories delete mode 100644 pkgs/build-essentials/buildsystem-tools/functions-files delete mode 100644 pkgs/build-essentials/buildsystem-tools/functions-lists delete mode 100644 pkgs/build-essentials/buildsystem-tools/functions-logging delete mode 100644 pkgs/build-essentials/buildsystem-tools/functions-packager-find delete mode 100755 pkgs/build-essentials/buildsystem-tools/patch delete mode 100644 pkgs/build-essentials/buildsystem-tools/perl.prov delete mode 100644 pkgs/build-essentials/buildsystem-tools/perl.req delete mode 100755 pkgs/build-essentials/buildsystem-tools/pkg-config.prov delete mode 100755 pkgs/build-essentials/buildsystem-tools/pkg-config.req delete mode 100755 pkgs/build-essentials/buildsystem-tools/py-compile delete mode 100755 pkgs/build-essentials/buildsystem-tools/stripper delete mode 100644 pkgs/build-essentials/buildsystem.sh delete mode 100644 pkgs/build-essentials/buildsystem/Constants delete mode 100644 pkgs/build-essentials/buildsystem/Functions delete mode 100644 pkgs/build-essentials/buildsystem/Include delete mode 100644 pkgs/build-essentials/buildsystem/Targets delete mode 100644 pkgs/build-essentials/buildsystem/Templates delete mode 100644 pkgs/build-essentials/buildsystem/__gmsl delete mode 100644 pkgs/build-essentials/buildsystem/gmsl delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/001-include-files delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-info-files delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-static-libs delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/001-unsafe-files delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/002-bad-symlinks delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/003-libs-location delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-canary delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-execstacks delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-invalid-interpreters delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-needed delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-soname delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-nx delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-relro delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-root-links-to-usr delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/050-rpaths delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/090-man-pages delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/090-python-hardlinks delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/090-remove-empty-dirs delete mode 100755 pkgs/build-essentials/quality-agent/quality-agent.d/095-directory-layout delete mode 100644 pkgs/build-essentials/quality-agent/quality-agent.d/qa-include diff --git a/config/ipfire-3-i686.conf b/config/ipfire-3-i686.conf index 1e7e9b7e6..f8045d86b 100644 --- a/config/ipfire-3-i686.conf +++ b/config/ipfire-3-i686.conf @@ -4,9 +4,12 @@ name = IPFire version = 3.0-alpha2 slogan = Gluttony +maintainer = IPFire Development Team vendor = ipfire arch = i686 +source_dl = http://source.ipfire.org/sources-3.x/ + [testingbay] description = IPFire Testing Repository diff --git a/pkgs/X11vnc/X11vnc.nm b/pkgs/X11vnc/X11vnc.nm index f62da62f7..f4b2b7795 100644 --- a/pkgs/X11vnc/X11vnc.nm +++ b/pkgs/X11vnc/X11vnc.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/acl/acl.nm b/pkgs/acl/acl.nm index 1d4fa0a31..f75a039ff 100644 --- a/pkgs/acl/acl.nm +++ b/pkgs/acl/acl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/acpid/acpid.nm b/pkgs/acpid/acpid.nm index ba89365d3..01f28f74a 100644 --- a/pkgs/acpid/acpid.nm +++ b/pkgs/acpid/acpid.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/aiccu/aiccu.nm b/pkgs/aiccu/aiccu.nm index d950dd377..7334bfd31 100644 --- a/pkgs/aiccu/aiccu.nm +++ b/pkgs/aiccu/aiccu.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/attr/attr.nm b/pkgs/attr/attr.nm index 15c3e2958..cc27de0a5 100644 --- a/pkgs/attr/attr.nm +++ b/pkgs/attr/attr.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/audit/audit.nm b/pkgs/audit/audit.nm index 07cbbb5b0..04d258f43 100644 --- a/pkgs/audit/audit.nm +++ b/pkgs/audit/audit.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/authconfig/authconfig.nm b/pkgs/authconfig/authconfig.nm index 85ccebbe2..f89d1aba5 100644 --- a/pkgs/authconfig/authconfig.nm +++ b/pkgs/authconfig/authconfig.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/autoconf/autoconf.nm b/pkgs/autoconf/autoconf.nm index 7dda01448..e8fd519b1 100644 --- a/pkgs/autoconf/autoconf.nm +++ b/pkgs/autoconf/autoconf.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/autogen/autogen.nm b/pkgs/autogen/autogen.nm index 54fef040e..6e6ee13eb 100644 --- a/pkgs/autogen/autogen.nm +++ b/pkgs/autogen/autogen.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/automake/automake.nm b/pkgs/automake/automake.nm index 803fb8df4..c25f1e9df 100644 --- a/pkgs/automake/automake.nm +++ b/pkgs/automake/automake.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/avahi/avahi.nm b/pkgs/avahi/avahi.nm index ae2d27744..2ca00ecff 100644 --- a/pkgs/avahi/avahi.nm +++ b/pkgs/avahi/avahi.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/basesystem/basesystem.nm b/pkgs/basesystem/basesystem.nm index c50d90d7d..7b972846b 100644 --- a/pkgs/basesystem/basesystem.nm +++ b/pkgs/basesystem/basesystem.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/bash/bash.nm b/pkgs/bash/bash.nm index 3e27abeec..bc9662d3e 100644 --- a/pkgs/bash/bash.nm +++ b/pkgs/bash/bash.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 : - 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 : + 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 diff --git a/pkgs/bc/bc.nm b/pkgs/bc/bc.nm index 9700e76c9..71d89a402 100644 --- a/pkgs/bc/bc.nm +++ b/pkgs/bc/bc.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 ' 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 ' lib/number.c + sed -i 's/program.*save/static &/' bc/load.c + end +end + +packages + package %{name} + end +end diff --git a/pkgs/beep/beep.nm b/pkgs/beep/beep.nm index 9c1ffe787..d4da7d292 100644 --- a/pkgs/beep/beep.nm +++ b/pkgs/beep/beep.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/bind/bind.nm b/pkgs/bind/bind.nm index 7ca8cd6ba..4daec6de8 100644 --- a/pkgs/bind/bind.nm +++ b/pkgs/bind/bind.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/binutils/binutils.nm b/pkgs/binutils/binutils.nm index ca7027d77..f8c808ee4 100644 --- a/pkgs/binutils/binutils.nm +++ b/pkgs/binutils/binutils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -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 +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 diff --git a/pkgs/bird/bird.nm b/pkgs/bird/bird.nm index b8ecdb56c..e86eda259 100644 --- a/pkgs/bird/bird.nm +++ b/pkgs/bird/bird.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/bison/bison.nm b/pkgs/bison/bison.nm index 6d9b1aec0..ab7ad3c7f 100644 --- a/pkgs/bison/bison.nm +++ b/pkgs/bison/bison.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/boost/boost.nm b/pkgs/boost/boost.nm index 16cbc0813..0493c0859 100644 --- a/pkgs/boost/boost.nm +++ b/pkgs/boost/boost.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/br2684ctl/br2684ctl.nm b/pkgs/br2684ctl/br2684ctl.nm index 3888d4d1e..556f94ce9 100644 --- a/pkgs/br2684ctl/br2684ctl.nm +++ b/pkgs/br2684ctl/br2684ctl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/bridge-utils/bridge-utils.nm b/pkgs/bridge-utils/bridge-utils.nm index c82cb12b5..4f55a6340 100644 --- a/pkgs/bridge-utils/bridge-utils.nm +++ b/pkgs/bridge-utils/bridge-utils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/btrfs-progs/btrfs-progs.nm b/pkgs/btrfs-progs/btrfs-progs.nm index f68e38848..c76feb7be 100644 --- a/pkgs/btrfs-progs/btrfs-progs.nm +++ b/pkgs/btrfs-progs/btrfs-progs.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 index 03650f464..000000000 --- a/pkgs/build-essentials/build-essentials.nm +++ /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 . # -# # -############################################################################### - -############################################################################### -# 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 -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 index 0d4a61f20..000000000 --- a/pkgs/build-essentials/buildsystem-tools/chroot-shell +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -cat </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 index 05920c8c0..000000000 --- a/pkgs/build-essentials/buildsystem-tools/functions-files +++ /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 index d8152d487..000000000 --- a/pkgs/build-essentials/buildsystem-tools/functions-lists +++ /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 index 4fd43edce..000000000 --- a/pkgs/build-essentials/buildsystem-tools/functions-logging +++ /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 index 1b488d9f7..000000000 --- a/pkgs/build-essentials/buildsystem-tools/functions-packager-find +++ /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 index 68fef901a..000000000 --- a/pkgs/build-essentials/buildsystem-tools/patch +++ /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 index 73bec513b..000000000 --- a/pkgs/build-essentials/buildsystem-tools/perl.prov +++ /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 . - -# 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 () { - - # 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 index d0a1cd729..000000000 --- a/pkgs/build-essentials/buildsystem-tools/perl.req +++ /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 . - -# 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 () { - - # skip the "= <<" block - - if ( ( m/^\s*\$(?:.*)\s*=\s*<<\s*(["'`])(.*)\1/) || - ( m/^\s*\$(.*)\s*=\s*<<(\w*)\s*;/) ) { - $tag = $2; - while () { - chomp; - ( $_ eq $tag ) && last; - } - $_ = ; - } - - # 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 () { - ( $_ =~ 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 index 2ef9b3c3c..000000000 --- a/pkgs/build-essentials/buildsystem-tools/pkg-config.prov +++ /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 index edb8bcef4..000000000 --- a/pkgs/build-essentials/buildsystem-tools/pkg-config.req +++ /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 index 66c33edfe..000000000 --- a/pkgs/build-essentials/buildsystem-tools/py-compile +++ /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 index b35d72e13..000000000 --- a/pkgs/build-essentials/buildsystem-tools/stripper +++ /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 index 6e455248d..000000000 --- a/pkgs/build-essentials/buildsystem.sh +++ /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 index 65aa2aee0..000000000 --- a/pkgs/build-essentials/buildsystem/Constants +++ /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 index d92945041..000000000 --- a/pkgs/build-essentials/buildsystem/Functions +++ /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 index a3d62be3d..000000000 --- a/pkgs/build-essentials/buildsystem/Include +++ /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 . # -# # -############################################################################### - -.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 index 4e42f067b..000000000 --- a/pkgs/build-essentials/buildsystem/Targets +++ /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 index abf1ab07e..000000000 --- a/pkgs/build-essentials/buildsystem/Templates +++ /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 index 596ff1911..000000000 --- a/pkgs/build-essentials/buildsystem/__gmsl +++ /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 index 2ff28972d..000000000 --- a/pkgs/build-essentials/buildsystem/gmsl +++ /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 index a83a1a375..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent +++ /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 index 34257e690..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/001-include-files +++ /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 index e742dc977..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-info-files +++ /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 index e5c6e541f..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/001-remove-static-libs +++ /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 index 93a5dc8d3..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/001-unsafe-files +++ /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 index 27e85583c..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/002-bad-symlinks +++ /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 index 185f44f06..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/003-libs-location +++ /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 index 67b25e531..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-canary +++ /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 index 9540eee55..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-execstacks +++ /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 index 09d0ba55e..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-invalid-interpreters +++ /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 index 93f600dc3..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-needed +++ /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 index b6232b644..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-libs-soname +++ /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 index c9c27338d..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-nx +++ /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 index e42e8ff9c..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-relro +++ /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 index 98385c5b8..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-root-links-to-usr +++ /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 index 8250612bf..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/050-rpaths +++ /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 index 0720d100e..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/090-man-pages +++ /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 index e2abf76a9..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/090-python-hardlinks +++ /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 index d1d61a195..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/090-remove-empty-dirs +++ /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 index 3f946a186..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/095-directory-layout +++ /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 index 284673388..000000000 --- a/pkgs/build-essentials/quality-agent/quality-agent.d/qa-include +++ /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} -} - diff --git a/pkgs/bwm-ng/bwm-ng.nm b/pkgs/bwm-ng/bwm-ng.nm index 88eda1753..738321dea 100644 --- a/pkgs/bwm-ng/bwm-ng.nm +++ b/pkgs/bwm-ng/bwm-ng.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/bzip2/bzip2.nm b/pkgs/bzip2/bzip2.nm index d3ff7529c..f0165c75c 100644 --- a/pkgs/bzip2/bzip2.nm +++ b/pkgs/bzip2/bzip2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/c_icap/c_icap.nm b/pkgs/c_icap/c_icap.nm index df1d718c6..3c80c6357 100644 --- a/pkgs/c_icap/c_icap.nm +++ b/pkgs/c_icap/c_icap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = c_icap -PKG_VER = 0.1.5 -PKG_REL = 1 - -PKG_MAINTAINER = Christian Schmidt -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 +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 diff --git a/pkgs/c_icap_modules/c_icap_modules.nm b/pkgs/c_icap_modules/c_icap_modules.nm index 720abfd26..04fc7d026 100644 --- a/pkgs/c_icap_modules/c_icap_modules.nm +++ b/pkgs/c_icap_modules/c_icap_modules.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = c_icap_modules -PKG_VER = 0.1.4 -PKG_REL = 1 - -PKG_MAINTAINER = Christian Schmidt -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 +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 diff --git a/pkgs/cairo/cairo.nm b/pkgs/cairo/cairo.nm index d1eb4a415..af94c848b 100644 --- a/pkgs/cairo/cairo.nm +++ b/pkgs/cairo/cairo.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ccache/ccache.nm b/pkgs/ccache/ccache.nm index 19e04606d..fbc601cce 100644 --- a/pkgs/ccache/ccache.nm +++ b/pkgs/ccache/ccache.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/chrony/chrony.nm b/pkgs/chrony/chrony.nm index 41fc286f7..fb44fbb7e 100644 --- a/pkgs/chrony/chrony.nm +++ b/pkgs/chrony/chrony.nm @@ -1,73 +1,103 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/chrpath/chrpath.nm b/pkgs/chrpath/chrpath.nm index 22c3816fc..c176c9cbe 100644 --- a/pkgs/chrpath/chrpath.nm +++ b/pkgs/chrpath/chrpath.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/clamav/clamav.nm b/pkgs/clamav/clamav.nm index edba0c3d8..a3c74738b 100644 --- a/pkgs/clamav/clamav.nm +++ b/pkgs/clamav/clamav.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/cloog-ppl/cloog-ppl.nm b/pkgs/cloog-ppl/cloog-ppl.nm index 098d682fe..82f120f29 100644 --- a/pkgs/cloog-ppl/cloog-ppl.nm +++ b/pkgs/cloog-ppl/cloog-ppl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = cloog-ppl -PKG_VER = 0.15.9 -PKG_REL = 3 - -PKG_MAINTAINER = Michael Tremer -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 +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 diff --git a/pkgs/cmake/cmake.nm b/pkgs/cmake/cmake.nm index e49bb14b7..9cfc81917 100644 --- a/pkgs/cmake/cmake.nm +++ b/pkgs/cmake/cmake.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/coreutils/coreutils.nm b/pkgs/coreutils/coreutils.nm index be41e0cad..a2dfed238 100644 --- a/pkgs/coreutils/coreutils.nm +++ b/pkgs/coreutils/coreutils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/cpio/cpio.nm b/pkgs/cpio/cpio.nm index b0aa1f56e..53c3d42c6 100644 --- a/pkgs/cpio/cpio.nm +++ b/pkgs/cpio/cpio.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/cpufrequtils/cpufrequtils.nm b/pkgs/cpufrequtils/cpufrequtils.nm index e291e8b97..f8e13862d 100644 --- a/pkgs/cpufrequtils/cpufrequtils.nm +++ b/pkgs/cpufrequtils/cpufrequtils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/cracklib/cracklib.nm b/pkgs/cracklib/cracklib.nm index e85013336..ac714726e 100644 --- a/pkgs/cracklib/cracklib.nm +++ b/pkgs/cracklib/cracklib.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/crda/crda.nm b/pkgs/crda/crda.nm index 5bf401d78..d436ca2c3 100644 --- a/pkgs/crda/crda.nm +++ b/pkgs/crda/crda.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = crda -PKG_VER = 1.1.1 -PKG_REL = 1 - -PKG_MAINTAINER = Arne Fitzenreiter -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 +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 diff --git a/pkgs/cronie/cronie.nm b/pkgs/cronie/cronie.nm index f6feb10ed..614d1cb30 100644 --- a/pkgs/cronie/cronie.nm +++ b/pkgs/cronie/cronie.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/cryptsetup-luks/cryptsetup-luks.nm b/pkgs/cryptsetup-luks/cryptsetup-luks.nm index da3dafe11..116aa54b6 100644 --- a/pkgs/cryptsetup-luks/cryptsetup-luks.nm +++ b/pkgs/cryptsetup-luks/cryptsetup-luks.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/cups/cups.nm b/pkgs/cups/cups.nm index 42569af89..9a78e9846 100644 --- a/pkgs/cups/cups.nm +++ b/pkgs/cups/cups.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/curl/curl.nm b/pkgs/curl/curl.nm index 6ce119b36..3baf57503 100644 --- a/pkgs/curl/curl.nm +++ b/pkgs/curl/curl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/cyrus-sasl/cyrus-sasl.nm b/pkgs/cyrus-sasl/cyrus-sasl.nm index 3cfaa0c41..beab6159e 100644 --- a/pkgs/cyrus-sasl/cyrus-sasl.nm +++ b/pkgs/cyrus-sasl/cyrus-sasl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dansguardian/dansguardian.nm b/pkgs/dansguardian/dansguardian.nm index 3861cc1e2..4a0833508 100644 --- a/pkgs/dansguardian/dansguardian.nm +++ b/pkgs/dansguardian/dansguardian.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/db4/db4.nm b/pkgs/db4/db4.nm index 1035d9010..53946992b 100644 --- a/pkgs/db4/db4.nm +++ b/pkgs/db4/db4.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -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 +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 diff --git a/pkgs/dbus-glib/dbus-glib.nm b/pkgs/dbus-glib/dbus-glib.nm index 319cc01c1..c80decc27 100644 --- a/pkgs/dbus-glib/dbus-glib.nm +++ b/pkgs/dbus-glib/dbus-glib.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dbus/dbus.nm b/pkgs/dbus/dbus.nm index 5c7437cf5..95921949e 100644 --- a/pkgs/dbus/dbus.nm +++ b/pkgs/dbus/dbus.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dejagnu/dejagnu.nm b/pkgs/dejagnu/dejagnu.nm index 3bae435d3..52eb826d2 100644 --- a/pkgs/dejagnu/dejagnu.nm +++ b/pkgs/dejagnu/dejagnu.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dhcp/dhcp.nm b/pkgs/dhcp/dhcp.nm index 1d4a42245..643d35bc9 100644 --- a/pkgs/dhcp/dhcp.nm +++ b/pkgs/dhcp/dhcp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dhcping/dhcping.nm b/pkgs/dhcping/dhcping.nm index 5c3a76f32..b43cc70ca 100644 --- a/pkgs/dhcping/dhcping.nm +++ b/pkgs/dhcping/dhcping.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/diffutils/diffutils.nm b/pkgs/diffutils/diffutils.nm index bf80e1aef..1fa2b4fc3 100644 --- a/pkgs/diffutils/diffutils.nm +++ b/pkgs/diffutils/diffutils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/directfb/directfb.nm b/pkgs/directfb/directfb.nm index df622760e..c5b9890a6 100644 --- a/pkgs/directfb/directfb.nm +++ b/pkgs/directfb/directfb.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -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 diff --git a/pkgs/dmidecode/dmidecode.nm b/pkgs/dmidecode/dmidecode.nm index 7b7db9a92..43d244a24 100644 --- a/pkgs/dmidecode/dmidecode.nm +++ b/pkgs/dmidecode/dmidecode.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dmraid/dmraid.nm b/pkgs/dmraid/dmraid.nm index 979038ab9..e017e197c 100644 --- a/pkgs/dmraid/dmraid.nm +++ b/pkgs/dmraid/dmraid.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dos2unix/dos2unix.nm b/pkgs/dos2unix/dos2unix.nm index b47a63639..5b0b053ab 100644 --- a/pkgs/dos2unix/dos2unix.nm +++ b/pkgs/dos2unix/dos2unix.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dosfstools/dosfstools.nm b/pkgs/dosfstools/dosfstools.nm index 0ed09ce64..c479619f6 100644 --- a/pkgs/dosfstools/dosfstools.nm +++ b/pkgs/dosfstools/dosfstools.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dracut/dracut.nm b/pkgs/dracut/dracut.nm index 287535508..2638db4cc 100644 --- a/pkgs/dracut/dracut.nm +++ b/pkgs/dracut/dracut.nm @@ -1,117 +1,101 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/dvdrtools/dvdrtools.nm b/pkgs/dvdrtools/dvdrtools.nm index 38cde0922..5efad8de7 100644 --- a/pkgs/dvdrtools/dvdrtools.nm +++ b/pkgs/dvdrtools/dvdrtools.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/e2fsprogs/e2fsprogs.nm b/pkgs/e2fsprogs/e2fsprogs.nm index d4d30b015..1fce087e9 100644 --- a/pkgs/e2fsprogs/e2fsprogs.nm +++ b/pkgs/e2fsprogs/e2fsprogs.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ebtables/ebtables.nm b/pkgs/ebtables/ebtables.nm index cf7d2f395..2539b25c1 100644 --- a/pkgs/ebtables/ebtables.nm +++ b/pkgs/ebtables/ebtables.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ed/ed.nm b/pkgs/ed/ed.nm index ca695886b..f2ddbc78f 100644 --- a/pkgs/ed/ed.nm +++ b/pkgs/ed/ed.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/eggdbus/eggdbus.nm b/pkgs/eggdbus/eggdbus.nm index 5d8f8a81b..502736d81 100644 --- a/pkgs/eggdbus/eggdbus.nm +++ b/pkgs/eggdbus/eggdbus.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/eject/eject.nm b/pkgs/eject/eject.nm index ca9a1ab4d..e2a74888b 100644 --- a/pkgs/eject/eject.nm +++ b/pkgs/eject/eject.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/elfutils/elfutils.nm b/pkgs/elfutils/elfutils.nm index 002adc933..a82a69b49 100644 --- a/pkgs/elfutils/elfutils.nm +++ b/pkgs/elfutils/elfutils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include +name = elfutils +version = 0.152 +release = 2 -PKG_NAME = elfutils -PKG_VER = 0.152 -PKG_REL = 2 +maintainer = Michael Tremer +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 -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 diff --git a/pkgs/elinks/elinks.nm b/pkgs/elinks/elinks.nm index 9fa5e2ec3..1e846eb4f 100644 --- a/pkgs/elinks/elinks.nm +++ b/pkgs/elinks/elinks.nm @@ -1,51 +1,42 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007-2011 IPFire Team # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/etherwake/etherwake.nm b/pkgs/etherwake/etherwake.nm index 438972599..5ceab2aa9 100644 --- a/pkgs/etherwake/etherwake.nm +++ b/pkgs/etherwake/etherwake.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ethtool/ethtool.nm b/pkgs/ethtool/ethtool.nm index 4bb0accde..dfbca0e61 100644 --- a/pkgs/ethtool/ethtool.nm +++ b/pkgs/ethtool/ethtool.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/expat/expat.nm b/pkgs/expat/expat.nm index 46992b94d..dc13fc737 100644 --- a/pkgs/expat/expat.nm +++ b/pkgs/expat/expat.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/expect/expect.nm b/pkgs/expect/expect.nm index f00c5cc51..eea26324a 100644 --- a/pkgs/expect/expect.nm +++ b/pkgs/expect/expect.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ez-ipupdate/ez-ipupdate.nm b/pkgs/ez-ipupdate/ez-ipupdate.nm index 305385e26..a91cdc4b4 100644 --- a/pkgs/ez-ipupdate/ez-ipupdate.nm +++ b/pkgs/ez-ipupdate/ez-ipupdate.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/fail2ban/fail2ban.nm b/pkgs/fail2ban/fail2ban.nm index 99337289e..0d204e028 100644 --- a/pkgs/fail2ban/fail2ban.nm +++ b/pkgs/fail2ban/fail2ban.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/file/file.nm b/pkgs/file/file.nm index aebd060cb..c193681d6 100644 --- a/pkgs/file/file.nm +++ b/pkgs/file/file.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/filesystem/filesystem.nm b/pkgs/filesystem/filesystem.nm index 830c57daa..f5668ef54 100644 --- a/pkgs/filesystem/filesystem.nm +++ b/pkgs/filesystem/filesystem.nm @@ -1,110 +1,101 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include +name = filesystem +version = 001 +release = 2 -PKG_NAME = filesystem -PKG_VER = 001 -PKG_REL = 2 +maintainer = Michael Tremer +groups = Base Build System/Base +url = +license = Public Domain +summary = The basic directory layout for a Linux system. -PKG_MAINTAINER = Michael Tremer -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 diff --git a/pkgs/findutils/findutils.nm b/pkgs/findutils/findutils.nm index ddcd6c8a2..335aa68c9 100644 --- a/pkgs/findutils/findutils.nm +++ b/pkgs/findutils/findutils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/firewall/firewall.nm b/pkgs/firewall/firewall.nm index fd6bbdb57..6e3cd35ea 100644 --- a/pkgs/firewall/firewall.nm +++ b/pkgs/firewall/firewall.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = firewall -PKG_VER = -PKG_REL = 2 - -PKG_MAINTAINER = Michael Tremer -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 +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 diff --git a/pkgs/flex/flex.nm b/pkgs/flex/flex.nm index 7f45cf987..8f31c1760 100644 --- a/pkgs/flex/flex.nm +++ b/pkgs/flex/flex.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/fontconfig/fontconfig.nm b/pkgs/fontconfig/fontconfig.nm index c2dc70c53..666165c43 100644 --- a/pkgs/fontconfig/fontconfig.nm +++ b/pkgs/fontconfig/fontconfig.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/freeradius/freeradius.nm b/pkgs/freeradius/freeradius.nm index 4cc46b0c3..e780786ff 100644 --- a/pkgs/freeradius/freeradius.nm +++ b/pkgs/freeradius/freeradius.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/freetype/freetype.nm b/pkgs/freetype/freetype.nm index 74215098f..75ae2823e 100644 --- a/pkgs/freetype/freetype.nm +++ b/pkgs/freetype/freetype.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/fuse-sshfs/fuse-sshfs.nm b/pkgs/fuse-sshfs/fuse-sshfs.nm index b4e4dcc78..ac137808e 100644 --- a/pkgs/fuse-sshfs/fuse-sshfs.nm +++ b/pkgs/fuse-sshfs/fuse-sshfs.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/fuse/fuse.nm b/pkgs/fuse/fuse.nm index ef9f3d68a..35c30d5a4 100644 --- a/pkgs/fuse/fuse.nm +++ b/pkgs/fuse/fuse.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gawk/gawk.nm b/pkgs/gawk/gawk.nm index 29b52b173..835aef21d 100644 --- a/pkgs/gawk/gawk.nm +++ b/pkgs/gawk/gawk.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gcc/gcc.nm b/pkgs/gcc/gcc.nm index 36cf73bb5..f9a81df45 100644 --- a/pkgs/gcc/gcc.nm +++ b/pkgs/gcc/gcc.nm @@ -1,227 +1,154 @@ ############################################################################### -# # -# 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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +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 -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 diff --git a/pkgs/gdb/gdb.nm b/pkgs/gdb/gdb.nm index 1f1368021..f09032ecf 100644 --- a/pkgs/gdb/gdb.nm +++ b/pkgs/gdb/gdb.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gdbm/gdbm.nm b/pkgs/gdbm/gdbm.nm index b643bd41a..30404d391 100644 --- a/pkgs/gdbm/gdbm.nm +++ b/pkgs/gdbm/gdbm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gettext/gettext.nm b/pkgs/gettext/gettext.nm index e71351e2f..91b0f8e9e 100644 --- a/pkgs/gettext/gettext.nm +++ b/pkgs/gettext/gettext.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ghostscript/ghostscript.nm b/pkgs/ghostscript/ghostscript.nm index 573e742c2..9922894b3 100644 --- a/pkgs/ghostscript/ghostscript.nm +++ b/pkgs/ghostscript/ghostscript.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/git/git.nm b/pkgs/git/git.nm index 78ae5905b..2317c878c 100644 --- a/pkgs/git/git.nm +++ b/pkgs/git/git.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/glib2/glib2.nm b/pkgs/glib2/glib2.nm index c4bbbcea8..08c056af7 100644 --- a/pkgs/glib2/glib2.nm +++ b/pkgs/glib2/glib2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/glibc/glibc.nm b/pkgs/glibc/glibc.nm index 70eb14f08..73372aa50 100644 --- a/pkgs/glibc/glibc.nm +++ b/pkgs/glibc/glibc.nm @@ -1,240 +1,149 @@ ############################################################################### -# # -# 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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = glibc -PKG_VER = 2.14 -PKG_REL = 1 - # TODO tzdata -PKG_MAINTAINER = Michael Tremer -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 +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 diff --git a/pkgs/gmp/gmp.nm b/pkgs/gmp/gmp.nm index d096b992f..730e1f4c7 100644 --- a/pkgs/gmp/gmp.nm +++ b/pkgs/gmp/gmp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gnupg2/gnupg2.nm b/pkgs/gnupg2/gnupg2.nm index 8ef75bb15..8e35ca8fd 100644 --- a/pkgs/gnupg2/gnupg2.nm +++ b/pkgs/gnupg2/gnupg2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gnutls/gnutls.nm b/pkgs/gnutls/gnutls.nm index 4c0a5174d..04376dc0f 100644 --- a/pkgs/gnutls/gnutls.nm +++ b/pkgs/gnutls/gnutls.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gobject-introspection/gobject-introspection.nm b/pkgs/gobject-introspection/gobject-introspection.nm index 9524373fc..fc9232eb5 100644 --- a/pkgs/gobject-introspection/gobject-introspection.nm +++ b/pkgs/gobject-introspection/gobject-introspection.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gperf/gperf.nm b/pkgs/gperf/gperf.nm index def24ae01..add112c0b 100644 --- a/pkgs/gperf/gperf.nm +++ b/pkgs/gperf/gperf.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/grep/grep.nm b/pkgs/grep/grep.nm index 6a0ee5121..c6476b230 100644 --- a/pkgs/grep/grep.nm +++ b/pkgs/grep/grep.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/groff/groff.nm b/pkgs/groff/groff.nm index d7bbde5a9..344e745bc 100644 --- a/pkgs/groff/groff.nm +++ b/pkgs/groff/groff.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/grub/grub.nm b/pkgs/grub/grub.nm index 1aa3f1451..273066829 100644 --- a/pkgs/grub/grub.nm +++ b/pkgs/grub/grub.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gssdp/gssdp.nm b/pkgs/gssdp/gssdp.nm index 0bddc8233..792f8720a 100644 --- a/pkgs/gssdp/gssdp.nm +++ b/pkgs/gssdp/gssdp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/guile/guile.nm b/pkgs/guile/guile.nm index 01e8aaf3f..ef8e08fe4 100644 --- a/pkgs/guile/guile.nm +++ b/pkgs/guile/guile.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gupnp-av/gupnp-av.nm b/pkgs/gupnp-av/gupnp-av.nm index f3eeec78f..18c8e257f 100644 --- a/pkgs/gupnp-av/gupnp-av.nm +++ b/pkgs/gupnp-av/gupnp-av.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gupnp-igd/gupnp-igd.nm b/pkgs/gupnp-igd/gupnp-igd.nm index df9f4a2ce..e84c0a65d 100644 --- a/pkgs/gupnp-igd/gupnp-igd.nm +++ b/pkgs/gupnp-igd/gupnp-igd.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gupnp/gupnp.nm b/pkgs/gupnp/gupnp.nm index 24ed6fd02..5dd403a52 100644 --- a/pkgs/gupnp/gupnp.nm +++ b/pkgs/gupnp/gupnp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/gzip/gzip.nm b/pkgs/gzip/gzip.nm index 307b19beb..b3d2baab0 100644 --- a/pkgs/gzip/gzip.nm +++ b/pkgs/gzip/gzip.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/hdparm/hdparm.nm b/pkgs/hdparm/hdparm.nm index 50e26be4b..4ccd35f65 100644 --- a/pkgs/hdparm/hdparm.nm +++ b/pkgs/hdparm/hdparm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/help2man/help2man.nm b/pkgs/help2man/help2man.nm index a47e76226..208f1ff1a 100644 --- a/pkgs/help2man/help2man.nm +++ b/pkgs/help2man/help2man.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/hostapd/hostapd.nm b/pkgs/hostapd/hostapd.nm index fdcd24817..0571e0f15 100644 --- a/pkgs/hostapd/hostapd.nm +++ b/pkgs/hostapd/hostapd.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/hplip/hplip.nm b/pkgs/hplip/hplip.nm index c765b6f3f..16eb31de4 100644 --- a/pkgs/hplip/hplip.nm +++ b/pkgs/hplip/hplip.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/htop/htop.nm b/pkgs/htop/htop.nm index ef549097d..efd8b877c 100644 --- a/pkgs/htop/htop.nm +++ b/pkgs/htop/htop.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/hwdata/hwdata.nm b/pkgs/hwdata/hwdata.nm index 0bfc7d759..049f410a5 100644 --- a/pkgs/hwdata/hwdata.nm +++ b/pkgs/hwdata/hwdata.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/iana-etc/iana-etc.nm b/pkgs/iana-etc/iana-etc.nm index 39ad9866e..5bf4a1369 100644 --- a/pkgs/iana-etc/iana-etc.nm +++ b/pkgs/iana-etc/iana-etc.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/icecream/icecream.nm b/pkgs/icecream/icecream.nm index 545bff932..793e1f5f4 100644 --- a/pkgs/icecream/icecream.nm +++ b/pkgs/icecream/icecream.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = Development/Compilers -PKG_URL = http://en.opensuse.org/Icecream -PKG_LICENSE = GPLv2+ -PKG_SUMMARY = Distributed compiler. +maintainer = Michael Tremer +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 diff --git a/pkgs/iftop/iftop.nm b/pkgs/iftop/iftop.nm index ddb0683d7..bee6dac1c 100644 --- a/pkgs/iftop/iftop.nm +++ b/pkgs/iftop/iftop.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/igmpproxy/igmpproxy.nm b/pkgs/igmpproxy/igmpproxy.nm index 90260aba8..41cff18ef 100644 --- a/pkgs/igmpproxy/igmpproxy.nm +++ b/pkgs/igmpproxy/igmpproxy.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/initscripts/initscripts.nm b/pkgs/initscripts/initscripts.nm index 4830e766e..c4fe57285 100644 --- a/pkgs/initscripts/initscripts.nm +++ b/pkgs/initscripts/initscripts.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/intltool/intltool.nm b/pkgs/intltool/intltool.nm index 74ae1e34a..23608e23c 100644 --- a/pkgs/intltool/intltool.nm +++ b/pkgs/intltool/intltool.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/iproute2/iproute2.nm b/pkgs/iproute2/iproute2.nm index ae6e407c6..14fe817cc 100644 --- a/pkgs/iproute2/iproute2.nm +++ b/pkgs/iproute2/iproute2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/iptables/iptables.nm b/pkgs/iptables/iptables.nm index 7ed99a3de..b7ce6aa3d 100644 --- a/pkgs/iptables/iptables.nm +++ b/pkgs/iptables/iptables.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/iputils/iputils.nm b/pkgs/iputils/iputils.nm index ae82eda9f..27b5fdef8 100644 --- a/pkgs/iputils/iputils.nm +++ b/pkgs/iputils/iputils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/iscsi-initiator-utils/iscsi-initiator-utils.nm b/pkgs/iscsi-initiator-utils/iscsi-initiator-utils.nm index c9d961460..01e61c8df 100644 --- a/pkgs/iscsi-initiator-utils/iscsi-initiator-utils.nm +++ b/pkgs/iscsi-initiator-utils/iscsi-initiator-utils.nm @@ -1,102 +1,98 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/iw/iw.nm b/pkgs/iw/iw.nm index 9861b48d8..ff42e1453 100644 --- a/pkgs/iw/iw.nm +++ b/pkgs/iw/iw.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/joe/joe.nm b/pkgs/joe/joe.nm index 803d72b1c..e3cc1bb6c 100644 --- a/pkgs/joe/joe.nm +++ b/pkgs/joe/joe.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/jwhois/jwhois.nm b/pkgs/jwhois/jwhois.nm index db3d19640..607a0ade2 100644 --- a/pkgs/jwhois/jwhois.nm +++ b/pkgs/jwhois/jwhois.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/kbd/kbd.nm b/pkgs/kbd/kbd.nm index e46b59d2f..daed6ac62 100644 --- a/pkgs/kbd/kbd.nm +++ b/pkgs/kbd/kbd.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/kernel/kernel.nm b/pkgs/kernel/kernel.nm index bddde4f4e..ce1f4ae00 100644 --- a/pkgs/kernel/kernel.nm +++ b/pkgs/kernel/kernel.nm @@ -1,112 +1,108 @@ ############################################################################### -# # -# 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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +groups = System/Kernels +url = http://www.kernel.org/ +license = GPLv2 +summary = The Linux kernel. -PKG_MAINTAINER = Michael Tremer -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 diff --git a/pkgs/l7-protocols/l7-protocols.nm b/pkgs/l7-protocols/l7-protocols.nm index d8bb40090..5be216acf 100644 --- a/pkgs/l7-protocols/l7-protocols.nm +++ b/pkgs/l7-protocols/l7-protocols.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ldapvi/ldapvi.nm b/pkgs/ldapvi/ldapvi.nm index 62a8acb92..75d397c32 100644 --- a/pkgs/ldapvi/ldapvi.nm +++ b/pkgs/ldapvi/ldapvi.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/less/less.nm b/pkgs/less/less.nm index 62daa9266..2e95742b7 100644 --- a/pkgs/less/less.nm +++ b/pkgs/less/less.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libICE/libICE.nm b/pkgs/libICE/libICE.nm index b6725851e..8ec2d8236 100644 --- a/pkgs/libICE/libICE.nm +++ b/pkgs/libICE/libICE.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libICE runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libSM/libSM.nm b/pkgs/libSM/libSM.nm index 1bfc15aa3..7c6cc8c3e 100644 --- a/pkgs/libSM/libSM.nm +++ b/pkgs/libSM/libSM.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libSM runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libVNCServer/libVNCServer.nm b/pkgs/libVNCServer/libVNCServer.nm index 4d69435c7..db77f0cbd 100644 --- a/pkgs/libVNCServer/libVNCServer.nm +++ b/pkgs/libVNCServer/libVNCServer.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libX11/libX11.nm b/pkgs/libX11/libX11.nm index c163bcf0b..f705a4841 100644 --- a/pkgs/libX11/libX11.nm +++ b/pkgs/libX11/libX11.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = libX11 -PKG_VER = 1.3.2 -PKG_REL = 0 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/libXau/libXau.nm b/pkgs/libXau/libXau.nm index 089bd014f..d35344b12 100644 --- a/pkgs/libXau/libXau.nm +++ b/pkgs/libXau/libXau.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = libXau -PKG_VER = 1.0.6 -PKG_REL = 1 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/libXaw/libXaw.nm b/pkgs/libXaw/libXaw.nm index 46b3f7e82..084330a11 100644 --- a/pkgs/libXaw/libXaw.nm +++ b/pkgs/libXaw/libXaw.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X Athena Widget Set. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXdamage/libXdamage.nm b/pkgs/libXdamage/libXdamage.nm index 204183bda..f8c2af7f7 100644 --- a/pkgs/libXdamage/libXdamage.nm +++ b/pkgs/libXdamage/libXdamage.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X Damage extension library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXdmcp/libXdmcp.nm b/pkgs/libXdmcp/libXdmcp.nm index b1a357d92..b5a5212c9 100644 --- a/pkgs/libXdmcp/libXdmcp.nm +++ b/pkgs/libXdmcp/libXdmcp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X Display Manager Control Protocol library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXext/libXext.nm b/pkgs/libXext/libXext.nm index a8163c924..5c65c16b0 100644 --- a/pkgs/libXext/libXext.nm +++ b/pkgs/libXext/libXext.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXext runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXfixes/libXfixes.nm b/pkgs/libXfixes/libXfixes.nm index d4209ffee..8ceb642fc 100644 --- a/pkgs/libXfixes/libXfixes.nm +++ b/pkgs/libXfixes/libXfixes.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X Fixes library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXfont/libXfont.nm b/pkgs/libXfont/libXfont.nm index a47de6541..42236acf5 100644 --- a/pkgs/libXfont/libXfont.nm +++ b/pkgs/libXfont/libXfont.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXfont runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXft/libXft.nm b/pkgs/libXft/libXft.nm index 0a964e6ff..171ca074c 100644 --- a/pkgs/libXft/libXft.nm +++ b/pkgs/libXft/libXft.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXft runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXi/libXi.nm b/pkgs/libXi/libXi.nm index 584c91b81..97dba7556 100644 --- a/pkgs/libXi/libXi.nm +++ b/pkgs/libXi/libXi.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://xcb.freedesktop.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXi runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXmu/libXmu.nm b/pkgs/libXmu/libXmu.nm index e6b6c989d..80328acbf 100644 --- a/pkgs/libXmu/libXmu.nm +++ b/pkgs/libXmu/libXmu.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -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 +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 diff --git a/pkgs/libXpm/libXpm.nm b/pkgs/libXpm/libXpm.nm index f8ec21127..ce78a7e24 100644 --- a/pkgs/libXpm/libXpm.nm +++ b/pkgs/libXpm/libXpm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXpm runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXrandr/libXrandr.nm b/pkgs/libXrandr/libXrandr.nm index 29481d696..d4d9fdd24 100644 --- a/pkgs/libXrandr/libXrandr.nm +++ b/pkgs/libXrandr/libXrandr.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X11 libXrandr runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXrender/libXrender.nm b/pkgs/libXrender/libXrender.nm index fd5bb0784..b622d9a52 100644 --- a/pkgs/libXrender/libXrender.nm +++ b/pkgs/libXrender/libXrender.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X11 libXrender runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXres/libXres.nm b/pkgs/libXres/libXres.nm index 8d63dc002..d03e476a9 100644 --- a/pkgs/libXres/libXres.nm +++ b/pkgs/libXres/libXres.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = libXres -PKG_VER = 1.0.4 -PKG_REL = 0 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/libXt/libXt.nm b/pkgs/libXt/libXt.nm index 46f581ea5..7bc1eae33 100644 --- a/pkgs/libXt/libXt.nm +++ b/pkgs/libXt/libXt.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = libXt -PKG_VER = 1.0.7 -PKG_REL = 0 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/libXtst/libXtst.nm b/pkgs/libXtst/libXtst.nm index ed5ecc52c..68b4c1090 100644 --- a/pkgs/libXtst/libXtst.nm +++ b/pkgs/libXtst/libXtst.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXtst runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXv/libXv.nm b/pkgs/libXv/libXv.nm index 0ee04ad5b..50fb007f0 100644 --- a/pkgs/libXv/libXv.nm +++ b/pkgs/libXv/libXv.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXv runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXvMC/libXvMC.nm b/pkgs/libXvMC/libXvMC.nm index 74fbe2ab0..d552db0f9 100644 --- a/pkgs/libXvMC/libXvMC.nm +++ b/pkgs/libXvMC/libXvMC.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXvMC runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libXxf86vm/libXxf86vm.nm b/pkgs/libXxf86vm/libXxf86vm.nm index c9807429b..b850e10e7 100644 --- a/pkgs/libXxf86vm/libXxf86vm.nm +++ b/pkgs/libXxf86vm/libXxf86vm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libXxf86vm runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libaal/libaal.nm b/pkgs/libaal/libaal.nm index 4da38c215..e54901529 100644 --- a/pkgs/libaal/libaal.nm +++ b/pkgs/libaal/libaal.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libaio/libaio.nm b/pkgs/libaio/libaio.nm index 8f82b3731..9ea613770 100644 --- a/pkgs/libaio/libaio.nm +++ b/pkgs/libaio/libaio.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libarchive/libarchive.nm b/pkgs/libarchive/libarchive.nm index 65c59bca4..1bd86320f 100644 --- a/pkgs/libarchive/libarchive.nm +++ b/pkgs/libarchive/libarchive.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libart/libart.nm b/pkgs/libart/libart.nm index 3922a6fca..ced0ca9dc 100644 --- a/pkgs/libart/libart.nm +++ b/pkgs/libart/libart.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libassuan/libassuan.nm b/pkgs/libassuan/libassuan.nm index 3f9c2c119..d120ce01c 100644 --- a/pkgs/libassuan/libassuan.nm +++ b/pkgs/libassuan/libassuan.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libatasmart/libatasmart.nm b/pkgs/libatasmart/libatasmart.nm index d744b4dd7..6bbf1157e 100644 --- a/pkgs/libatasmart/libatasmart.nm +++ b/pkgs/libatasmart/libatasmart.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libcap-ng/libcap-ng.nm b/pkgs/libcap-ng/libcap-ng.nm index f056d9d3d..36b5a787a 100644 --- a/pkgs/libcap-ng/libcap-ng.nm +++ b/pkgs/libcap-ng/libcap-ng.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libcap/libcap.nm b/pkgs/libcap/libcap.nm index b9b5a3dad..5b5f1ed5b 100644 --- a/pkgs/libcap/libcap.nm +++ b/pkgs/libcap/libcap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libcgroup/libcgroup.nm b/pkgs/libcgroup/libcgroup.nm index 89ec0c4e5..893b5551e 100644 --- a/pkgs/libcgroup/libcgroup.nm +++ b/pkgs/libcgroup/libcgroup.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libdaemon/libdaemon.nm b/pkgs/libdaemon/libdaemon.nm index b5186e463..6a1514964 100644 --- a/pkgs/libdaemon/libdaemon.nm +++ b/pkgs/libdaemon/libdaemon.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libdnet/libdnet.nm b/pkgs/libdnet/libdnet.nm index d49e860af..e77066990 100644 --- a/pkgs/libdnet/libdnet.nm +++ b/pkgs/libdnet/libdnet.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libdrm/libdrm.nm b/pkgs/libdrm/libdrm.nm index b2ced13f7..40efa2a17 100644 --- a/pkgs/libdrm/libdrm.nm +++ b/pkgs/libdrm/libdrm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = libdrm -PKG_VER = 2.4.21 -PKG_REL = 0 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/libedit/libedit.nm b/pkgs/libedit/libedit.nm index 23f1647d3..4cd530548 100644 --- a/pkgs/libedit/libedit.nm +++ b/pkgs/libedit/libedit.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libevent/libevent.nm b/pkgs/libevent/libevent.nm index d0bf9818a..b0d4f12cd 100644 --- a/pkgs/libevent/libevent.nm +++ b/pkgs/libevent/libevent.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libffi/libffi.nm b/pkgs/libffi/libffi.nm index 414e5b845..ea4cafd3e 100644 --- a/pkgs/libffi/libffi.nm +++ b/pkgs/libffi/libffi.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libfontenc/libfontenc.nm b/pkgs/libfontenc/libfontenc.nm index 397fd2db6..679bb90fe 100644 --- a/pkgs/libfontenc/libfontenc.nm +++ b/pkgs/libfontenc/libfontenc.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libfontenc runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libgcrypt/libgcrypt.nm b/pkgs/libgcrypt/libgcrypt.nm index a806c2cd7..708cfd16b 100644 --- a/pkgs/libgcrypt/libgcrypt.nm +++ b/pkgs/libgcrypt/libgcrypt.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libgpg-error/libgpg-error.nm b/pkgs/libgpg-error/libgpg-error.nm index 87754a643..637b9c279 100644 --- a/pkgs/libgpg-error/libgpg-error.nm +++ b/pkgs/libgpg-error/libgpg-error.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libgssglue/libgssglue.nm b/pkgs/libgssglue/libgssglue.nm index 82fb3f964..24ce555c3 100644 --- a/pkgs/libgssglue/libgssglue.nm +++ b/pkgs/libgssglue/libgssglue.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libidn/libidn.nm b/pkgs/libidn/libidn.nm index 3d94af73a..35109f7ec 100644 --- a/pkgs/libidn/libidn.nm +++ b/pkgs/libidn/libidn.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libjpeg/libjpeg.nm b/pkgs/libjpeg/libjpeg.nm index 74952d22d..ff129c4be 100644 --- a/pkgs/libjpeg/libjpeg.nm +++ b/pkgs/libjpeg/libjpeg.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libksba/libksba.nm b/pkgs/libksba/libksba.nm index ef19e17f4..63ecf9305 100644 --- a/pkgs/libksba/libksba.nm +++ b/pkgs/libksba/libksba.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libmng/libmng.nm b/pkgs/libmng/libmng.nm index 9cdeab08f..e4819aa69 100644 --- a/pkgs/libmng/libmng.nm +++ b/pkgs/libmng/libmng.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libmpc/libmpc.nm b/pkgs/libmpc/libmpc.nm index 491940717..d490d1849 100644 --- a/pkgs/libmpc/libmpc.nm +++ b/pkgs/libmpc/libmpc.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libnet/libnet.nm b/pkgs/libnet/libnet.nm index 302c8ca60..fa368c4a1 100644 --- a/pkgs/libnet/libnet.nm +++ b/pkgs/libnet/libnet.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libnetfilter_conntrack/libnetfilter_conntrack.nm b/pkgs/libnetfilter_conntrack/libnetfilter_conntrack.nm index 0b995b096..40a8b9bff 100644 --- a/pkgs/libnetfilter_conntrack/libnetfilter_conntrack.nm +++ b/pkgs/libnetfilter_conntrack/libnetfilter_conntrack.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libnetfilter_log/libnetfilter_log.nm b/pkgs/libnetfilter_log/libnetfilter_log.nm index eb28dcc6c..ad6bd9218 100644 --- a/pkgs/libnetfilter_log/libnetfilter_log.nm +++ b/pkgs/libnetfilter_log/libnetfilter_log.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libnetfilter_queue/libnetfilter_queue.nm b/pkgs/libnetfilter_queue/libnetfilter_queue.nm index d45651c13..ee20f9b6c 100644 --- a/pkgs/libnetfilter_queue/libnetfilter_queue.nm +++ b/pkgs/libnetfilter_queue/libnetfilter_queue.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libnfnetlink/libnfnetlink.nm b/pkgs/libnfnetlink/libnfnetlink.nm index d85a768bb..70756bc54 100644 --- a/pkgs/libnfnetlink/libnfnetlink.nm +++ b/pkgs/libnfnetlink/libnfnetlink.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libnfsidmap/libnfsidmap.nm b/pkgs/libnfsidmap/libnfsidmap.nm index 188cf52c1..eb7894d46 100644 --- a/pkgs/libnfsidmap/libnfsidmap.nm +++ b/pkgs/libnfsidmap/libnfsidmap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libnl/libnl.nm b/pkgs/libnl/libnl.nm index be5497bd6..a8d3cae4f 100644 --- a/pkgs/libnl/libnl.nm +++ b/pkgs/libnl/libnl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libpcap/libpcap.nm b/pkgs/libpcap/libpcap.nm index 7b5a6a62c..372b1ed00 100644 --- a/pkgs/libpcap/libpcap.nm +++ b/pkgs/libpcap/libpcap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libpciaccess/libpciaccess.nm b/pkgs/libpciaccess/libpciaccess.nm index 9a92c8502..4a4b1ca3e 100644 --- a/pkgs/libpciaccess/libpciaccess.nm +++ b/pkgs/libpciaccess/libpciaccess.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libpipeline/libpipeline.nm b/pkgs/libpipeline/libpipeline.nm index 0a266bf0d..3213e6873 100644 --- a/pkgs/libpipeline/libpipeline.nm +++ b/pkgs/libpipeline/libpipeline.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libpng/libpng.nm b/pkgs/libpng/libpng.nm index f8a035baf..3b1ded281 100644 --- a/pkgs/libpng/libpng.nm +++ b/pkgs/libpng/libpng.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/librpcsecgss/librpcsecgss.nm b/pkgs/librpcsecgss/librpcsecgss.nm index b2af7acc1..5c2d073cc 100644 --- a/pkgs/librpcsecgss/librpcsecgss.nm +++ b/pkgs/librpcsecgss/librpcsecgss.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libselinux/libselinux.nm b/pkgs/libselinux/libselinux.nm index a1a141a0e..ebffd37b2 100644 --- a/pkgs/libselinux/libselinux.nm +++ b/pkgs/libselinux/libselinux.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libsemanage/libsemanage.nm b/pkgs/libsemanage/libsemanage.nm index 9c8ae26f7..f5435954f 100644 --- a/pkgs/libsemanage/libsemanage.nm +++ b/pkgs/libsemanage/libsemanage.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libsepol/libsepol.nm b/pkgs/libsepol/libsepol.nm index 5ee6810ce..dbecc79f4 100644 --- a/pkgs/libsepol/libsepol.nm +++ b/pkgs/libsepol/libsepol.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libsigc++/libsigc++.nm b/pkgs/libsigc++/libsigc++.nm index 28499a8d9..e672087e8 100644 --- a/pkgs/libsigc++/libsigc++.nm +++ b/pkgs/libsigc++/libsigc++.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libsolv/libsolv.nm b/pkgs/libsolv/libsolv.nm index d01756056..f11aae880 100644 --- a/pkgs/libsolv/libsolv.nm +++ b/pkgs/libsolv/libsolv.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -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 +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 diff --git a/pkgs/libsoup/libsoup.nm b/pkgs/libsoup/libsoup.nm index 1f022c8c3..f91b31d30 100644 --- a/pkgs/libsoup/libsoup.nm +++ b/pkgs/libsoup/libsoup.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libssh2/libssh2.nm b/pkgs/libssh2/libssh2.nm index fcb571045..351fcd5f1 100644 --- a/pkgs/libssh2/libssh2.nm +++ b/pkgs/libssh2/libssh2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libtasn1/libtasn1.nm b/pkgs/libtasn1/libtasn1.nm index 22e8e5eb7..8ffb47b68 100644 --- a/pkgs/libtasn1/libtasn1.nm +++ b/pkgs/libtasn1/libtasn1.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libtiff/libtiff.nm b/pkgs/libtiff/libtiff.nm index 379c5cc1a..876d121e1 100644 --- a/pkgs/libtiff/libtiff.nm +++ b/pkgs/libtiff/libtiff.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libtool/libtool.nm b/pkgs/libtool/libtool.nm index 9b8d99d73..3012a96e0 100644 --- a/pkgs/libtool/libtool.nm +++ b/pkgs/libtool/libtool.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libtorrent/libtorrent.nm b/pkgs/libtorrent/libtorrent.nm index 89c0cda17..b989dabdb 100644 --- a/pkgs/libtorrent/libtorrent.nm +++ b/pkgs/libtorrent/libtorrent.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libusb-compat/libusb-compat.nm b/pkgs/libusb-compat/libusb-compat.nm index e34371872..909c6d7fc 100644 --- a/pkgs/libusb-compat/libusb-compat.nm +++ b/pkgs/libusb-compat/libusb-compat.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libusb/libusb.nm b/pkgs/libusb/libusb.nm index eb1b39851..6bbf64b11 100644 --- a/pkgs/libusb/libusb.nm +++ b/pkgs/libusb/libusb.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libuser/libuser.nm b/pkgs/libuser/libuser.nm index a5bd8e9ba..12db98425 100644 --- a/pkgs/libuser/libuser.nm +++ b/pkgs/libuser/libuser.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libvirt/libvirt.nm b/pkgs/libvirt/libvirt.nm index 2fb66710a..7618b543a 100644 --- a/pkgs/libvirt/libvirt.nm +++ b/pkgs/libvirt/libvirt.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libxcb/libxcb.nm b/pkgs/libxcb/libxcb.nm index 59ab848f9..a96db904f 100644 --- a/pkgs/libxcb/libxcb.nm +++ b/pkgs/libxcb/libxcb.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = libxcb -PKG_VER = 1.7 -PKG_REL = 1 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/libxkbfile/libxkbfile.nm b/pkgs/libxkbfile/libxkbfile.nm index 5463bae1e..6fa7cf41b 100644 --- a/pkgs/libxkbfile/libxkbfile.nm +++ b/pkgs/libxkbfile/libxkbfile.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org -PKG_LICENSE = MIT -PKG_SUMMARY = X.Org X11 libxkbfile runtime library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libxml2/libxml2.nm b/pkgs/libxml2/libxml2.nm index 81215ac1b..322e60b52 100644 --- a/pkgs/libxml2/libxml2.nm +++ b/pkgs/libxml2/libxml2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/libxslt/libxslt.nm b/pkgs/libxslt/libxslt.nm index 2a5c8dcf5..8a12e806a 100644 --- a/pkgs/libxslt/libxslt.nm +++ b/pkgs/libxslt/libxslt.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = Development/Libraries -PKG_URL = http://xmlsoft.org/XSLT/ -PKG_LICENSE = MIT -PKG_SUMMARY = Library providing the Gnome XSLT engine. +maintainer = Stefan Schantl +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 diff --git a/pkgs/libyaml/libyaml.nm b/pkgs/libyaml/libyaml.nm index 5bed2d20c..420920d64 100644 --- a/pkgs/libyaml/libyaml.nm +++ b/pkgs/libyaml/libyaml.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/lighttpd/lighttpd.nm b/pkgs/lighttpd/lighttpd.nm index 9d704983e..9d4ce5c27 100644 --- a/pkgs/lighttpd/lighttpd.nm +++ b/pkgs/lighttpd/lighttpd.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = lighttpd -PKG_VER = 1.4.29 -PKG_REL = 1 - -PKG_MAINTAINER = Michael Tremer -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 +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 diff --git a/pkgs/linux-atm/linux-atm.nm b/pkgs/linux-atm/linux-atm.nm index ff62237a5..9970c2953 100644 --- a/pkgs/linux-atm/linux-atm.nm +++ b/pkgs/linux-atm/linux-atm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/linux-firmware/linux-firmware.nm b/pkgs/linux-firmware/linux-firmware.nm index 0cccc26c3..f83462e87 100644 --- a/pkgs/linux-firmware/linux-firmware.nm +++ b/pkgs/linux-firmware/linux-firmware.nm @@ -1,53 +1,39 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007-2011 IPFire Team # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -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 +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 diff --git a/pkgs/lldpd/lldpd.nm b/pkgs/lldpd/lldpd.nm index bf67054da..271e9ad5f 100644 --- a/pkgs/lldpd/lldpd.nm +++ b/pkgs/lldpd/lldpd.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/lm-sensors/lm-sensors.nm b/pkgs/lm-sensors/lm-sensors.nm index 902331490..f68665384 100644 --- a/pkgs/lm-sensors/lm-sensors.nm +++ b/pkgs/lm-sensors/lm-sensors.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/logrotate/logrotate.nm b/pkgs/logrotate/logrotate.nm index 0f1cf5a29..9b083c9ae 100644 --- a/pkgs/logrotate/logrotate.nm +++ b/pkgs/logrotate/logrotate.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/lsof/lsof.nm b/pkgs/lsof/lsof.nm index c8f01c683..527e45aa4 100644 --- a/pkgs/lsof/lsof.nm +++ b/pkgs/lsof/lsof.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/lua/lua.nm b/pkgs/lua/lua.nm index 4ecdd3249..a3231db09 100644 --- a/pkgs/lua/lua.nm +++ b/pkgs/lua/lua.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/lvm2/lvm2.nm b/pkgs/lvm2/lvm2.nm index e6741b552..0612e0232 100644 --- a/pkgs/lvm2/lvm2.nm +++ b/pkgs/lvm2/lvm2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/lzo/lzo.nm b/pkgs/lzo/lzo.nm index 7146224cb..0aac74875 100644 --- a/pkgs/lzo/lzo.nm +++ b/pkgs/lzo/lzo.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/m4/m4.nm b/pkgs/m4/m4.nm index a2132efd5..837951afc 100644 --- a/pkgs/m4/m4.nm +++ b/pkgs/m4/m4.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/mailcap/mailcap.nm b/pkgs/mailcap/mailcap.nm index b17f6f310..01fd954b7 100644 --- a/pkgs/mailcap/mailcap.nm +++ b/pkgs/mailcap/mailcap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/make/make.nm b/pkgs/make/make.nm index 63e0b2503..da9192a43 100644 --- a/pkgs/make/make.nm +++ b/pkgs/make/make.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = make -PKG_VER = 3.81 -PKG_REL = 0 - -PKG_MAINTAINER = Michael Tremer -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 +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 diff --git a/pkgs/man-db/man-db.nm b/pkgs/man-db/man-db.nm index 3f0ee45db..2d6ad4cc4 100644 --- a/pkgs/man-db/man-db.nm +++ b/pkgs/man-db/man-db.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/man-pages/man-pages.nm b/pkgs/man-pages/man-pages.nm index de2cfcc8f..8f05558f3 100644 --- a/pkgs/man-pages/man-pages.nm +++ b/pkgs/man-pages/man-pages.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/mc/mc.nm b/pkgs/mc/mc.nm index 6625e4ab1..dee107de3 100644 --- a/pkgs/mc/mc.nm +++ b/pkgs/mc/mc.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/mdadm/mdadm.nm b/pkgs/mdadm/mdadm.nm index d2a5f0c5f..165ee4050 100644 --- a/pkgs/mdadm/mdadm.nm +++ b/pkgs/mdadm/mdadm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/memtest86+/memtest86+.nm b/pkgs/memtest86+/memtest86+.nm index 0556b96e9..dd024d324 100644 --- a/pkgs/memtest86+/memtest86+.nm +++ b/pkgs/memtest86+/memtest86+.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/mesa/mesa.nm b/pkgs/mesa/mesa.nm index 1d32a8ccd..aa7c73ef9 100644 --- a/pkgs/mesa/mesa.nm +++ b/pkgs/mesa/mesa.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/minicom/minicom.nm b/pkgs/minicom/minicom.nm index 175bf1779..3ab786746 100644 --- a/pkgs/minicom/minicom.nm +++ b/pkgs/minicom/minicom.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/module-init-tools/module-init-tools.nm b/pkgs/module-init-tools/module-init-tools.nm index 0c4c3078f..d395fcf49 100644 --- a/pkgs/module-init-tools/module-init-tools.nm +++ b/pkgs/module-init-tools/module-init-tools.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/mpfr/mpfr.nm b/pkgs/mpfr/mpfr.nm index b7074aefa..da36d028b 100644 --- a/pkgs/mpfr/mpfr.nm +++ b/pkgs/mpfr/mpfr.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/multipath-tools/multipath-tools.nm b/pkgs/multipath-tools/multipath-tools.nm index aa2bbfb9a..ec7b49954 100644 --- a/pkgs/multipath-tools/multipath-tools.nm +++ b/pkgs/multipath-tools/multipath-tools.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nano/nano.nm b/pkgs/nano/nano.nm index b33d66c85..7d38f23dc 100644 --- a/pkgs/nano/nano.nm +++ b/pkgs/nano/nano.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nasm/nasm.nm b/pkgs/nasm/nasm.nm index 4e70aa260..8fc7336d1 100644 --- a/pkgs/nasm/nasm.nm +++ b/pkgs/nasm/nasm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ncurses/ncurses.nm b/pkgs/ncurses/ncurses.nm index 6fd0c33bc..063f472b2 100644 --- a/pkgs/ncurses/ncurses.nm +++ b/pkgs/ncurses/ncurses.nm @@ -1,133 +1,122 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/net-snmp/net-snmp.nm b/pkgs/net-snmp/net-snmp.nm index 6acdb9f6a..18771d3cc 100644 --- a/pkgs/net-snmp/net-snmp.nm +++ b/pkgs/net-snmp/net-snmp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/net-tools/net-tools.nm b/pkgs/net-tools/net-tools.nm index 71dea3230..46bf2f0f2 100644 --- a/pkgs/net-tools/net-tools.nm +++ b/pkgs/net-tools/net-tools.nm @@ -1,166 +1,155 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/netplug/netplug.nm b/pkgs/netplug/netplug.nm index d57854d5b..302cf70a0 100644 --- a/pkgs/netplug/netplug.nm +++ b/pkgs/netplug/netplug.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nettle/nettle.nm b/pkgs/nettle/nettle.nm index f3b03dee8..6ae463158 100644 --- a/pkgs/nettle/nettle.nm +++ b/pkgs/nettle/nettle.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/network/network.nm b/pkgs/network/network.nm index d818cc423..0207ff480 100644 --- a/pkgs/network/network.nm +++ b/pkgs/network/network.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = Base Networking/Tools -PKG_URL = http://www.ipfire.org/ -PKG_LICENSE = GPLv3+ -PKG_SUMMARY = The IPFire Networking Scripts. +maintainer = Michael Tremer +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 diff --git a/pkgs/newt/newt.nm b/pkgs/newt/newt.nm index 65d41d0c6..8688ed3fe 100644 --- a/pkgs/newt/newt.nm +++ b/pkgs/newt/newt.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nfs-utils/nfs-utils.nm b/pkgs/nfs-utils/nfs-utils.nm index a9dca115c..dbf24b72b 100644 --- a/pkgs/nfs-utils/nfs-utils.nm +++ b/pkgs/nfs-utils/nfs-utils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nmap/nmap.nm b/pkgs/nmap/nmap.nm index 78e7c9d7a..a439ed18c 100644 --- a/pkgs/nmap/nmap.nm +++ b/pkgs/nmap/nmap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/noip/noip.nm b/pkgs/noip/noip.nm index d2a816b05..16eaab2ae 100644 --- a/pkgs/noip/noip.nm +++ b/pkgs/noip/noip.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nspr/nspr.nm b/pkgs/nspr/nspr.nm index 5a0288718..8e84280cc 100644 --- a/pkgs/nspr/nspr.nm +++ b/pkgs/nspr/nspr.nm @@ -1,109 +1,98 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nss-myhostname/nss-myhostname.nm b/pkgs/nss-myhostname/nss-myhostname.nm index b130e6e54..9573d49b6 100644 --- a/pkgs/nss-myhostname/nss-myhostname.nm +++ b/pkgs/nss-myhostname/nss-myhostname.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nss-softokn/nss-softokn.nm b/pkgs/nss-softokn/nss-softokn.nm index 4cdcf4e6a..2dc0cddd8 100644 --- a/pkgs/nss-softokn/nss-softokn.nm +++ b/pkgs/nss-softokn/nss-softokn.nm @@ -1,131 +1,126 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nss-util/nss-util.nm b/pkgs/nss-util/nss-util.nm index b6cad9c02..3ae22ba96 100644 --- a/pkgs/nss-util/nss-util.nm +++ b/pkgs/nss-util/nss-util.nm @@ -1,109 +1,104 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nss/nss.nm b/pkgs/nss/nss.nm index c2848ba10..8ccc9b6a1 100644 --- a/pkgs/nss/nss.nm +++ b/pkgs/nss/nss.nm @@ -1,225 +1,237 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/nss_ldap/nss_ldap.nm b/pkgs/nss_ldap/nss_ldap.nm index 78ded41e2..b5293ab93 100644 --- a/pkgs/nss_ldap/nss_ldap.nm +++ b/pkgs/nss_ldap/nss_ldap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/openl2tp/openl2tp.nm b/pkgs/openl2tp/openl2tp.nm index 5752fba2d..38ce8eaf3 100644 --- a/pkgs/openl2tp/openl2tp.nm +++ b/pkgs/openl2tp/openl2tp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/openldap/openldap.nm b/pkgs/openldap/openldap.nm index 77bf1b31a..028ca96e2 100644 --- a/pkgs/openldap/openldap.nm +++ b/pkgs/openldap/openldap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/openssh/openssh.nm b/pkgs/openssh/openssh.nm index ca079ebf3..3deb36401 100644 --- a/pkgs/openssh/openssh.nm +++ b/pkgs/openssh/openssh.nm @@ -1,130 +1,143 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/openssl/openssl.nm b/pkgs/openssl/openssl.nm index 95c388ecc..fd66c7800 100644 --- a/pkgs/openssl/openssl.nm +++ b/pkgs/openssl/openssl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +groups = System/Libraries +url = http://www.openssl.org/ +license = OpenSSL +summary = A general purpose cryptography library with TLS implementation. -PKG_MAINTAINER = Michael Tremer -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 diff --git a/pkgs/openvpn/openvpn.nm b/pkgs/openvpn/openvpn.nm index cbcc9a078..6da76f629 100644 --- a/pkgs/openvpn/openvpn.nm +++ b/pkgs/openvpn/openvpn.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/os-prober/os-prober.nm b/pkgs/os-prober/os-prober.nm index 32c924d84..25b013c0e 100644 --- a/pkgs/os-prober/os-prober.nm +++ b/pkgs/os-prober/os-prober.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/p11-kit/p11-kit.nm b/pkgs/p11-kit/p11-kit.nm index f045f5015..7bd7b2359 100644 --- a/pkgs/p11-kit/p11-kit.nm +++ b/pkgs/p11-kit/p11-kit.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pakfire/pakfire.nm b/pkgs/pakfire/pakfire.nm index fadcd9d96..883cba131 100644 --- a/pkgs/pakfire/pakfire.nm +++ b/pkgs/pakfire/pakfire.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = Base System/Packaging -PKG_URL = http://www.ipfire.org/ -PKG_LICENSE = GPLv3+ -PKG_SUMMARY = Package installer/updater. +maintainer = Michael Tremer +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 diff --git a/pkgs/pam/pam.nm b/pkgs/pam/pam.nm index 45f88c73b..a88376832 100644 --- a/pkgs/pam/pam.nm +++ b/pkgs/pam/pam.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pam_ldap/pam_ldap.nm b/pkgs/pam_ldap/pam_ldap.nm index f12b7275e..f7ae56514 100644 --- a/pkgs/pam_ldap/pam_ldap.nm +++ b/pkgs/pam_ldap/pam_ldap.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pango/pango.nm b/pkgs/pango/pango.nm index 3a5934bda..d189ce1ba 100644 --- a/pkgs/pango/pango.nm +++ b/pkgs/pango/pango.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/parted/parted.nm b/pkgs/parted/parted.nm index 72543cb60..d419fc9d0 100644 --- a/pkgs/parted/parted.nm +++ b/pkgs/parted/parted.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/passwd/passwd.nm b/pkgs/passwd/passwd.nm index d506c19a5..5d2e2ebda 100644 --- a/pkgs/passwd/passwd.nm +++ b/pkgs/passwd/passwd.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/patch/patch.nm b/pkgs/patch/patch.nm index c42c42aeb..642be7d24 100644 --- a/pkgs/patch/patch.nm +++ b/pkgs/patch/patch.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pax-utils/pax-utils.nm b/pkgs/pax-utils/pax-utils.nm index f6dc4c98c..4f9debb41 100644 --- a/pkgs/pax-utils/pax-utils.nm +++ b/pkgs/pax-utils/pax-utils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/paxctl/paxctl.nm b/pkgs/paxctl/paxctl.nm index 855a2849e..ed11ec4af 100644 --- a/pkgs/paxctl/paxctl.nm +++ b/pkgs/paxctl/paxctl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/paxtest/paxtest.nm b/pkgs/paxtest/paxtest.nm index cde2a702c..60840aa09 100644 --- a/pkgs/paxtest/paxtest.nm +++ b/pkgs/paxtest/paxtest.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pcapy/pcapy.nm b/pkgs/pcapy/pcapy.nm index f0cf4910d..16b72f3aa 100644 --- a/pkgs/pcapy/pcapy.nm +++ b/pkgs/pcapy/pcapy.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pciutils/pciutils.nm b/pkgs/pciutils/pciutils.nm index 5617812a2..360119b0c 100644 --- a/pkgs/pciutils/pciutils.nm +++ b/pkgs/pciutils/pciutils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pcre/pcre.nm b/pkgs/pcre/pcre.nm index 4d7d3fdfb..b7a9da20b 100644 --- a/pkgs/pcre/pcre.nm +++ b/pkgs/pcre/pcre.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pdns-recursor/pdns-recursor.nm b/pkgs/pdns-recursor/pdns-recursor.nm index 901517b6d..e8d839d57 100644 --- a/pkgs/pdns-recursor/pdns-recursor.nm +++ b/pkgs/pdns-recursor/pdns-recursor.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pdns/pdns.nm b/pkgs/pdns/pdns.nm index 4e572858d..39d3edc82 100644 --- a/pkgs/pdns/pdns.nm +++ b/pkgs/pdns/pdns.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/perl-HTML-Parser/perl-HTML-Parser.nm b/pkgs/perl-HTML-Parser/perl-HTML-Parser.nm index f03ff420d..b853fe096 100644 --- a/pkgs/perl-HTML-Parser/perl-HTML-Parser.nm +++ b/pkgs/perl-HTML-Parser/perl-HTML-Parser.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/perl-HTML-Tagset/perl-HTML-Tagset.nm b/pkgs/perl-HTML-Tagset/perl-HTML-Tagset.nm index 95af0db63..105196c44 100644 --- a/pkgs/perl-HTML-Tagset/perl-HTML-Tagset.nm +++ b/pkgs/perl-HTML-Tagset/perl-HTML-Tagset.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/perl-Test-Simple/perl-Test-Simple.nm b/pkgs/perl-Test-Simple/perl-Test-Simple.nm index 3e133e267..d70a35bf1 100644 --- a/pkgs/perl-Test-Simple/perl-Test-Simple.nm +++ b/pkgs/perl-Test-Simple/perl-Test-Simple.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/perl-URI/perl-URI.nm b/pkgs/perl-URI/perl-URI.nm index 00c040d93..cd88c7d60 100644 --- a/pkgs/perl-URI/perl-URI.nm +++ b/pkgs/perl-URI/perl-URI.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/perl-XML-Parser/perl-XML-Parser.nm b/pkgs/perl-XML-Parser/perl-XML-Parser.nm index ea9d601db..588a6d997 100644 --- a/pkgs/perl-XML-Parser/perl-XML-Parser.nm +++ b/pkgs/perl-XML-Parser/perl-XML-Parser.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/perl-libwww-perl/perl-libwww-perl.nm b/pkgs/perl-libwww-perl/perl-libwww-perl.nm index 323b06335..f7e584302 100644 --- a/pkgs/perl-libwww-perl/perl-libwww-perl.nm +++ b/pkgs/perl-libwww-perl/perl-libwww-perl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/perl/perl.nm b/pkgs/perl/perl.nm index 5904e3bde..5389fcd8f 100644 --- a/pkgs/perl/perl.nm +++ b/pkgs/perl/perl.nm @@ -1,156 +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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pinentry/pinentry.nm b/pkgs/pinentry/pinentry.nm index 6bbcbf49d..ce91c338b 100644 --- a/pkgs/pinentry/pinentry.nm +++ b/pkgs/pinentry/pinentry.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pixman/pixman.nm b/pkgs/pixman/pixman.nm index 53d7d1580..850466a1f 100644 --- a/pkgs/pixman/pixman.nm +++ b/pkgs/pixman/pixman.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pkg-config/pkg-config.nm b/pkgs/pkg-config/pkg-config.nm index aca54ba62..25b01b349 100644 --- a/pkgs/pkg-config/pkg-config.nm +++ b/pkgs/pkg-config/pkg-config.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/polkit/polkit.nm b/pkgs/polkit/polkit.nm index 6177047e7..ac0e03916 100644 --- a/pkgs/polkit/polkit.nm +++ b/pkgs/polkit/polkit.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/popt/popt.nm b/pkgs/popt/popt.nm index 24f22aa33..e998cf85f 100644 --- a/pkgs/popt/popt.nm +++ b/pkgs/popt/popt.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/powertop/powertop.nm b/pkgs/powertop/powertop.nm index 2c5bc574a..5ea577ead 100644 --- a/pkgs/powertop/powertop.nm +++ b/pkgs/powertop/powertop.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ppl/ppl.nm b/pkgs/ppl/ppl.nm index 897d76150..60c5cf27f 100644 --- a/pkgs/ppl/ppl.nm +++ b/pkgs/ppl/ppl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = ppl -PKG_VER = 0.11.2 -PKG_REL = 1 - -PKG_MAINTAINER = Michael Tremer -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 +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 diff --git a/pkgs/ppp/ppp.nm b/pkgs/ppp/ppp.nm index de1eebbd2..3e35b44c1 100644 --- a/pkgs/ppp/ppp.nm +++ b/pkgs/ppp/ppp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pptp/pptp.nm b/pkgs/pptp/pptp.nm index da9f53f96..0ce873d86 100644 --- a/pkgs/pptp/pptp.nm +++ b/pkgs/pptp/pptp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/procps/procps.nm b/pkgs/procps/procps.nm index ed9fc3c39..45f4845d2 100644 --- a/pkgs/procps/procps.nm +++ b/pkgs/procps/procps.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/psmisc/psmisc.nm b/pkgs/psmisc/psmisc.nm index 95f6126f8..3601591cf 100644 --- a/pkgs/psmisc/psmisc.nm +++ b/pkgs/psmisc/psmisc.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pth/pth.nm b/pkgs/pth/pth.nm index 8297b441a..832d2abbc 100644 --- a/pkgs/pth/pth.nm +++ b/pkgs/pth/pth.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pyQt/pyQt.nm b/pkgs/pyQt/pyQt.nm index 7023d91bc..f553a1bcf 100644 --- a/pkgs/pyQt/pyQt.nm +++ b/pkgs/pyQt/pyQt.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pychecker/pychecker.nm b/pkgs/pychecker/pychecker.nm index e4ab539ff..b255c0aab 100644 --- a/pkgs/pychecker/pychecker.nm +++ b/pkgs/pychecker/pychecker.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pyfire/pyfire.nm b/pkgs/pyfire/pyfire.nm index cc4d3ad65..03b674b4d 100644 --- a/pkgs/pyfire/pyfire.nm +++ b/pkgs/pyfire/pyfire.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pygobject2/pygobject2.nm b/pkgs/pygobject2/pygobject2.nm index 3141808e6..ccdcc43e0 100644 --- a/pkgs/pygobject2/pygobject2.nm +++ b/pkgs/pygobject2/pygobject2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pyliblzma/pyliblzma.nm b/pkgs/pyliblzma/pyliblzma.nm index d753a8178..48450d735 100644 --- a/pkgs/pyliblzma/pyliblzma.nm +++ b/pkgs/pyliblzma/pyliblzma.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pyserial/pyserial.nm b/pkgs/pyserial/pyserial.nm index a6cd3dcf0..ba33766e8 100644 --- a/pkgs/pyserial/pyserial.nm +++ b/pkgs/pyserial/pyserial.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-IPy/python-IPy.nm b/pkgs/python-IPy/python-IPy.nm index 1206f0545..345f4e33c 100644 --- a/pkgs/python-IPy/python-IPy.nm +++ b/pkgs/python-IPy/python-IPy.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-cairo/python-cairo.nm b/pkgs/python-cairo/python-cairo.nm index 2e8476cdd..3c316c862 100644 --- a/pkgs/python-cairo/python-cairo.nm +++ b/pkgs/python-cairo/python-cairo.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-cryptsetup/python-cryptsetup.nm b/pkgs/python-cryptsetup/python-cryptsetup.nm index dfe2ffe12..e35d26c36 100644 --- a/pkgs/python-cryptsetup/python-cryptsetup.nm +++ b/pkgs/python-cryptsetup/python-cryptsetup.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-dbus/python-dbus.nm b/pkgs/python-dbus/python-dbus.nm index 6b671fb63..981faba6f 100644 --- a/pkgs/python-dbus/python-dbus.nm +++ b/pkgs/python-dbus/python-dbus.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-decorator/python-decorator.nm b/pkgs/python-decorator/python-decorator.nm index c12b9f9d0..6d1c5b874 100644 --- a/pkgs/python-decorator/python-decorator.nm +++ b/pkgs/python-decorator/python-decorator.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-distutils-extra/python-distutils-extra.nm b/pkgs/python-distutils-extra/python-distutils-extra.nm index 75c5307e1..3cb316345 100644 --- a/pkgs/python-distutils-extra/python-distutils-extra.nm +++ b/pkgs/python-distutils-extra/python-distutils-extra.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-gudev/python-gudev.nm b/pkgs/python-gudev/python-gudev.nm index a70b15305..5c0459b02 100644 --- a/pkgs/python-gudev/python-gudev.nm +++ b/pkgs/python-gudev/python-gudev.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-m2crypto/python-m2crypto.nm b/pkgs/python-m2crypto/python-m2crypto.nm index edbe3d5aa..c5a90eb69 100644 --- a/pkgs/python-m2crypto/python-m2crypto.nm +++ b/pkgs/python-m2crypto/python-m2crypto.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-netfilter_conntrack/python-netfilter_conntrack.nm b/pkgs/python-netfilter_conntrack/python-netfilter_conntrack.nm index be41f5603..f8ca75859 100644 --- a/pkgs/python-netfilter_conntrack/python-netfilter_conntrack.nm +++ b/pkgs/python-netfilter_conntrack/python-netfilter_conntrack.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-parted/python-parted.nm b/pkgs/python-parted/python-parted.nm index cc732b984..a4d46d38f 100644 --- a/pkgs/python-parted/python-parted.nm +++ b/pkgs/python-parted/python-parted.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-piksemel/python-piksemel.nm b/pkgs/python-piksemel/python-piksemel.nm index 315cb1adc..d9a46b583 100644 --- a/pkgs/python-piksemel/python-piksemel.nm +++ b/pkgs/python-piksemel/python-piksemel.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-progressbar/python-progressbar.nm b/pkgs/python-progressbar/python-progressbar.nm index bf107fb49..94e986713 100644 --- a/pkgs/python-progressbar/python-progressbar.nm +++ b/pkgs/python-progressbar/python-progressbar.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-pyaspects/python-pyaspects.nm b/pkgs/python-pyaspects/python-pyaspects.nm index 3cf4e2383..f435b7263 100644 --- a/pkgs/python-pyaspects/python-pyaspects.nm +++ b/pkgs/python-pyaspects/python-pyaspects.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-pyblock/python-pyblock.nm b/pkgs/python-pyblock/python-pyblock.nm index a07e82d7d..109122c7a 100644 --- a/pkgs/python-pyblock/python-pyblock.nm +++ b/pkgs/python-pyblock/python-pyblock.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-pycurl/python-pycurl.nm b/pkgs/python-pycurl/python-pycurl.nm index 712e9066f..9d8c942e1 100644 --- a/pkgs/python-pycurl/python-pycurl.nm +++ b/pkgs/python-pycurl/python-pycurl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-qtermwidget/python-qtermwidget.nm b/pkgs/python-qtermwidget/python-qtermwidget.nm index b6ff59129..bd8c2a3ac 100644 --- a/pkgs/python-qtermwidget/python-qtermwidget.nm +++ b/pkgs/python-qtermwidget/python-qtermwidget.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python-setuptools/python-setuptools.nm b/pkgs/python-setuptools/python-setuptools.nm index 3d438fc5b..ad076790e 100644 --- a/pkgs/python-setuptools/python-setuptools.nm +++ b/pkgs/python-setuptools/python-setuptools.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = setuptools -PKG_VER = 0.6c9 -PKG_REL = 1 -PKG_ARCH = noarch - -PKG_MAINTAINER = Michael Tremer -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 +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 diff --git a/pkgs/python-tornado/python-tornado.nm b/pkgs/python-tornado/python-tornado.nm index 50ffc9286..124265504 100644 --- a/pkgs/python-tornado/python-tornado.nm +++ b/pkgs/python-tornado/python-tornado.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = tornado -PKG_VER = 0.2 -PKG_REL = 1 -PKG_ARCH = noarch - -PKG_MAINTAINER = Michael Tremer -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 +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 diff --git a/pkgs/python-urlgrabber/python-urlgrabber.nm b/pkgs/python-urlgrabber/python-urlgrabber.nm index fc93649f7..4c52dee28 100644 --- a/pkgs/python-urlgrabber/python-urlgrabber.nm +++ b/pkgs/python-urlgrabber/python-urlgrabber.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/python/python.nm b/pkgs/python/python.nm index 97d5a7434..dd4ea61bf 100644 --- a/pkgs/python/python.nm +++ b/pkgs/python/python.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/pyxattr/pyxattr.nm b/pkgs/pyxattr/pyxattr.nm index d8c656798..8b323b86f 100644 --- a/pkgs/pyxattr/pyxattr.nm +++ b/pkgs/pyxattr/pyxattr.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/qemu/qemu.nm b/pkgs/qemu/qemu.nm index fb8128b22..e5b9b898f 100644 --- a/pkgs/qemu/qemu.nm +++ b/pkgs/qemu/qemu.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/qt/qt.nm b/pkgs/qt/qt.nm index dfe1fc7fc..be9f07f31 100644 --- a/pkgs/qt/qt.nm +++ b/pkgs/qt/qt.nm @@ -1,127 +1,132 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/qtermwidget/qtermwidget.nm b/pkgs/qtermwidget/qtermwidget.nm index d8e649e73..05a14b32d 100644 --- a/pkgs/qtermwidget/qtermwidget.nm +++ b/pkgs/qtermwidget/qtermwidget.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/quagga/quagga.nm b/pkgs/quagga/quagga.nm index 22b8905d5..482cbe032 100644 --- a/pkgs/quagga/quagga.nm +++ b/pkgs/quagga/quagga.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/radvd/radvd.nm b/pkgs/radvd/radvd.nm index bb9dfa1e2..32a912c11 100644 --- a/pkgs/radvd/radvd.nm +++ b/pkgs/radvd/radvd.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/readline/readline.nm b/pkgs/readline/readline.nm index 430f0b591..33d4a25b8 100644 --- a/pkgs/readline/readline.nm +++ b/pkgs/readline/readline.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/reiser4progs/reiser4progs.nm b/pkgs/reiser4progs/reiser4progs.nm index 04ff9860e..02c89689c 100644 --- a/pkgs/reiser4progs/reiser4progs.nm +++ b/pkgs/reiser4progs/reiser4progs.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/reiserfsprogs/reiserfsprogs.nm b/pkgs/reiserfsprogs/reiserfsprogs.nm index 1563a1cbb..7130e20fb 100644 --- a/pkgs/reiserfsprogs/reiserfsprogs.nm +++ b/pkgs/reiserfsprogs/reiserfsprogs.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/rrdtool/rrdtool.nm b/pkgs/rrdtool/rrdtool.nm index 9ea3eb58a..3384a59b5 100644 --- a/pkgs/rrdtool/rrdtool.nm +++ b/pkgs/rrdtool/rrdtool.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/rstp/rstp.nm b/pkgs/rstp/rstp.nm index 986f5792d..65e00822f 100644 --- a/pkgs/rstp/rstp.nm +++ b/pkgs/rstp/rstp.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/rsync/rsync.nm b/pkgs/rsync/rsync.nm index f2bbfb9d7..4cc20d8c4 100644 --- a/pkgs/rsync/rsync.nm +++ b/pkgs/rsync/rsync.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/rsyslog/rsyslog.nm b/pkgs/rsyslog/rsyslog.nm index de7362cd2..cb19dc454 100644 --- a/pkgs/rsyslog/rsyslog.nm +++ b/pkgs/rsyslog/rsyslog.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/rtorrent/rtorrent.nm b/pkgs/rtorrent/rtorrent.nm index 327d70939..320436c03 100644 --- a/pkgs/rtorrent/rtorrent.nm +++ b/pkgs/rtorrent/rtorrent.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/samba/samba.nm b/pkgs/samba/samba.nm index bfcc2bfe7..c7591cd64 100644 --- a/pkgs/samba/samba.nm +++ b/pkgs/samba/samba.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +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 -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 diff --git a/pkgs/sane/sane.nm b/pkgs/sane/sane.nm index dfffed016..8d6c3398a 100644 --- a/pkgs/sane/sane.nm +++ b/pkgs/sane/sane.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/screen/screen.nm b/pkgs/screen/screen.nm index 0fc6b01a2..c6d685aeb 100644 --- a/pkgs/screen/screen.nm +++ b/pkgs/screen/screen.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/sdl/sdl.nm b/pkgs/sdl/sdl.nm index e067c4e59..200dc5646 100644 --- a/pkgs/sdl/sdl.nm +++ b/pkgs/sdl/sdl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/sed/sed.nm b/pkgs/sed/sed.nm index 230a3489d..49e71cd89 100644 --- a/pkgs/sed/sed.nm +++ b/pkgs/sed/sed.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/setup/setup.nm b/pkgs/setup/setup.nm index 53e649185..bcd77ba89 100644 --- a/pkgs/setup/setup.nm +++ b/pkgs/setup/setup.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/sg3-utils/sg3-utils.nm b/pkgs/sg3-utils/sg3-utils.nm index 3b4b252f7..3b97ee071 100644 --- a/pkgs/sg3-utils/sg3-utils.nm +++ b/pkgs/sg3-utils/sg3-utils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/shadow-utils/shadow-utils.nm b/pkgs/shadow-utils/shadow-utils.nm index 712b67451..7c8b7825c 100644 --- a/pkgs/shadow-utils/shadow-utils.nm +++ b/pkgs/shadow-utils/shadow-utils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +groups = Base System/Base +url = http://pkg-shadow.alioth.debian.org/ +license = GPLv2+ +summary = Utilities to deal with user accounts. -PKG_MAINTAINER = Michael Tremer -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 diff --git a/pkgs/sip/sip.nm b/pkgs/sip/sip.nm index 5f6084370..d00867f4a 100644 --- a/pkgs/sip/sip.nm +++ b/pkgs/sip/sip.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/slang/slang.nm b/pkgs/slang/slang.nm index d37b669f3..819431e3f 100644 --- a/pkgs/slang/slang.nm +++ b/pkgs/slang/slang.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/smartmontools/smartmontools.nm b/pkgs/smartmontools/smartmontools.nm index e965a0e7a..c35d048e1 100644 --- a/pkgs/smartmontools/smartmontools.nm +++ b/pkgs/smartmontools/smartmontools.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/sqlite/sqlite.nm b/pkgs/sqlite/sqlite.nm index b9875285e..76d5effb5 100644 --- a/pkgs/sqlite/sqlite.nm +++ b/pkgs/sqlite/sqlite.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/squashfs-tools/squashfs-tools.nm b/pkgs/squashfs-tools/squashfs-tools.nm index dc75ab71c..ac328e216 100644 --- a/pkgs/squashfs-tools/squashfs-tools.nm +++ b/pkgs/squashfs-tools/squashfs-tools.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/squid/squid.nm b/pkgs/squid/squid.nm index 4a311b17b..20d542dfb 100644 --- a/pkgs/squid/squid.nm +++ b/pkgs/squid/squid.nm @@ -1,110 +1,105 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +groups = Networking/Daemons +url = http://www.squid-cache.org/ +license = GPLv2+ +summary = The Squid proxy caching server. -PKG_MAINTAINER = Christian Schmidt -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 diff --git a/pkgs/squidGuard/squidGuard.nm b/pkgs/squidGuard/squidGuard.nm index 0c0a9dfb8..ce0e4199a 100644 --- a/pkgs/squidGuard/squidGuard.nm +++ b/pkgs/squidGuard/squidGuard.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -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 +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 diff --git a/pkgs/strace/strace.nm b/pkgs/strace/strace.nm index 12f635174..5497a556c 100644 --- a/pkgs/strace/strace.nm +++ b/pkgs/strace/strace.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/strongswan/strongswan.nm b/pkgs/strongswan/strongswan.nm index f6dedbec8..17361fa9a 100644 --- a/pkgs/strongswan/strongswan.nm +++ b/pkgs/strongswan/strongswan.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/sudo/sudo.nm b/pkgs/sudo/sudo.nm index a10bea6a3..a85f6119d 100644 --- a/pkgs/sudo/sudo.nm +++ b/pkgs/sudo/sudo.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/suricata/suricata.nm b/pkgs/suricata/suricata.nm index 468258bff..56becaa40 100644 --- a/pkgs/suricata/suricata.nm +++ b/pkgs/suricata/suricata.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/swig/swig.nm b/pkgs/swig/swig.nm index 7c9a0f7d3..2ce14b632 100644 --- a/pkgs/swig/swig.nm +++ b/pkgs/swig/swig.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/sysfsutils/sysfsutils.nm b/pkgs/sysfsutils/sysfsutils.nm index 126137a74..909e005ec 100644 --- a/pkgs/sysfsutils/sysfsutils.nm +++ b/pkgs/sysfsutils/sysfsutils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/syslinux/syslinux.nm b/pkgs/syslinux/syslinux.nm index 2ca02e6f5..db8ff6100 100644 --- a/pkgs/syslinux/syslinux.nm +++ b/pkgs/syslinux/syslinux.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/system-release/system-release.nm b/pkgs/system-release/system-release.nm index 8e6cfa8b2..24f0a56ac 100644 --- a/pkgs/system-release/system-release.nm +++ b/pkgs/system-release/system-release.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -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 +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 diff --git a/pkgs/systemd/systemd.nm b/pkgs/systemd/systemd.nm index a19df4086..51aa583c6 100644 --- a/pkgs/systemd/systemd.nm +++ b/pkgs/systemd/systemd.nm @@ -1,135 +1,134 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = systemd -PKG_VER = 33 -PKG_REL = 1 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/sysvinit/sysvinit.nm b/pkgs/sysvinit/sysvinit.nm index 18b5679fa..31f82c2d5 100644 --- a/pkgs/sysvinit/sysvinit.nm +++ b/pkgs/sysvinit/sysvinit.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/tar/tar.nm b/pkgs/tar/tar.nm index e357cf53b..74bd88e6d 100644 --- a/pkgs/tar/tar.nm +++ b/pkgs/tar/tar.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/tcl/tcl.nm b/pkgs/tcl/tcl.nm index 20deaa004..17815c5e3 100644 --- a/pkgs/tcl/tcl.nm +++ b/pkgs/tcl/tcl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/tcpdump/tcpdump.nm b/pkgs/tcpdump/tcpdump.nm index 2703f8dcf..849b84f53 100644 --- a/pkgs/tcpdump/tcpdump.nm +++ b/pkgs/tcpdump/tcpdump.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/telnet/telnet.nm b/pkgs/telnet/telnet.nm index 64d2e7a4a..38da6f194 100644 --- a/pkgs/telnet/telnet.nm +++ b/pkgs/telnet/telnet.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/texinfo/texinfo.nm b/pkgs/texinfo/texinfo.nm index 04ea3eb29..733bc2147 100644 --- a/pkgs/texinfo/texinfo.nm +++ b/pkgs/texinfo/texinfo.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/tinc/tinc.nm b/pkgs/tinc/tinc.nm index b350a077c..6ad56184e 100644 --- a/pkgs/tinc/tinc.nm +++ b/pkgs/tinc/tinc.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/traceroute/traceroute.nm b/pkgs/traceroute/traceroute.nm index 77312ccb2..9197cb24c 100644 --- a/pkgs/traceroute/traceroute.nm +++ b/pkgs/traceroute/traceroute.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/transmission/transmission.nm b/pkgs/transmission/transmission.nm index e15e40a50..dbca120e2 100644 --- a/pkgs/transmission/transmission.nm +++ b/pkgs/transmission/transmission.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/tunctl/tunctl.nm b/pkgs/tunctl/tunctl.nm index cd5a668f2..a57f1a387 100644 --- a/pkgs/tunctl/tunctl.nm +++ b/pkgs/tunctl/tunctl.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/udev/udev.nm b/pkgs/udev/udev.nm index 272d1fede..d7176ff32 100644 --- a/pkgs/udev/udev.nm +++ b/pkgs/udev/udev.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/udisks/udisks.nm b/pkgs/udisks/udisks.nm index 5e9c3fd45..188edc50e 100644 --- a/pkgs/udisks/udisks.nm +++ b/pkgs/udisks/udisks.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ulogd2/ulogd2.nm b/pkgs/ulogd2/ulogd2.nm index 9531f34e1..c383406d5 100644 --- a/pkgs/ulogd2/ulogd2.nm +++ b/pkgs/ulogd2/ulogd2.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/unzip/unzip.nm b/pkgs/unzip/unzip.nm index 34ed6ea46..faf915d8a 100644 --- a/pkgs/unzip/unzip.nm +++ b/pkgs/unzip/unzip.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/upower/upower.nm b/pkgs/upower/upower.nm index b4fc020b6..a3fdc088d 100644 --- a/pkgs/upower/upower.nm +++ b/pkgs/upower/upower.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/usb-modemswitch/usb-modeswitch.nm b/pkgs/usb-modemswitch/usb-modeswitch.nm index 1c40fdd1a..7b50d3a31 100644 --- a/pkgs/usb-modemswitch/usb-modeswitch.nm +++ b/pkgs/usb-modemswitch/usb-modeswitch.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/usbutils/usbutils.nm b/pkgs/usbutils/usbutils.nm index 60d059651..7319cae5d 100644 --- a/pkgs/usbutils/usbutils.nm +++ b/pkgs/usbutils/usbutils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/ustr/ustr.nm b/pkgs/ustr/ustr.nm index 9b944d343..bbf76ca2e 100644 --- a/pkgs/ustr/ustr.nm +++ b/pkgs/ustr/ustr.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/util-linux/util-linux.nm b/pkgs/util-linux/util-linux.nm index 458a3ff4b..f15a6fe0c 100644 --- a/pkgs/util-linux/util-linux.nm +++ b/pkgs/util-linux/util-linux.nm @@ -1,175 +1,182 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/vala/vala.nm b/pkgs/vala/vala.nm index f75c4f44f..84b2f028e 100644 --- a/pkgs/vala/vala.nm +++ b/pkgs/vala/vala.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/vim/vim.nm b/pkgs/vim/vim.nm index 598b6a442..20ba02658 100644 --- a/pkgs/vim/vim.nm +++ b/pkgs/vim/vim.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/vlan/vlan.nm b/pkgs/vlan/vlan.nm index f867632f4..18f4d7cab 100644 --- a/pkgs/vlan/vlan.nm +++ b/pkgs/vlan/vlan.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/vsftpd/vsftpd.nm b/pkgs/vsftpd/vsftpd.nm index c93c8367f..f34c677da 100644 --- a/pkgs/vsftpd/vsftpd.nm +++ b/pkgs/vsftpd/vsftpd.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/wavemon/wavemon.nm b/pkgs/wavemon/wavemon.nm index b1ed74205..e86f903b5 100644 --- a/pkgs/wavemon/wavemon.nm +++ b/pkgs/wavemon/wavemon.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/wget/wget.nm b/pkgs/wget/wget.nm index 668377167..29d21c906 100644 --- a/pkgs/wget/wget.nm +++ b/pkgs/wget/wget.nm @@ -1,50 +1,41 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007-2011 IPFire Team # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/which/which.nm b/pkgs/which/which.nm index 3565d3844..aab6f0067 100644 --- a/pkgs/which/which.nm +++ b/pkgs/which/which.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/wireless-regdb/wireless-regdb.nm b/pkgs/wireless-regdb/wireless-regdb.nm index 11987e800..9f6d78dc0 100644 --- a/pkgs/wireless-regdb/wireless-regdb.nm +++ b/pkgs/wireless-regdb/wireless-regdb.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = wireless-regdb -PKG_VER = 2011.04.28 -PKG_REL = 2 -PKG_ARCH = noarch - -PKG_MAINTAINER = Arne Fitzenreiter -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 +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 diff --git a/pkgs/wireless-tools/wireless-tools.nm b/pkgs/wireless-tools/wireless-tools.nm index 5337add4d..c7faadaa5 100644 --- a/pkgs/wireless-tools/wireless-tools.nm +++ b/pkgs/wireless-tools/wireless-tools.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/wpa_supplicant/wpa_supplicant.nm b/pkgs/wpa_supplicant/wpa_supplicant.nm index 44735842c..05730fd2c 100644 --- a/pkgs/wpa_supplicant/wpa_supplicant.nm +++ b/pkgs/wpa_supplicant/wpa_supplicant.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/xcb-proto/xcb-proto.nm b/pkgs/xcb-proto/xcb-proto.nm index 2d05e07b5..5eb148549 100644 --- a/pkgs/xcb-proto/xcb-proto.nm +++ b/pkgs/xcb-proto/xcb-proto.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Headers -PKG_URL = http://xcb.freedesktop.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = XCB protocol descriptions. +maintainer = Stefan Schantl +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 diff --git a/pkgs/xcb-util/xcb-util.nm b/pkgs/xcb-util/xcb-util.nm index 4ec54088d..4d7b580a5 100644 --- a/pkgs/xcb-util/xcb-util.nm +++ b/pkgs/xcb-util/xcb-util.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xcb-util -PKG_VER = 0.3.6 -PKG_REL = 0 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xen/xen.nm b/pkgs/xen/xen.nm index 1869d9232..07bf2a1b9 100644 --- a/pkgs/xen/xen.nm +++ b/pkgs/xen/xen.nm @@ -1,90 +1,112 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xen -PKG_VER = 4.1.1 -PKG_REL = 3 - -PKG_MAINTAINER = Ben Schweikert -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 +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 diff --git a/pkgs/xfsprogs/xfsprogs.nm b/pkgs/xfsprogs/xfsprogs.nm index 865992bc9..24dfbc0ac 100644 --- a/pkgs/xfsprogs/xfsprogs.nm +++ b/pkgs/xfsprogs/xfsprogs.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/xkeyboard-config/xkeyboard-config.nm b/pkgs/xkeyboard-config/xkeyboard-config.nm index 6959ce093..504b7e8f7 100644 --- a/pkgs/xkeyboard-config/xkeyboard-config.nm +++ b/pkgs/xkeyboard-config/xkeyboard-config.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xkeyboard-config -PKG_VER = 1.9 -PKG_REL = 1 -PKG_ARCH = noarch - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xorg-x11-drv-ati/xorg-x11-drv-ati.nm b/pkgs/xorg-x11-drv-ati/xorg-x11-drv-ati.nm index e5883b9f6..ce5358a09 100644 --- a/pkgs/xorg-x11-drv-ati/xorg-x11-drv-ati.nm +++ b/pkgs/xorg-x11-drv-ati/xorg-x11-drv-ati.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xorg-x11-drv-ati -PKG_VER = 6.13.1 -PKG_REL = 0 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xorg-x11-drv-evdev/xorg-x11-drv-evdev.nm b/pkgs/xorg-x11-drv-evdev/xorg-x11-drv-evdev.nm index 7cabb00da..b85e2428e 100644 --- a/pkgs/xorg-x11-drv-evdev/xorg-x11-drv-evdev.nm +++ b/pkgs/xorg-x11-drv-evdev/xorg-x11-drv-evdev.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +groups = X/Driver +url = http://www.x.org/ +license = MIT +summary = Xorg X11 evdev input driver. -PKG_MAINTAINER = Stefan Schantl -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 diff --git a/pkgs/xorg-x11-drv-intel/xorg-x11-drv-intel.nm b/pkgs/xorg-x11-drv-intel/xorg-x11-drv-intel.nm index 00683251e..c72bddca5 100644 --- a/pkgs/xorg-x11-drv-intel/xorg-x11-drv-intel.nm +++ b/pkgs/xorg-x11-drv-intel/xorg-x11-drv-intel.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +groups = X/Driver +url = http://www.x.org/ +license = MIT +summary = Xorg X11 intel video driver. -PKG_MAINTAINER = Stefan Schantl -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 diff --git a/pkgs/xorg-x11-drv-keyboard/xorg-x11-drv-keyboard.nm b/pkgs/xorg-x11-drv-keyboard/xorg-x11-drv-keyboard.nm index 0578c4b1c..03f6f9a0c 100644 --- a/pkgs/xorg-x11-drv-keyboard/xorg-x11-drv-keyboard.nm +++ b/pkgs/xorg-x11-drv-keyboard/xorg-x11-drv-keyboard.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +groups = X/Driver +url = http://www.x.org/ +license = MIT +summary = Xorg X11 keyboard input driver. -PKG_MAINTAINER = Stefan Schantl -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 diff --git a/pkgs/xorg-x11-drv-mouse/xorg-x11-drv-mouse.nm b/pkgs/xorg-x11-drv-mouse/xorg-x11-drv-mouse.nm index 0499985ff..8badb77a2 100644 --- a/pkgs/xorg-x11-drv-mouse/xorg-x11-drv-mouse.nm +++ b/pkgs/xorg-x11-drv-mouse/xorg-x11-drv-mouse.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -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 diff --git a/pkgs/xorg-x11-drv-nv/xorg-x11-drv-nv.nm b/pkgs/xorg-x11-drv-nv/xorg-x11-drv-nv.nm index e0568372d..91fd257a9 100644 --- a/pkgs/xorg-x11-drv-nv/xorg-x11-drv-nv.nm +++ b/pkgs/xorg-x11-drv-nv/xorg-x11-drv-nv.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 +groups = X/Driver +url = http://www.x.org/ +license = MIT +summary = Xorg X11 nv video driver. -PKG_MAINTAINER = Stefan Schantl -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 diff --git a/pkgs/xorg-x11-drv-synaptics/xorg-x11-drv-synaptics.nm b/pkgs/xorg-x11-drv-synaptics/xorg-x11-drv-synaptics.nm index d31f5a6aa..e3d57f0d0 100644 --- a/pkgs/xorg-x11-drv-synaptics/xorg-x11-drv-synaptics.nm +++ b/pkgs/xorg-x11-drv-synaptics/xorg-x11-drv-synaptics.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xorg-x11-drv-synaptics -PKG_VER = 1.3.0 -PKG_REL = 0 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xorg-x11-drv-vesa/xorg-x11-drv-vesa.nm b/pkgs/xorg-x11-drv-vesa/xorg-x11-drv-vesa.nm index 93cf37f6d..66fc404ce 100644 --- a/pkgs/xorg-x11-drv-vesa/xorg-x11-drv-vesa.nm +++ b/pkgs/xorg-x11-drv-vesa/xorg-x11-drv-vesa.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### +name = xorg-x11-drv-vesa +version = 2.3.0 +release = 1 -include $(PKGROOT)/Include +maintainer = Stefan Schantl +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 -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 diff --git a/pkgs/xorg-x11-drv-vmware/xorg-x11-drv-vmware.nm b/pkgs/xorg-x11-drv-vmware/xorg-x11-drv-vmware.nm index 5b2aac425..a24655fae 100644 --- a/pkgs/xorg-x11-drv-vmware/xorg-x11-drv-vmware.nm +++ b/pkgs/xorg-x11-drv-vmware/xorg-x11-drv-vmware.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### +name = xorg-x11-drv-vmware +version = 11.0.2 +release = 1 -include $(PKGROOT)/Include +maintainer = Stefan Schantl +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 -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 diff --git a/pkgs/xorg-x11-font-utils/xorg-x11-font-utils.nm b/pkgs/xorg-x11-font-utils/xorg-x11-font-utils.nm index a4fdaa998..df9c317ab 100644 --- a/pkgs/xorg-x11-font-utils/xorg-x11-font-utils.nm +++ b/pkgs/xorg-x11-font-utils/xorg-x11-font-utils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xorg-x11-font-utils -PKG_VER = 7.4 -PKG_REL = 2 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xorg-x11-fonts/xorg-x11-fonts.nm b/pkgs/xorg-x11-fonts/xorg-x11-fonts.nm index 9b7ef9870..c9313667b 100644 --- a/pkgs/xorg-x11-fonts/xorg-x11-fonts.nm +++ b/pkgs/xorg-x11-fonts/xorg-x11-fonts.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xorg-x11-fonts -PKG_VER = 7.2 -PKG_REL = 2 -PKG_ARCH = noarch - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xorg-x11-proto-devel/xorg-x11-proto-devel.nm b/pkgs/xorg-x11-proto-devel/xorg-x11-proto-devel.nm index 41f549e5a..610c7ad38 100644 --- a/pkgs/xorg-x11-proto-devel/xorg-x11-proto-devel.nm +++ b/pkgs/xorg-x11-proto-devel/xorg-x11-proto-devel.nm @@ -1,100 +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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xorg-x11-proto-devel -PKG_VER = 7.4 -PKG_REL = 2 -PKG_ARCH = noarch - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xorg-x11-server/xorg-x11-server.nm b/pkgs/xorg-x11-server/xorg-x11-server.nm index be83fcc3c..c46aa314d 100644 --- a/pkgs/xorg-x11-server/xorg-x11-server.nm +++ b/pkgs/xorg-x11-server/xorg-x11-server.nm @@ -1,138 +1,154 @@ ############################################################################### -# # -# IPFire.org - A linux based firewall # -# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt # -# # -# This program is free software: you can redistribute it and/or modify # -# it under the terms of the GNU General Public License as published by # -# the Free Software Foundation, either version 3 of the License, or # -# (at your option) any later version. # -# # -# This program is distributed in the hope that it will be useful, # -# but WITHOUT ANY WARRANTY; without even the implied warranty of # -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # -# GNU General Public License for more details. # -# # -# You should have received a copy of the GNU General Public License # -# along with this program. If not, see . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xorg-x11-server -PKG_VER = 1.8.2 -PKG_REL = 3 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xorg-x11-util-macros/xorg-x11-util-macros.nm b/pkgs/xorg-x11-util-macros/xorg-x11-util-macros.nm index ea54e2545..20f170ebc 100644 --- a/pkgs/xorg-x11-util-macros/xorg-x11-util-macros.nm +++ b/pkgs/xorg-x11-util-macros/xorg-x11-util-macros.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### +name = xorg-x11-util-macros +version = 1.10.0 +release = 1 +arch = noarch -include $(PKGROOT)/Include +maintainer = Stefan Schantl +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 -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 diff --git a/pkgs/xorg-x11-xinit/xorg-x11-xinit.nm b/pkgs/xorg-x11-xinit/xorg-x11-xinit.nm index 49fa11ee4..b73bd2dd0 100644 --- a/pkgs/xorg-x11-xinit/xorg-x11-xinit.nm +++ b/pkgs/xorg-x11-xinit/xorg-x11-xinit.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm b/pkgs/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm index 4063c53ff..25abfb7c9 100644 --- a/pkgs/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm +++ b/pkgs/xorg-x11-xkb-utils/xorg-x11-xkb-utils.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# Definitions -############################################################################### - -include $(PKGROOT)/Include - -PKG_NAME = xorg-x11-xkb-utils -PKG_VER = 7.4 -PKG_REL = 1 - -PKG_MAINTAINER = Stefan Schantl -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 +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 diff --git a/pkgs/xorg-x11-xtrans-devel/xorg-x11-xtrans-devel.nm b/pkgs/xorg-x11-xtrans-devel/xorg-x11-xtrans-devel.nm index 1cad0bfb7..2d330c702 100644 --- a/pkgs/xorg-x11-xtrans-devel/xorg-x11-xtrans-devel.nm +++ b/pkgs/xorg-x11-xtrans-devel/xorg-x11-xtrans-devel.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -PKG_GROUPS = X/Libraries -PKG_URL = http://www.x.org/ -PKG_LICENSE = MIT -PKG_SUMMARY = X11 transport library. +maintainer = Stefan Schantl +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 diff --git a/pkgs/xrandr/xrandr.nm b/pkgs/xrandr/xrandr.nm index 651090cb5..1ce8c6a83 100644 --- a/pkgs/xrandr/xrandr.nm +++ b/pkgs/xrandr/xrandr.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/xterm/xterm.nm b/pkgs/xterm/xterm.nm index 8bb516f61..7ed670822 100644 --- a/pkgs/xterm/xterm.nm +++ b/pkgs/xterm/xterm.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/xz/xz.nm b/pkgs/xz/xz.nm index bed3f2f58..83af5ad7c 100644 --- a/pkgs/xz/xz.nm +++ b/pkgs/xz/xz.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/zerofree/zerofree.nm b/pkgs/zerofree/zerofree.nm index a007d1406..dc21ca82c 100644 --- a/pkgs/zerofree/zerofree.nm +++ b/pkgs/zerofree/zerofree.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 diff --git a/pkgs/zlib/zlib.nm b/pkgs/zlib/zlib.nm index 20688c580..f1611f435 100644 --- a/pkgs/zlib/zlib.nm +++ b/pkgs/zlib/zlib.nm @@ -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 . # -# # +# IPFire.org - An Open Source Firewall Solution # +# Copyright (C) - IPFire Development Team # ############################################################################### -############################################################################### -# 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 -- 2.39.2