DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (be336d703b41)

VCS Links

Line Code
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
Summary: Core code for the AppKeys service
Name: python26-appkeys
Version: 0.1
Release: 1
Group: Mozilla
License: MPL
Packager: Toby Elliott <telliott@mozilla.com>
Source0: AppKeys-0.1.tar.gz
Requires: python26 python26-setuptools python26-webob python26-paste python26-pastedeploy python26-pastescript python26-services python26-memcached python26-simplejson python26-sqlalchemy python26-routes
BuildRoot: %{_tmppath}/%{pythonname}-%{version}-%{release}-buildroot

%description
AppKeys is the core functionality for validating App keys

%clean
rm -rf $RPM_BUILD_ROOT

%prep
%setup -n AppKeys-0.1

%build
python2.6 setup.py build

%install
mkdir -p %{buildroot}%{_sysconfdir}/mozilla-services
mkdir -p %{buildroot}%{_sysconfdir}/mozilla-services/appkeys
mkdir -p %{buildroot}%{_sysconfdir}/mozilla-services/appkeys/scripts
mkdir -p %{buildroot}%{_sysconfdir}/nginx
mkdir -p %{buildroot}%{_sysconfdir}/nginx/conf.d

mkdir -p %{buildroot}%{_localstatedir}/log
touch %{buildroot}%{_localstatedir}/log/appkeys.log

install -m 0644 etc/appkeys.nginx.conf %{buildroot}%{_sysconfdir}/nginx/conf.d/appkeys.conf
install -m 0644 etc/appkeys.cfg %{buildroot}%{_sysconfdir}/mozilla-services/appkeys/appkeys.cfg
install -m 0755 scripts/populate_memcache.py %{buildroot}%{_sysconfdir}/mozilla-services/appkeys/populate_memcache.py
python2.6 setup.py install --single-version-externally-managed --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%post

%files -f INSTALLED_FILES
%dir %{_sysconfdir}/mozilla-services/appkeys/
%config(noreplace) %{_sysconfdir}/nginx/conf.d/appkeys.conf
%config(noreplace) %{_sysconfdir}/mozilla-services/appkeys/appkeys.cfg
%attr(700, root, root) %{_sysconfdir}/mozilla-services/appkeys/populate_memcache.py
%attr(750, apache, apache) %ghost %{_localstatedir}/log/appkeys.log