⌈⌋ branch:  freshcode


Check-in [ea92800376]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:ea92800376c72f075ef72fe4e3f3ac92a2b72a5a
Date: 2014-11-16 16:15:25
User: mario
Comment:Exchange feed selection, add template stubs
Tags And Properties
  • bgcolor=#ffeedd inherited from [ed2e13d670]
  • branch=mirror inherited from [df89a65d10]
  • sym-mirror inherited from [df89a65d10]
Context
2014-11-16
16:16
[79e42f8f28] empty default files (user: mario, tags: mirror)
16:15
[ea92800376] Exchange feed selection, add template stubs (user: mario, tags: mirror)
16:02
[72d74c8cca] Allow direct invocations, remove [END] and API mapping. (user: mario, tags: mirror)
Changes

Changes to cron.daily/news_feeds.php.

18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
..
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87

// switch to webroot
chdir(dirname(__DIR__));


#-- RSS
$feeds = array(
    "linuxcom,7" => "http://www.linux.com/news/software?format=feed&type=rss",
    "reddit,17" => "http://www.reddit.com/r/linux/.rss",
    "linuxgames,5" => "http://www.linuxgames.com/feed",
    "gamingonlinux,4" => "http://www.gamingonlinux.com/article_rss.php",
    "freegamer,3" => "http://freegamer.blogspot.com/feeds/posts/default?alt=rss",
    "sourceforge,22" => "http://sourceforge.net/directory/release_feed/",
    "distrowatch,15" => "http://distrowatch.com/news/dwd.xml",
    "beopen,7" => "http://beopen.bplaced.net/category/projects/feed/",
);
$filter = 
    "/Please 'report' off-topic|namelessrom|machomebrew/"
;

#-- Traverse and collect entries
................................................................................
            case "sourceforge":
                if (preg_match("~^(http://sourceforge.net/projects/(\w+))/files/.+?(\d+(\.\d+)+).+?/download$~", $item->link, $m)) {
                    $output .= "<a href=\"$m[1]\">$m[2] <em>$m[3]</em></a>\n";
                    $i++;
                }
                break;

            // Extract project base names and version numbers
            case "distrowatch":
                if (preg_match("~^(\d+/\d+)\s(\D+)\s+(.+)$~", $title, $m)) {
                    $output .= "<a href=\"$link\"><small>$m[1]</small> $m[2] <em>$m[3]</em></a>\n";
                }
                break;

            // Titles as is
            default:
            case "reddit":
            case "linuxcom":
            case "linuxgames":
                if (strlen($item->link) and strlen($item->title)) {
                    $title = preg_replace("~(\d+\.[\d-.]+)~", "<em>$0</em>", $title);
                    $output .="<a href=\"$link\">$title</a>\n";
                    $i++;
                }
                break;
        }







|
|
<
<
<
|
<







 







<
<
<
<
<
<
<



<
<







18
19
20
21
22
23
24
25
26



27

28
29
30
31
32
33
34
..
58
59
60
61
62
63
64







65
66
67


68
69
70
71
72
73
74

// switch to webroot
chdir(dirname(__DIR__));


#-- RSS
$feeds = array(
    "wine,15" => "http://wine-apps.org/wine-apps-content.rdf",
    "reddit,10" => "http://www.reddit.com/r/linux/.rss",



    "sourceforge,15" => "http://sourceforge.net/directory/release_feed/",

    "beopen,7" => "http://beopen.bplaced.net/category/projects/feed/",
);
$filter = 
    "/Please 'report' off-topic|namelessrom|machomebrew/"
;

#-- Traverse and collect entries
................................................................................
            case "sourceforge":
                if (preg_match("~^(http://sourceforge.net/projects/(\w+))/files/.+?(\d+(\.\d+)+).+?/download$~", $item->link, $m)) {
                    $output .= "<a href=\"$m[1]\">$m[2] <em>$m[3]</em></a>\n";
                    $i++;
                }
                break;








            // Titles as is
            default:
            case "reddit":


                if (strlen($item->link) and strlen($item->title)) {
                    $title = preg_replace("~(\d+\.[\d-.]+)~", "<em>$0</em>", $title);
                    $output .="<a href=\"$link\">$title</a>\n";
                    $i++;
                }
                break;
        }

Deleted cron.daily/news_fossies.php.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
/**
 * title: Fossies.org extraction
 * description: Retrieves from fossies.org and stores as sidebar feed .html.
 * version: 0.5
 * category: template
 * api: cli
 * type: cron
 * x-cron: 11 *\/4 * * * 
 *
 * Scrapes from fossies.org/linux/misc/index_n.html,
 * extracts title, version, time, and description.
 *
 * Highlights version numbers and date, adds title= description.
 *
 * Stored in ./template/feed.fossies.htm for frontpage sidebar.
 *
 */


// switch to webroot
chdir(dirname(__DIR__));


// Fossies
include("./shared.phar");
curl::$defaults["useragent"] = "freshcode/0.6 (Linux x86-64; curl) projects-autoupdate/0.5 (screenshots,changelog,regex,xpath) +http://freshcode.club/";
if ($html = curl("http://fossies.org/linux/misc/index_n.html")->exec()
and preg_match_all("~<TR>.+?</TR>~s", $html, $line))
{
    $output = "";
    # <TR><TD VALIGN="top"><A HREF="openmpi-1.8.2.tar.gz"><IMG SRC="/dl.gif"
    # class="dl" title="[Download]" ALT=""></A></TD><TD> <A
    # HREF="openmpi-1.8.2.tar.gz/" title="Contents, browsing \&amp; more
    # ..."><B>openmpi-1.8.2.tar.gz</B></A> (25 Aug 19:39, 19779476 Bytes) <IMG
    # SRC="/warix/new1.gif" class="new_nb" ALT="*NEW*"><BR><DIV class="desc"><A
    # HREF="http://www.open-mpi.org/">Open&nbsp;MPI</A> - A High Performance
    # Message Passing Library.  Open MPI is a project combining technologies and
    # resources from several other projects (FT-MPI, LA-MPI, LAM/MPI, and
    # PACX-MPI) in order to build the best MPI library available. 
    # </DIV></TD></TR>
    foreach (array_slice($line[0], 0, 22) as $html) {

        // package name and version
        preg_match("~HREF=\"([\w-]+?)-(\d[\w._-]+?)(\.(zip|tar|gz|xz|bz2|pax|tgz|txt|tbz2|7z|exe))*/\"~", $html, $pkg);
        if (count($pkg) < 3) { continue; }
        list(, $pkg, $ver, ) = $pkg;

        // package title
        preg_match("~>([^<>]+)</A>~", $html, $title);
        $title = $title[1];

        // convert date string
        preg_match("~\((\d+ \w\w\w) \d\d:\d\d~", $html, $date);
        $date = strftime("%d/%m", strtotime($date[1]));
        
        // description
        preg_match("~</A>[\s-]*([^<>]+)</DIV>~", $html, $desc);
        $desc = htmlentities($desc[1]);
                
        // combine
        $output .= "<a href=\"http://fossies.org/$pkg\" title=\"$desc\">"
                .  "<small>$date</small> $title <em>$ver</em></a>\n";
    }

    // save
    file_put_contents("./template/feed.fossies.htm", $output);
}

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<










































































































































Added template/feed.beopen.htm.















>
>
>
>
>
>
>
1
2
3
4
5
6
7
<a href="http://beopen.bplaced.net/2014/11/navit-svn-5947/">Navit svn-5947</a>
<a href="http://beopen.bplaced.net/2014/11/cups-2-0-1/">CUPS <em>2.0.1</em></a>
<a href="http://beopen.bplaced.net/2014/11/shorewall-4-6-5-1/">Shorewall <em>4.6.5.1</em></a>
<a href="http://beopen.bplaced.net/2014/11/exiftool-9-76/">ExifTool <em>9.76</em></a>
<a href="http://beopen.bplaced.net/2014/11/ntp-4-2-7p479/">NTP <em>4.2.7</em>p479</a>
<a href="http://beopen.bplaced.net/2014/11/wordpress-4-1-beta-1/">WordPress <em>4.1</em> Beta 1</a>
<a href="http://beopen.bplaced.net/2014/11/stunnel-5-08b5/">stunnel <em>5.08</em>b5</a>

Added template/feed.reddit.htm.





















>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
<a href="http://www.reddit.com/r/linux/comments/2mf6i1/new_wayland_live_cd_isos/">New Wayland Live CD ISOs</a>
<a href="http://www.reddit.com/r/linux/comments/2mgtnq/ubuntu_next_explained_unity8_mir/">Ubuntu NEXT explained (Unity8, MIR)</a>
<a href="http://www.reddit.com/r/linux/comments/2mdgvd/linux_1_introduction/">Linux 1 - Introduction</a>
<a href="http://www.reddit.com/r/linux/comments/2meedo/announce_intel_releases_beignet_10_for_opensource/">[ANNOUNCE] Intel Releases Beignet <em>1.0</em> For Open-Source OpenCL</a>
<a href="http://www.reddit.com/r/linux/comments/2mh0yx/proprietary_products_that_have_turned_open_source/">Proprietary products that have turned open source?</a>
<a href="http://www.reddit.com/r/linux/comments/2mfx8i/more_uhe_plugins_in_open_beta_for_linux_cross/">More U-He plugins in open beta for Linux!! (cross post from r/Bitwig)</a>
<a href="http://www.reddit.com/r/linux/comments/2mfh2k/when_will_the_ubuntu_phonespecifically_meizu_mx4/">When will the Ubuntu phone(specifically Meizu MX4 Pro) come out and are you planning to buy it?</a>
<a href="http://www.reddit.com/r/linux/comments/2mfe9t/ubuntu_next_1504_daily_build/">Ubuntu NEXT <em>15.04</em> daily build</a>
<a href="http://www.reddit.com/r/linux/comments/2mgodv/thoughts_on_os_x_yosemite_arch_linux_and_xmonad/">Thoughts on OS X Yosemite, Arch Linux and xmonad - Jakub Arnold Blog</a>
<a href="http://www.reddit.com/r/linux/comments/2mgo7o/wtf_is_gwan_web_server/">WTF is G-WAN Web Server?</a>

Added template/feed.sourceforge.htm.































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<a href="http://sourceforge.net/projects/cevap">cevap <em>1.0</em></a>
<a href="http://sourceforge.net/projects/arz">arz <em>0.9</em></a>
<a href="http://sourceforge.net/projects/ghostcommander">ghostcommander <em>201.52.3</em></a>
<a href="http://sourceforge.net/projects/puppex">puppex <em>3.17.3</em></a>
<a href="http://sourceforge.net/projects/linuxmintjaiso">linuxmintjaiso <em>14.1</em></a>
<a href="http://sourceforge.net/projects/netrider">netrider <em>0.93</em></a>
<a href="http://sourceforge.net/projects/natron">natron <em>64.201411161627</em></a>
<a href="http://sourceforge.net/projects/manjarotest">manjarotest <em>8.11</em></a>
<a href="http://sourceforge.net/projects/manjarodev">manjarodev <em>0.8.11</em></a>
<a href="http://sourceforge.net/projects/libreofficenadvd">libreofficenadvd <em>4.3.4</em></a>
<a href="http://sourceforge.net/projects/qtgain">qtgain <em>0.9.7</em></a>
<a href="http://sourceforge.net/projects/lightfirefox">lightfirefox <em>33.0</em></a>
<a href="http://sourceforge.net/projects/file2dvd">file2dvd <em>5.5</em></a>
<a href="http://sourceforge.net/projects/fastoredis">fastoredis <em>0.1.0</em></a>
<a href="http://sourceforge.net/projects/odbripper">odbripper <em>0.5.3</em></a>

Added template/feed.wine.htm.































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<a href="http://WINE-Apps.org/content/show.php/Any+clock?content=166508">Any clock (Wine Accessory)</a>
<a href="http://WINE-Apps.org/content/show.php/GT?content=165325">GT <em>0.1</em> (Wine Game)</a>
<a href="http://WINE-Apps.org/content/show.php/qt-updater?content=163973">qt-updater <em>1.2.3</em> (Wine Network)</a>
<a href="http://WINE-Apps.org/content/show.php/Cyber+Jass+Chibre?content=163855">Cyber Jass Chibre 6.x (Wine Game)</a>
<a href="http://WINE-Apps.org/content/show.php/My+Music+Recognition?content=163823">My Music Recognition <em>1.0.2</em> (Wine Multimedia)</a>
<a href="http://WINE-Apps.org/content/show.php/NotePad?content=163523">NotePad <em>1.0</em> (Wine Office)</a>
<a href="http://WINE-Apps.org/content/show.php/RF_XMLEditor?content=163327">RF_XMLEditor <em>1.0</em> (Wine Other)</a>
<a href="http://WINE-Apps.org/content/show.php/Wine+Blue+Magic?content=159320">Wine Blue Magic wallpaper (Wine Graphics)</a>
<a href="http://WINE-Apps.org/content/show.php/Wine+Blue+Remix+icons?content=158173">Wine Blue Remix icons <em>1.1.1</em> (Wine Accessory)</a>
<a href="http://WINE-Apps.org/content/show.php/Oragir?content=147856">Oragir <em>0.2.1</em>b (Wine Other)</a>
<a href="http://WINE-Apps.org/content/show.php/Oktan?content=141878">Oktan <em>1.1</em> (Wine Other)</a>
<a href="http://WINE-Apps.org/content/show.php/gnome-exe-thumbnailer?content=129667">gnome-exe-thumbnailer <em>0.5</em> (Wine Accessory)</a>
<a href="http://WINE-Apps.org/content/show.php/Settlers+IV+Gold+Edition?content=110792">Settlers IV Gold Edition 4 (Wine Game)</a>
<a href="http://WINE-Apps.org/content/show.php/Proxy+Configuration+changer?content=121672">Proxy Configuration changer (Wine Network)</a>
<a href="http://WINE-Apps.org/content/show.php/Microsoft+office+2007?content=92651">Microsoft office 2007 (Wine Office)</a>