Re: [dl-ticket-service] Packaging of dl for inclusion in Fedora / EPEL

2014-08-19 Thread Greg Bailey

On 08/08/2014 06:03 AM, Yuri D'Elia wrote:

On 08/07/2014 08:05 PM, Greg Bailey wrote:

I can push it to the regular non-testing channels for Fedora after
another day or 2.  For EPEL, the wait time is longer (another 2 weeks)
unless a Fedora packager gives positive feedback on the RPM, in which
case it may be possible to promote it sooner.

There's no rush, I just wanted to know if there was anything required on
my part.



DL 0.13 is now available in regular Fedora channels as well as the EPEL 
repository (for RHEL, CentOS, ScientificLinux users).


On Fedora >= 19, you can type:

yum install dl

For users of the EPEL repository:

yum --enablerepo=epel install dl

After installation, have a look at /usr/share/doc/dl-0.13/README.fedora, 
where I included some basic configuration steps required when using the RPM.


Thanks to Russ for his help in getting the package approved, and of 
course to Yuri for a useful piece of software!


-Greg





Re: [dl-ticket-service] Packaging of dl for inclusion in Fedora / EPEL

2014-08-08 Thread Yuri D'Elia
On 08/07/2014 08:05 PM, Greg Bailey wrote:
>> So as I understood the bug report, it was finally accepted?
> 
> Yes, it's in there now.  It's in the "testing" repo for Fedora 19, 
> Fedora 20, and EPEL 6 (CentOS 6, RHEL 6, etc.)
> 
> It's in the regular (non-testing) repo for EPEL 7 (RHEL 7, CentOS 7), 
> and Fedora 21/rawhide.

Awesome :)

> I can push it to the regular non-testing channels for Fedora after 
> another day or 2.  For EPEL, the wait time is longer (another 2 weeks) 
> unless a Fedora packager gives positive feedback on the RPM, in which 
> case it may be possible to promote it sooner.

There's no rush, I just wanted to know if there was anything required on
my part.

I'm wondering now where I should advertise/announce DL releases.
In the past I relied a lot on freshmeat/freecode. Since now it's
officially gone, the only channel left is either this mailing list or
github.

Somehow I was never able to find anything by searching through github
unless it's already *quite* popular. There's too much noise and
unimplemented/half-not-working stuff. Plus, it's not really useful for
users, as opposed to developers.

What's popular these days to find software, aside from random searches
and the stackexchange network?





Re: [dl-ticket-service] Packaging of dl for inclusion in Fedora / EPEL

2014-08-07 Thread Greg Bailey

On 08/07/2014 10:55 AM, Yuri D'Elia wrote:

On 07/31/2014 04:36 PM, Yuri D'Elia wrote:

I'm putting the finishing touches on RPM ingredients to submit dl as a
package for Fedora and Fedora EPEL (for RHEL, CentOS, etc.).

So as I understood the bug report, it was finally accepted?





Yes, it's in there now.  It's in the "testing" repo for Fedora 19, 
Fedora 20, and EPEL 6 (CentOS 6, RHEL 6, etc.)


It's in the regular (non-testing) repo for EPEL 7 (RHEL 7, CentOS 7), 
and Fedora 21/rawhide.


I can push it to the regular non-testing channels for Fedora after 
another day or 2.  For EPEL, the wait time is longer (another 2 weeks) 
unless a Fedora packager gives positive feedback on the RPM, in which 
case it may be possible to promote it sooner.


thanks,
Greg





Re: [dl-ticket-service] Packaging of dl for inclusion in Fedora / EPEL

2014-08-07 Thread Yuri D'Elia
On 07/31/2014 04:36 PM, Yuri D'Elia wrote:
>> I'm putting the finishing touches on RPM ingredients to submit dl as a 
>> package for Fedora and Fedora EPEL (for RHEL, CentOS, etc.).

So as I understood the bug report, it was finally accepted?






Re: [dl-ticket-service] Packaging of dl for inclusion in Fedora / EPEL

2014-07-31 Thread Yuri D'Elia
On 07/30/2014 06:31 PM, Greg Bailey wrote:
> Hi Yuri (and others),
> 
> I'm putting the finishing touches on RPM ingredients to submit dl as a 
> package for Fedora and Fedora EPEL (for RHEL, CentOS, etc.).
> 
> I maintain a few other packages in Fedora so hopefully I've covered most 
> of the "gotchas".  :)
> 
> I've checked for existing submissions and it doesn't appear that anyone 
> else has started this effort yet?  I'd like to confirm that's the case 
> before going too much further.
> 
> Yuri, would you be open to including the RPM .spec file in the repository?

I have no problem with that, as long as there's somebody willing to
maintain it :). It's a long time I didn't touch Fedora/RH, so I couldn't
really help anybody with the spec.

Just as a note, Debian generally suggests to have the packaging
infrastructure as a different project unless it's a core Debian package.
For example, it's common practice to patch sample configuration files
and documentation to their actual installation paths without affecting
the source package. No idea if that's considered good practice or not
also in Fedora. (I'm telling just because I maintain a few packages in
Debian).

As for the code, I would suggest to use 0.13:

http://www.thregr.org/~wavexx/software/dl/releases/dl-0.13.zip

I'll write the announcement soon.





[dl-ticket-service] Packaging of dl for inclusion in Fedora / EPEL

2014-07-30 Thread R P Herrold
On Wed, 30 Jul 2014, Greg Bailey wrote:

> I've checked for existing submissions and it doesn't appear that anyone else
> has started this effort yet?  I'd like to confirm that's the case before going
> too much further.

we packaged it locally a while back, but 'punted' on writing 
the database setup and maintenace wizards, which we consided a 
'must have' item for a general public release

-- Russ herrold

#
#   .spec file Copyright (c) 2012 R P Herrold
#   reports to: i...@owlriver.com please
#
%define gitpull 20131216
#
Name:   dl
Summary:dl: Download Ticket Service
Version:0.0.%{gitpull}.git
Release:1%dist
License:FIXME
Group:  Applications/Web
URL:FIXME
Source: %{name}-%{gitpull}.tgz
# Source0:  %{name}-httpd.conf

Prefix: /usr
BuildRoot:  /var/tmp/%{name}-%{version}.root

Requires:   httpd
Requires:   sqlite
# Requires: php
Requires:   php-mbstring
Requires:   php-pecl-apc

%description
"dl" is a file exchange service that allows you to upload 
any file to a web server and generate a unique ticket for 
others to download. The ticket is automatically expired 
according to the specified rules, so that you don't need 
to keep track or cleanup afterward. "dl" also allows you 
to grant an anonymous, one-time upload for others to send 
you a file, without the requirement of account management

%prep

%setup -n %{name}-%{gitpull}

## we are a webbish setup, and some side support scripts
%build

%install
# make install
mkdir -p %{buildroot}/var/spool/%{name}/
#
#   this next gets htdocs/include as well
mkdir -p %{buildroot}/usr/share/%{name}/htdocs/

mkdir -p %{buildroot}/etc/%{name}/
# to either include/config.php or 
#   /etc/dl.php and customize as needed. This usually means 
#   changing the URL and E-Mail of the service.

mkdir -p %{buildroot}/etc/httpd/conf.d/
#
rsync -av htdocs/ %{buildroot}/usr/share/%{name}/htdocs/
cp htdocs/include/config.php.dist %{buildroot}/etc/%{name}/dl.php
cp %{name}-httpd.conf %{buildroot}/etc/httpd/conf.d/%{name}.conf

%post 
# install instructions say: run: scripts/rip-environment
[ ! -e /etc/dl.php ] && ln -s /etc/%{name}/dl.php /etc/dl.php || :
[ ! -e /var/spool/dl/data.sdb ] && {
cd /var/spool/dl/
# as userid: apache
su -c "sqlite data.sdb" apache < 
/usr/share/%{name}/include/scripts/sqlite.sql
chmod 660 data.sdb
}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc %{name}.spec %{name}-httpd.conf 
%attr(770,apache,apache) /var/spool/%{name}/
%config(noreplace) /etc/%{name}/dl.php
%config(noreplace) /etc/httpd/conf.d/%{name}.conf
/usr/share/%{name}/
#
#   .spec file Copyright (c) 2012 R P Herrold
#   reports to: i...@owlriver.com please
#
%define gitpull 20131216
#
Name:   dl
Summary:dl: Download Ticket Service
Version:0.0.%{gitpull}.git
Release:1%dist
License:FIXME
Group:  Applications/Web
URL:FIXME
Source: %{name}-%{gitpull}.tgz
# Source0:  %{name}-httpd.conf

Prefix: /usr
BuildRoot:  /var/tmp/%{name}-%{version}.root

# BuildRequires:develFIXME
# BuildRequires:tkinter
Requires:   httpd
Requires:   sqlite
# Requires: php
Requires:   php-mbstring
Requires:   php-pecl-apc

%description
"dl" is a file exchange service that allows you to upload 
any file to a web server and generate a unique ticket for 
others to download. The ticket is automatically expired 
according to the specified rules, so that you don't need 
to keep track or cleanup afterward. "dl" also allows you 
to grant an anonymous, one-time upload for others to send 
you a file, without the requirement of account management

%prep

%setup -n %{name}-%{gitpull}

## we are a webbish setup, and some side support scripts
%build

%install
# make install
mkdir -p %{buildroot}/var/spool/%{name}/
#
#   this next gets htdocs/include as well
mkdir -p %{buildroot}/usr/share/%{name}/htdocs/

mkdir -p %{buildroot}/etc/%{name}/
# to either include/config.php or 
#   /etc/dl.php and customize as needed. This usually means 
#   changing the URL and E-Mail of the service.

mkdir -p %{buildroot}/etc/httpd/conf.d/
#
rsync -av htdocs/ %{buildroot}/usr/share/%{name}/htdocs/
cp htdocs/include/config.php.dist %{buildroot}/etc/%{name}/dl.php
cp %{name}-httpd.conf %{buildroot}/etc/httpd/conf.d/%{name}.conf

%post 
# install instructions say: run: scripts/rip-environment
[ ! -e /etc/dl.php ] && ln -s /etc/%{name}/dl.php /etc/dl.php || :
[ ! -e /var/spool/dl/data.sdb ] && {
cd /var/spool/dl/
# as userid: apache
su -c "sqlite data.sdb" apache < 
/usr/share/%{name}/include/scripts/sqlite.sql
chmod 660 data.sdb
}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildro

[dl-ticket-service] Packaging of dl for inclusion in Fedora / EPEL

2014-07-30 Thread Greg Bailey

Hi Yuri (and others),

I'm putting the finishing touches on RPM ingredients to submit dl as a 
package for Fedora and Fedora EPEL (for RHEL, CentOS, etc.).


I maintain a few other packages in Fedora so hopefully I've covered most 
of the "gotchas".  :)


I've checked for existing submissions and it doesn't appear that anyone 
else has started this effort yet?  I'd like to confirm that's the case 
before going too much further.


Yuri, would you be open to including the RPM .spec file in the repository?

thanks!
Greg Bailey