spack/var/spack/repos/builtin/packages/sessreg/package.py
Todd Gamblin 62927654dd checksums: use sha256 checksums everywhere
We'd like to use a consistent checksum scheme everywhere so that we can:

    a) incorporate archive checksums into our specs and have a
       consistent hashing algorithm across all specs.

    b) index mirrors with a consistent type of checksum, and not one that
       is dependent on how spack packages are written.

- [x] convert existing md5, sha224, sha512, sha1 checksums to sha256
2019-10-12 07:19:43 -07:00

27 lines
996 B
Python

# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class Sessreg(AutotoolsPackage):
"""Sessreg is a simple program for managing utmp/wtmp entries for X
sessions. It was originally written for use with xdm, but may also be
used with other display managers such as gdm or kdm."""
homepage = "http://cgit.freedesktop.org/xorg/app/sessreg"
url = "https://www.x.org/archive/individual/app/sessreg-1.1.0.tar.gz"
version('1.1.0', sha256='e561edb48dfc3b0624554169c15f9dd2c3139e83084cb323b0c712724f2b6043')
depends_on('xproto@7.0.25:', type='build')
depends_on('pkgconfig', type='build')
depends_on('util-macros', type='build')
def patch(self):
kwargs = {'string': True}
filter_file('$(CPP) $(DEFS)', '$(CPP) -P $(DEFS)',
'man/Makefile.in', **kwargs)