Skip to content

Commit

Permalink
Make the RPM build more source directory position independant
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishcoleman committed Oct 25, 2023
1 parent bb33e93 commit 3394f27
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions packages/rpm/n2n.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ n2n peer-to-peer VPN
mkdir -p $RPM_BUILD_ROOT/usr/sbin $RPM_BUILD_ROOT/usr/share/man/man1 $RPM_BUILD_ROOT/usr/share/man/man7 $RPM_BUILD_ROOT/usr/share/man/man8
mkdir -p $RPM_BUILD_ROOT/etc/n2n
mkdir -p $RPM_BUILD_ROOT/usr/lib/systemd/system/
cp $HOME/n2n/edge $RPM_BUILD_ROOT/usr/sbin
cp $HOME/n2n/supernode $RPM_BUILD_ROOT/usr/sbin
cp $HOME/n2n/n2n.7.gz $RPM_BUILD_ROOT/usr/share/man/man7
cp $HOME/n2n/supernode.1.gz $RPM_BUILD_ROOT/usr/share/man/man1
cp $HOME/n2n/edge.8.gz $RPM_BUILD_ROOT/usr/share/man/man8
cp $HOME/n2n/packages/etc/systemd/system/*.service $RPM_BUILD_ROOT/usr/lib/systemd/system/
cp $HOME/n2n/packages/etc/n2n/*.conf.sample $RPM_BUILD_ROOT/etc/n2n

# TODO: move to %install
cp edge $RPM_BUILD_ROOT/usr/sbin
cp supernode $RPM_BUILD_ROOT/usr/sbin
cp n2n.7.gz $RPM_BUILD_ROOT/usr/share/man/man7
cp supernode.1.gz $RPM_BUILD_ROOT/usr/share/man/man1
cp edge.8.gz $RPM_BUILD_ROOT/usr/share/man/man8
cp packages/etc/systemd/system/*.service $RPM_BUILD_ROOT/usr/lib/systemd/system/
cp packages/etc/n2n/*.conf.sample $RPM_BUILD_ROOT/etc/n2n

find $RPM_BUILD_ROOT -name ".git" | xargs /bin/rm -rf
find $RPM_BUILD_ROOT -name ".svn" | xargs /bin/rm -rf
Expand Down

0 comments on commit 3394f27

Please sign in to comment.