Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distro-specific packaging #32

Open
5 of 7 tasks
Jnchi opened this issue Apr 19, 2019 · 7 comments
Open
5 of 7 tasks

Distro-specific packaging #32

Jnchi opened this issue Apr 19, 2019 · 7 comments

Comments

@Jnchi
Copy link
Contributor

Jnchi commented Apr 19, 2019

@Jnchi Jnchi changed the title Travis CI: Upload binarines on release Travis CI: Upload binaries on release Apr 19, 2019
@Jnchi
Copy link
Contributor Author

Jnchi commented Apr 22, 2019

RPM for RHEL-based distributions

%global debug_package ${nil}

Name:           aad-auth
Version:        0.0.1
Release:        0
Summary:        Bundles pam_aad, libnss_aad and dependencies

Group:          System Environment/Base
License:        GPLv3+
URL:            https://github.com/CyberNinjas
Source0:        aad-auth-0.0.1.tar.gz

BuildArch: x86_64
Requires: jansson libcurl libuuid openssl
Provides: libcjson libjwt libsds libsodium

%description
See Package Summary.

%prep
%setup -qD
%build
%install
install -m 0755 -d $RPM_BUILD_ROOT/etc
install -m 0755 -d $RPM_BUILD_ROOT/lib64
install -m 0755 -d $RPM_BUILD_ROOT/lib64/security
install -m 0755 libcjson.so.1.7.10 $RPM_BUILD_ROOT/lib64/libcjson.so.1.7.10
install -m 0755 libjwt.so.0.5.1 $RPM_BUILD_ROOT/lib64/libjwt.so.0.5.1
install -m 0755 libsds.so.2.0.0 $RPM_BUILD_ROOT/lib64/libsds.so.2.0.0
install -m 0755 libsodium.so.23.2.0 $RPM_BUILD_ROOT/lib64/libsodium.so.23.2.0
install -m 0644 pam_aad.conf $RPM_BUILD_ROOT/etc/pam_aad.conf
install -m 0755 pam_aad.so $RPM_BUILD_ROOT/lib64/security/pam_aad.so
install -m 0644 libnss-aad.conf $RPM_BUILD_ROOT/etc/libnss-aad.conf
install -m 0755 libnss_aad.so.2 $RPM_BUILD_ROOT/lib64/libnss_aad.so.2

%post
ln -s /lib64/libcjson.so.1.7.10 /lib64/libcjson.so
ln -s /lib64/libcjson.so.1.7.10 /lib64/libcjson.so.1
ln -s /lib64/libjwt.so.0.5.1 /lib64/libjwt.so
ln -s /lib64/libjwt.so.0.5.1 /lib64/libjwt.so.0
ln -s /lib64/libsds.so.2.0.0 /lib64/libsds.so
ln -s /lib64/libsds.so.2.0.0 /lib64/libsds.so.2
ln -s /lib64/libsodium.so.23.2.0 /lib64/libsodium.so
ln -s /lib64/libsodium.so.23.2.0 /lib64/libsodium.so.23

%files
/lib64/libcjson.so.1.7.10
/lib64/libjwt.so.0.5.1
/lib64/libsds.so.2.0.0
/lib64/libsodium.so.23.2.0
/etc/pam_aad.conf
/lib64/security/pam_aad.so
/etc/libnss-aad.conf
/lib64/libnss_aad.so.2

%changelog
* Mon Apr 22 2019 Lucas Ramage 0.0.1
  - Initial rpm release

See: https://tecadmin.net/create-rpm-of-your-own-script-in-centosredhat

@Jnchi Jnchi changed the title Travis CI: Upload binaries on release Distro-specific packaging May 7, 2019
@Jnchi Jnchi self-assigned this May 7, 2019
@Jnchi Jnchi mentioned this issue May 7, 2019
Jnchi added a commit that referenced this issue May 7, 2019
Jnchi added a commit to CyberNinjas/libnss_aad that referenced this issue May 10, 2019
Jnchi added a commit that referenced this issue May 10, 2019
Jnchi added a commit to CyberNinjas/libnss_aad that referenced this issue May 10, 2019
Jnchi added a commit that referenced this issue May 10, 2019
@Jnchi

This comment has been minimized.

@Jnchi

This comment has been minimized.

@Jnchi
Copy link
Contributor Author

Jnchi commented May 30, 2019

See also: jnchi/puppet-aad

@Jnchi
Copy link
Contributor Author

Jnchi commented May 30, 2019

@Jnchi

This comment has been minimized.

@oxr463
Copy link
Contributor

oxr463 commented May 8, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants